Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Super bold window frame when using 175% global scaling #127

Open
adam900710 opened this issue Oct 7, 2021 · 31 comments
Open

Super bold window frame when using 175% global scaling #127

adam900710 opened this issue Oct 7, 2021 · 31 comments

Comments

@adam900710
Copy link

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.

2021-10-07-143315_2560x1440_scrot

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

Try set without borders on Window border size

@adam900710
Copy link
Author

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.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

What you mean No border is too aggressive then.?

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

you can show screenshot with no borders option?

@adam900710
Copy link
Author

Oh, I thought you're recommending "no border" as a workaround.

And here is the screenshot of the no border result:

2021-10-08-035429_2560x1440_scrot

Surprisingly, not much different.

BTW, the problem only happens for fractional global scale.
When scaled to 200%, the problem seems gone.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

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

@adam900710
Copy link
Author

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)

side_by_side

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.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

please read my previous comment

@adam900710
Copy link
Author

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).

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

how rendered 150% for you?

@adam900710
Copy link
Author

Not any better:
side_by_side_150

Can only get normal result from 100% and 200% scale.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

I cannot figure out how it works. In any case, there is one pixel left around the border of the windows.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

And it will be difficult to describe as a KWin bug.

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

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:
image
After this i'm set:
PaddingLeft, PaddingRight and PaddingBottom to 29px, 29px and 61px with 1px border size i'm have this:
image
Ok, set border size to 0px with previous config and now we have....... 1px border:
image
UPD: Need reloging on system

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

@davidedmundson @aleixpol you should take a look at this

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

Now we can't set No Borders with aurorae theme

@davidedmundson
Copy link

davidedmundson commented Oct 7, 2021

Please include a kwin version, X11 or wayland and output of xrdb -q

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

It does not matter. I'm use KDE NEON with KWin 5.22.5 and X11 1.20.11

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

As you already seen, Aurorae cannot remove window borders and always leaves one pixel for this and ignore the rc-file settings

@adam900710
Copy link
Author

Yeah, Kwin version doesn't matter that much, the behavior has been observable for several major releases.

Anyway, my setup is:

  • Arch, latest install
  • Xorg 1.20.13
  • Kwin 5.22.5

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

1px - it's limit size on boder and i can't work around this on Aurorae theme
UPD: Need reloging on system

@varlesh
Copy link
Contributor

varlesh commented Oct 7, 2021

It breaks your whole concept - No borders

@varlesh
Copy link
Contributor

varlesh commented Oct 8, 2021

@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).

@varlesh
Copy link
Contributor

varlesh commented Oct 8, 2021

@adam900710
Copy link
Author

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.

@varlesh
Copy link
Contributor

varlesh commented Oct 8, 2021

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

@varlesh
Copy link
Contributor

varlesh commented Oct 8, 2021

Funnily enough, in the Wayland session, Aurorae also has scaling 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.

@adam900710
Copy link
Author

Fair enough, would use something like Arc for systems with fractional scale as a workaround for now.

@adam900710
Copy link
Author

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.

@nekohasekai
Copy link

It also exists on my 2560/1600 device with 150% zoom.
By the way, there is no problem under wayland.

@demfabris
Copy link

Also experiencing this. This is not the only theme to have chunky borders with fractional scaling

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants