Bug 433761 - Setting the inactiveFrame key does not have any effect when using color scheme with Header colors
Summary: Setting the inactiveFrame key does not have any effect when using color schem...
Status: CONFIRMED
Alias: None
Product: Breeze
Classification: Plasma
Component: QStyle (show other bugs)
Version: 5.21.1
Platform: Other Other
: NOR minor
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2021-02-28 20:55 UTC by Rind
Modified: 2024-05-04 11:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rind 2021-02-28 20:55:43 UTC
I use krohnkite to arrange the windows automatically and it is essential to know which window the focus is on. Fortunately it is possible to do this in plasma by using the window borders and applying a highlight color for when they are in focus.

However, this is not possible if the active theme is breeze-dark.

As described in the readme of the krohnkite repository, this command will add the necessary settings

```
 kwriteconfig5 --file ~/.config/kdeglobals --group WM --key frame 61,174,233
 kwriteconfig5 --file ~/.config/kdeglobals --group WM --key inactiveFrame 239,240,241
```

You can see this working if your chosen theme is not breeze-dark. In all the other color themes I applied, the border worked.


ADDITIONAL INFORMATION
Some people have reported this problem elsewhere and suggested that turning the current color theme off and on would fix the bug, but it didn't work.

https://old.reddit.com/r/kde/comments/le120j/krohnkite_not_highlighting_active_windows_with/
https://old.reddit.com/r/kde/comments/lo6hj4/colored_window_borders_not_working_with_new_update/

https://github.com/esjeon/krohnkite/issues/148
https://github.com/esjeon/krohnkite/issues/129
https://github.com/esjeon/krohnkite/issues/68

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.11.2-arch1-1
Graphics Platform: X11
Comment 1 Rind 2021-03-24 14:39:00 UTC
This seems to be caused by the [Colors:Header] tag present in the new plasma 5.21 color schemes
Any theme that does not have this will work as expected
Comment 2 Nate Graham 2021-03-24 17:38:51 UTC
Sorry this happened. In Plasma 5.21, when a color scheme has Header colors in it, these colors are ignored, and the Header colors are used to create a unified look for the window's entire header area.

If you don't like this, you have three options:

1. Switch to a color scheme that does not have Header colors (e.g. the old Breeze color scheme, which is still shipped)
2. Remove the Header colors from your current color scheme
3. Create the desired appearance using the Header colors of your current color scheme, by adjusting the Normal/Inactive background colors in the Header section

If you wish to use #2, I'm afraid the procedure is rather annoying since we were not able to write a GUI to remove header colors in time for 5.21. Sorry about that. To do this manually, you will need to save a copy of the color scheme, open it at ~/.local/share/color-schemes/[the color scheme] and remove the "Header" sections, then switch to another color scheme in the Colors KCM and back to your now-header-less custom color scheme.

Related to Bug 433059 but not exactly the same thing.