Bug 460154

Summary: "Make window titlebars accent-colored" don't respect theme behavior.
Product: [Applications] systemsettings Reporter: Denys Madureira <denysmb112007>
Component: kcm_colorsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: kde, nate, noahadvs, tantalising007, uhhadd
Priority: NOR    
Version First Reported In: 5.25.90   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: CustomColorSchemeWithTintTitlebar

Description Denys Madureira 2022-10-09 10:38:38 UTC
Created attachment 152658 [details]
CustomColorSchemeWithTintTitlebar

SUMMARY
I want to know if this is the desired behavior:
The default Breeze Light and Dark have this behavior that we see in the beginning of the video - the titlebar of the inactive widow has a different contrast to differentiate.
So, when we use the option to tint the header based on these two color scheme, this effect happens. Ok. It's expected.
But, if we create a custom color scheme with a custom header (that doesn't change the contrast from inactive windows - as you also see in the video) and them enable the option to tint the titlebar on this color scheme, it change it behavior. Without this option the contrast don't change so, I was hoping that, after enable this option to this specific color scheme, the contrast doesn't change too.

Is this the expected behavior? To always do this, independent of the color scheme, of the user option and everything else? When you active the option to tint the titlebar it will always change the contrast of the inactive window and there is nothing that we can do?


STEPS TO REPRODUCE
1.  Edit Breeze Light/Dark to make window titlebars accent-colored and save as a new color scheme
2.  Apply it and you will see that the active window have the accent-colored titlebars but the inactive window has a different contrast, as it works for Breeze Light and Dark themes.
3.  Create a new color scheme with a custom header colors. You will see that when you do that, the header color is the same for active and inactive window (no contrast change).
4. Edit this new color scheme with "make window titlebars accent-colored" and save it.
5. Apply and now you will see that the inactive window titlebar is no more equals as the active, as it is in it default behavior (when the option to tint the titlbar is not checked).

OBSERVED RESULT
The option doesn't respect the color scheme behavior. It "forces" all color scheme to work as the default "Breeze Light" and "Breeze Dark" theme.

EXPECTED RESULT
The option respect the behavior of custom color scheme and let the inactive titlebar equal to the active titlebar if the default behavior of color scheme works this way.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221006
KDE Plasma Version: 5.25.90
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 6.0.0-4.g8cefcd8-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 4800H with Radeon Graphics
Memory: 30,7 GiB of RAM
Graphics Processor: RENOIR
Manufacturer: Acer
Product Name: Nitro AN515-44
System Version: V1.04
Comment 1 Nate Graham 2022-10-10 19:24:52 UTC
Your custom color scheme needs to define different colors for its active and inactive header colors.

This is all sort of a mess unfortunately, and we need to redo it in Plasma 6 to make it much clearer regarding which colors apply when.