Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-04-27 15:14:56

quintus
Member
Registered: 2023-04-27
Posts: 2

xfce4-docklike-plugin indicator hidden on hover

When I define a background color for mouse hover in gtk.css, for example:

#docklike-plugin .hover_group { background-color: #fff }

the indicator disappears. Well, not exactly disappears, I've confirmed by playing with background-color opacity that the indicator does actually remain, it's just "behind" the background-color of .hover_group Is there a fix for this?

Last edited by quintus (2023-04-28 01:30:49)

Offline

#2 2023-04-27 17:25:39

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: xfce4-docklike-plugin indicator hidden on hover

Hello and welcome.

I have the panel (and indicator) on the left, and this worked for me:

#docklike-plugin .open_group {border-left-width: 3px; border-left-style: solid; border-left-color: transparent}
#docklike-plugin .open_group:hover {background-color: red; }

If your panel/indicator is on a different side, make sure you change "left" to suit. Depending on your theme, you may also need to play around with the border-width value.

Note: I found using ".open_group" more reliable than ".hover_group" as it didn't result in jiggling of the buttons. What version of the docklike plugin are you using?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-04-28 01:20:28

quintus
Member
Registered: 2023-04-27
Posts: 2

Re: xfce4-docklike-plugin indicator hidden on hover

Thanks for the reply!

For some reason, pseudoclasses are not working for me on the plugin, I don't know why. For good measure I copied over your code:

#docklike-plugin .open_group

produces the desired result.

#docklike-plugin .open_group:hover

does not turn the background red on hover.

Plugin version is 0.4, 0.4.1 isn't in the Fedora repositories yet it seems (I should've mentioned that I'm running Fedora 38).

It's my first time on XFCE, so any other thoughts would be very appreciated :-)

Last edited by quintus (2023-04-28 01:26:13)

Offline

#4 2023-04-28 02:32:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 10,949

Re: xfce4-docklike-plugin indicator hidden on hover

Version 0.4.1 introduces changes that allows better styling of the hover affect. For 0.4.0, something like this might work:

#docklike-plugin .hover_group {background-color: red; border-left-width: 4px; border-left-style: solid; border-left-color: #4CA6E6}

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB