nwg-piotr / nwg-dock

GTK3-based dock for sway
MIT License
170 stars 9 forks source link

Hotspot styling? #46

Closed clanktron closed 2 months ago

clanktron commented 2 months ago

Is it possible to directly style the hotspot? In the repo there seems to be a hotspot.css but upon adding that to my config folder it doesn't seem to be used. I also tried styling the hotspot in the style.css like so:

#hotspot {
    background: #FFFFFF;
}

Right now it just ends up being styled however I style the window. I use the autohide feature and its annoying to have the hotspot stay as a black bar on the side of the screen.

20240822_22h09m22s_grim

nwg-piotr commented 2 months ago

You could edit /usr/share/nwg-dock/hotspot.css. However, it'll be ovewritten at the next package update.

obraz

clanktron commented 2 months ago

Would you be open to reading a hotspot.css from the xdg_config folder? I could throw together a PR sometime soonish if you didn't want to bother adding the feature yourself.

nwg-piotr commented 2 months ago

Well, if I wanted people to edit it, I wouldn't had made a separate, hidden css file. :)

clanktron commented 2 months ago

okay...is there some technical reason you don't want people changing it?

I don't necessarily need to have custom css for the hotspot if you don't want that I guess, but I would like to make it invisible one way or the other. Is an adding flag for this a better option?

nwg-piotr commented 2 months ago

but I would like to make it invisible one way or the other

It should be invisible by default. Isn't it on your side?

window {
  background-color: rgba (0, 0, 0, 0);
  border: none
}
clanktron commented 2 months ago

Screenshot 2024-08-25 at 03:43:54 PM

It is not, it takes on whatever color I set the dock window to be...but upon seeing the error here it looks like the issue is probably the nixos package not including the hotspot.css file.

nwg-piotr commented 2 months ago

the nixos package not including the hotspot.css file

I was just going to ask about it. Make your own file and place where needed.

clanktron commented 2 months ago

Yea, I'll open an issue in nixpkgs for it. Thanks for your quick responses!