luisbocanegra / plasma-panel-colorizer

Fully-featured widget to bring Latte-Dock and WM status bar customization features to the default KDE Plasma panel
https://store.kde.org/p/2130967
GNU General Public License v3.0
109 stars 0 forks source link

Feature request: change panel background color based on touching window #44

Closed dr460nf1r3 closed 1 month ago

dr460nf1r3 commented 1 month ago

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!

luisbocanegra commented 1 month ago

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

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 🙂

dr460nf1r3 commented 1 month ago

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.

luisbocanegra commented 1 month ago

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.

luisbocanegra commented 1 month ago

Done in https://github.com/luisbocanegra/plasma-panel-colorizer/commit/deb615bc852b6091f4af028e20f967dc6762ef4e

dr460nf1r3 commented 1 month ago

Awesome! Could you push this as a new release in KDE's store? 😊

luisbocanegra commented 1 month ago

Will do later today