tsujan / BreezeEnhanced

A fork of KDE Breeze decoration with additional options
GNU General Public License v3.0
162 stars 13 forks source link

Add more option for titlebar font #11

Closed r0skar closed 5 years ago

r0skar commented 5 years ago

Is it possible to make the custom title bar font selector a drop-down or a text-input, so that one can define more font weights besides "bold"?

I would like to use a a semi-bold (font-weight: 600) font for the title, but right now I can only choose between normal (400) and bold (700).

tsujan commented 5 years ago

Yes, it's possible to add five degrees of boldness (from 1 to 5, with 3 as normal boldness), as I've done in Kvantum -- although many fonts don't support it.

The only problem is backward compatibility; I should first solve that.

r0skar commented 5 years ago

Forgot to mention it: IMO its better to use traditional font weights (100-900) instead of 1-5.

ripefig commented 5 years ago

is the font setting there for other platforms? KDE settings already allows you to customize the titlebar font.

tsujan commented 5 years ago

is the font setting there for other platforms?

Yes but it controls title-bar font in KDE too -- with it, KDE settings have no control over title-bar font.

KDE settings already allows you to customize the titlebar font.

Unfortunately, KDE devs didn't want to make it usable outside KDE. That's while kwin can be used outside KDE.

tsujan commented 5 years ago

Done in https://github.com/tsujan/BreezeEnhanced/commit/1e1d09e5babf59595b7b3ece37e9a5650b701ec4 , following Qt's boldness classification:

weight

Of course, not all fonts support it.