Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Breeze visual style
Commits
a709b37d
Commit
a709b37d
authored
Sep 29, 2020
by
Jan Blackquill
🌈
Browse files
[kstyle] Have no-tools-area border respect display scale
parent
f3e7b9b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
kstyle/breezestyle.cpp
View file @
a709b37d
...
...
@@ -925,7 +925,7 @@ namespace Breeze
auto
rect
=
_toolsAreaManager
->
toolsAreaRect
(
mw
);
if
(
rect
.
height
()
==
0
)
{
painter
->
setPen
(
_helper
->
separatorColor
(
_toolsAreaManager
->
palette
()));
painter
->
setPen
(
QPen
(
_helper
->
separatorColor
(
_toolsAreaManager
->
palette
())
,
PenWidth
::
Frame
*
widget
->
devicePixelRatio
())
);
painter
->
drawLine
(
widget
->
rect
().
topLeft
(),
widget
->
rect
().
topRight
());
painter
->
restore
();
return
true
;
...
...
@@ -944,7 +944,7 @@ namespace Breeze
}
else
if
(
auto
dialog
=
qobject_cast
<
const
QDialog
*>
(
widget
))
{
auto
margins
=
dialog
->
contentsMargins
();
const_cast
<
QDialog
*>
(
dialog
)
->
setContentsMargins
(
margins
.
left
(),
qMax
(
margins
.
top
(),
1
),
margins
.
right
(),
margins
.
bottom
());
painter
->
setPen
(
_helper
->
separatorColor
(
_toolsAreaManager
->
palette
()));
painter
->
setPen
(
QPen
(
_helper
->
separatorColor
(
_toolsAreaManager
->
palette
())
,
PenWidth
::
Frame
*
widget
->
devicePixelRatio
())
);
painter
->
drawLine
(
widget
->
rect
().
topLeft
(),
widget
->
rect
().
topRight
());
}
return
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment