Bug 398800 - Adding support for customizing caption in Cover switch
Summary: Adding support for customizing caption in Cover switch
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-tabbox (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-18 14:14 UTC by Pratyush Singhal
Modified: 2023-01-25 11:27 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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