Open adam900710 opened 2 years ago
Try set without borders on Window border size
No border is too aggressive then.
The problem is, this only happens in materia-kde theme. Not only the default oxygen, but other themes like arc-kde has no such problem at all.
Thus I guess it's something can be fixed in materia-kde.
What you mean No border is too aggressive then.
?
you can show screenshot with no borders option?
Oh, I thought you're recommending "no border" as a workaround.
And here is the screenshot of the no border result:
Surprisingly, not much different.
BTW, the problem only happens for fractional global scale. When scaled to 200%, the problem seems gone.
Your issue specific... but you can play with borders size...
Open Materia-Darkrc and replace Layout
section:
[Layout]
BorderBottom=0
BorderLeft=0
BorderRight=0
ButtonHeight=24
ButtonMarginTop=0
ButtonSpacing=6
ButtonWidth=24
ExplicitButtonSpacer=0
PaddingBottom=58
PaddingLeft=26
PaddingRight=26
PaddingTop=10
TitleBorderLeft=4
TitleBorderRight=4
TitleEdgeBottom=4
TitleEdgeBottomMaximized=4
TitleEdgeLeft=8
TitleEdgeLeftMaximized=4
TitleEdgeRight=8
TitleEdgeRightMaximized=4
TitleEdgeTop=4
TitleEdgeTopMaximized=4
TitleHeight=12
restart kwin:
killall kwin_x11
ALT+F2 > kwin_x11
My issue is already explained in the subject, the border of materia-kde theme is unnormally large!
Just try set your kde global scale to 175%/125% and try it.
Here is a side by side comparison, the left is Materia-light window decoration, while the right is Arc-light: (I choose light to provide more contrast)
No matter what the border size I choose, the materia-kde one is still that huge. Even when I selected "no border", the border is still way larger than default border size of Arc-light.
And I have already said, if the global scale is changed from 175% to 200%, the border problem is gone.
So, this is definitely something wrong inside materia-kde theme for its window decoration.
please read my previous comment
I know you can modify the rc (even without the need to restart kwin, just switch to another window decoration theme, and back to materia-*).
But then it doesn't explain why the problem only happens under fractional scale (175% has the problem, 200% gone).
how rendered 150% for you?
Not any better:
Can only get normal result from 100% and 200% scale.
I cannot figure out how it works. In any case, there is one pixel left around the border of the windows.
And it will be difficult to describe as a KWin bug.
See, PaddingLeft, PaddingRight and PaddingBottom - it's shadows.
On Materia Dark it's 30px, 30px and 62px... It's now present on rc-file...and woked fine, but not on scale 125%-175%.
If i'm change PaddingLeft, PaddingRight and PaddingBottom to 28px, 28px and 60px and BorderBottom, BorderLeft and BorderRight to 1px - i'm have offset issue:
~After this i'm set:~
~PaddingLeft, PaddingRight and PaddingBottom to 29px, 29px and 61px with 1px border size i'm have this:~
~Ok, set border size to 0px with previous config and now we have....... 1px border:~
UPD: Need reloging on system
@davidedmundson @aleixpol you should take a look at this
Now we can't set No Borders with aurorae theme
Please include a kwin version, X11 or wayland and output of xrdb -q
It does not matter. I'm use KDE NEON with KWin 5.22.5 and X11 1.20.11
As you already seen, Aurorae cannot remove window borders and always leaves one pixel for this and ignore the rc-file settings
Yeah, Kwin version doesn't matter that much, the behavior has been observable for several major releases.
Anyway, my setup is:
~1px - it's limit size on boder and i can't work around this on Aurorae theme~ UPD: Need reloging on system
It breaks your whole concept - No borders
@adam900710 It's not aurorae theme bug. And Arc-KDE borders lesser because have padding 10px (shadows), but on Materia it's 30px. Therefore, as it seems to you. Also, you know this worked fine with 100% and 200% scale. It's KWin bug, Aurorae themes not right worked with not round values scale - 125%, 150%, 175%, 225% and etc... But it's fine on Breeze and Oxygen (it's not Aurorae theme, it's another engine).
Thanks a lot.
BTW, can we follow the similar padding of Arc theme to workaround the problem for now? Personally I really like Materia than Arc, thus really hopes it can work properly.
Need redraw and reduce shadows... but i'm not want doing this, i spent a lot of time aligning with the GTK theme. I think, better temporary solution for you - use Breeze decoration
Funnily enough, in the Wayland session, Aurorae also has scaling issues. https://github.com/PapirusDevelopmentTeam/materia-kde/issues/92 https://bugs.kde.org/show_bug.cgi?id=422342 Unsurprisingly, this is a very old engine that was first released 12 years ago.
Fair enough, would use something like Arc for systems with fractional scale as a workaround for now.
BTW, just notice that breeze would adapt its color theme with plasma scheme.
It blends into the Material theme pretty well, now no need to use Arc at all.
It also exists on my 2560/1600 device with 150% zoom. By the way, there is no problem under wayland.
Also experiencing this. This is not the only theme to have chunky borders with fractional scaling
When "Window decoration" theme is changed to any Materia theme, and with global scaling other than 100%, it will result super bold window frame, definitely way larger than the scaled result.
Default Oxygen has no such problem.