Bug 398800

Summary: Adding support for customizing caption in Cover switch
Product: [Plasma] kwin Reporter: Pratyush Singhal <psinghal20>
Component: effects-tabboxAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: wishlist CC: zrenfire
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Pratyush Singhal 2018-09-18 14:14:36 UTC
The fonts for the title of the applications(displayed under the cover switch window) are way too big and look ugly in contrast to the whole setup. The settings offered by Cover switch doesn't allow customization of the font.
Looking into the source code,  it can be found that the current font size is set to twice the current font size value.
https://github.com/KDE/kwin/blob/master/effects/coverswitch/coverswitch.cpp#L63

Is it feasible to add font size setting in cover switch just as the zoom setting?
Comment 1 Martin Flöser 2018-09-18 14:20:16 UTC
Instead of making it configurable a better suited font size should be used which also works on high dpi Setups
Comment 2 Pratyush Singhal 2018-09-18 14:24:12 UTC
Yes, seems reasonable. The current font is relatively very large compared to other system fonts.
Comment 3 Chris Holland 2018-09-18 14:44:00 UTC
On a 1080p screen with 1x DPI with a 21" screen, it seems the Font Size is 28px from ascent to descent. The caption box is 45px tall including the border, so 43px for the caption box content.

* https://i.imgur.com/4hTksRJ.png
* https://stackoverflow.com/questions/27631736/meaning-of-top-ascent-baseline-descent-bottom-and-leading-in-androids-font
Comment 4 Vlad Zahorodnii 2023-01-25 11:27:16 UTC
cover switch has been ported to qml, which should handle hidpi better