luisbocanegra / plasma-panel-colorizer

Latte-Dock and WM status bar customization features for the default KDE Plasma panel
https://store.kde.org/p/2130967
GNU General Public License v3.0
232 stars 3 forks source link

Add possibility to define unified background areas #39

Closed NyaomiDEV closed 1 month ago

NyaomiDEV commented 7 months ago

I love the fact that this widget provides me with an easy way to have "floating islands", however I'd very much like to unify the background between the system tray and the clock.

The way I envision it is by adding a "background unifier" widget that unifies parts of the panel's custom backgrounds; so by adding this "special separator" between the systray and the clock, the background island between the two is shared.

(Or probably the inverse can be done, using panel separators also as background separators)

luisbocanegra commented 7 months ago

I like this idea, I think someone in the kreddit post suggested this but I forgot to make an issue for it.

I have to think of the implementation yet but a way I imagine it is something like this:

Widget unifier/Join widget backgrounds

  1. System tray Clock
  2. Window Buttons Window Title
  3. Select start widget Select end widget
  4. Add new
luisbocanegra commented 5 months ago

Actually, I think it makes more sense to implement it as the special separator you suggested, so it will work like the margins separator widget does.

  1. Iterate through the widgets
  2. If the "background unifier" is found start merging backgrounds
  3. If the "background unifier" is found stop merging them
luisbocanegra commented 1 month ago

Finally got around implementing this 🎉

Screenshot_20240928_144023

Managed to do it by removing the default spacing then adding margins on the left of each widget and it worked!

Just have to figure out how to automatically hide the shadows/border/radius (in the screenshot radius is being done through per-widget override settings)

luisbocanegra commented 1 month ago

Radius and border done, working on the shadows

Screenshot_20240929_010100

NyaomiDEV commented 1 month ago

oh this looks incredible! :) just in time for my laptop customization it seems!

nikoraasu commented 1 month ago

Great! Can't wait!

luisbocanegra commented 1 month ago

Okay this is fire!

Though the way to manage them not so much for now. Can someone test this?

Screenshot_20240929_164932

luisbocanegra commented 1 month ago

To update to the latest commits:

git clone https://github.com/luisbocanegra/plasma-panel-colorizer
cd plasma-panel-colorizer
kpackagetool6 -t Plasma/Applet -u package

Note that the configuration format has changed and could change again before the release so you will need to start a new one from scratch. Oh and user presets folder changed to $HOME/.config/panel-colorizer/presets

To also test the custom background blur run ./install.sh but it requires some additional dependencies first.