Bug 435905

Summary: Use active/inactive titlebar text colors for titlebar text coloration even when Header colors are in use
Product: [Plasma] Breeze Reporter: Michael D <nortexoid>
Component: window decorationAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: kwin-bugs-null, nate, noahadvs, o.freyermuth, odysei, till2.schaefer, uhhadd
Priority: NOR    
Version: 5.21.5   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Title not getting inactive header ForegroundNormal color
scrennshot of activa and inactive kate side by side

Description Michael D 2021-04-19 08:50:25 UTC
Header colors give a nice contrast between active/inactive windows by altering the window background color. It would be nice if the titlebar showed the same active/inactive contrast like it does (or can be made to) when not using header colors.
Comment 1 Nate Graham 2021-04-21 20:27:00 UTC
Technically they don't alter the window background color, just the background color of the "tools area" consisting of the titlebar, menubar, and any full-width toolbars.

You're saying that you want to keep this, but also make just the titlebar even more different for active vs inactive windows?

If so, why not just use a non-header-color color scheme?
Comment 2 Michael D 2021-04-21 20:57:58 UTC
Sorry for that very unclear bug report. What I meant was that it would be nice if active/inactive titlebar TEXT colors were "obeyed" when header colors are used. And yes, I meant the toolbar area, not the window background.

The desired effect I have in mind is that the active window uses, say, black titlebar text and inactive ones use something lighter, such as gray, to better emphasize that they are inactive.
Comment 3 Nate Graham 2021-04-21 21:26:46 UTC
Can you not use active/inactive titlebar colors for the Header group for this?

Oh, I see. There are no active/inactive Header group titlebar colors.

Seems reasonable.
Comment 4 Janet Blackquill 2021-04-21 21:30:27 UTC
AFAIK all colours in the header work with the inactive variant.

In a colour scheme file, it looks like this.

[Colors:Header]
BackgroundAlternate=234,234,235
BackgroundNormal=234,234,235
DecorationFocus=61,174,233
DecorationHover=147,206,233
ForegroundActive=61,174,233
ForegroundInactive=127,140,141
ForegroundLink=41,128,185
ForegroundNegative=218,68,83
ForegroundNeutral=246,116,0
ForegroundNormal=35,38,39
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

[Colors:Header][Inactive]
BackgroundAlternate=208,208,210
BackgroundNormal=208,208,210
DecorationFocus=24,152,220
DecorationHover=149,207,233
ForegroundActive=24,152,220
ForegroundInactive=103,115,116
ForegroundLink=31,98,142
ForegroundNegative=196,39,54
ForegroundNeutral=246,116,0
ForegroundNormal=85,91,94
ForegroundPositive=39,174,96
ForegroundVisited=127,140,141

BackgroundNormal is what becomes the toolbar/titlebar colour and the ForegroundNormal is what becomes the text colour of toolbar/titlebar.
Comment 5 Nate Graham 2021-04-21 22:03:28 UTC
Michael wants to be able to color the titlebar text independently of the rest of the text, though.
Comment 6 Janet Blackquill 2021-04-21 22:21:59 UTC
Ah, I see.
Comment 7 Michael D 2021-04-22 07:02:58 UTC
The reason I requested this is that:
1. at the moment, titlebar text colors are exposed in the GUI so it would make sense to observe them regardless of whether header colors are active;
2. not all elements in the tools area get the inactive ForegroundNormal color, making inactive windows look strange (see attached screenshot)

But maybe it makes more sense to do something about the above without satisfying this feature request.
Comment 8 Michael D 2021-04-22 07:03:43 UTC
Created attachment 137786 [details]
Title not getting inactive header ForegroundNormal color
Comment 9 Till Schäfer 2021-05-21 09:17:38 UTC
Created attachment 138637 [details]
scrennshot of activa and inactive kate side by side

+1 

I find it very difficult to distinguish active from inactive windows when using the dark theme (see attachment). This is especially true on laptop screens with some sunlight shining on them. Thus, I would llke to change the windows active titlebar text to orange or something similar. Howewer, I would like to keep the rest off the appearance of the window.
Comment 10 Nate Graham 2022-06-08 19:12:14 UTC
*** Bug 455038 has been marked as a duplicate of this bug. ***