Zren / material-decoration

Material-ish window decoration theme for KWin, with LIM, based on zzag's original design.
GNU General Public License v2.0
200 stars 17 forks source link

Bold buttons in v7 #37

Open Venom668 opened 3 years ago

Venom668 commented 3 years ago

v6: old_c v7: new_c

Settings: settings

With medium button size it looks okay, identical to v6, not bold. Is large supposed to look like this from now on?

Zren commented 3 years ago

The line thickness scaling has been broken for a while. I had a qRound() on the line thickness which made it an integer, which made those sharp lines. Using an int royally screwed up the icon scaling in Small and Tiny button size.

I might try PenWidth::Symbol * qMax(1.0, qRound(gridUnit)); to see how it looks.

Very Large is 32px, or 1.5x scaling of a 24px tall titlebar. In theory that should be when it starts using 2px line thickness.

However since Minimize and Maximize are not anti-aliased, it's drawing them with thick solid lines. I take a stab at it later when I finish messing around with kwin_wayland.

Venom668 commented 2 years ago

Using PenWidth::Symbol * qMax(1.0, qRound(gridUnit)); fixes the issue for me, thanks!