luisbocanegra/plasma-panel-colorizer

Feature request: change panel background color based on touching window

dr460nf1r3 opened this issue ยท 8 comments

Heya!
Latte used to support changing panel background color based on whatever window was touching it.
If I remember correctly, this used to source a specific color. The current feature of drawing it from the system works well, however, it would be nice to be able to let the panel become translucent again when no window touches it.

Intended purpose:
image

Being able to have aligned colors between top panel and titlebar/window when windows are maximized.

image

Then having it opaque would make the top bar less dominant while not having windows maximized.

Thanks!

Currently in v0.5.1 you can create and switch between different presets based on the state of the panel/windows:

  • Normal
  • Floating
  • Maximized window is shown

I remember seeing a panel property that returns whether or not a window is touching the panel, will look into adding that to preset auto-loading.

Note that this feature only looks right as long as the application follows the current Plasma colors, taking colors from the actual window would be an interesting challenge, but will require C++/Qt and understanding Plasma/KWin code (I barely know C++). That deserves its own issue ๐Ÿ™‚

Actually having the color changed depending on whether the window maximized would already suffice for my use case - if I understood you correctly that's already possible by creating profiles (if yes, I didn't RTFM correctly ๐Ÿ˜…) ?

Edit: yes it actually does say it right at the beginning, but I didn't make the connection to using it that way. Though, I can imagine situations where windows are touching the panel where a window isn't maximized and having it changed would still make sense: using a split screen with one window being used for research, while the other one is used for eg. a text editor. Especially when not having two screens available, it's a common use case for me.

Edit: yes it actually does say it right at the beginning, but I didn't make the connection to using it that way.

Yeah, maybe a better description of some of the features in the README and a bunch of "What is this" labels/buttons through the widget settings, or even a video tutorial could help.

Done in deb615b

Awesome! Could you push this as a new release in KDE's store? ๐Ÿ˜Š

Will do later today