Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tray module menu hover styling #2569

Open
Diaoul opened this issue Oct 12, 2023 · 2 comments
Open

Tray module menu hover styling #2569

Diaoul opened this issue Oct 12, 2023 · 2 comments

Comments

@Diaoul
Copy link

Diaoul commented Oct 12, 2023

Is there a way to customize the tray menu in hover mode?
Currently it's background "system" blue and color white.

Something like this would be great:

#tray menu-item:hover {
    color: red;
    background-color: green;
}
@AdsonCicilioti
Copy link

AdsonCicilioti commented Nov 3, 2023

Try it:

#tray > widget:hover {
    color: red;
    background-color: green;
}

EDIT:
I've try here.. Seems hiver state don't work.

@distek
Copy link

distek commented Dec 26, 2023

Some documentation on what the actual item is named would be fantastic.

Doing this at least changes the background color of the current item:

#tray menu *:hover {
  background-color: @color7;
  color: @background;
}

But it'd be better to know what the actual name of the item in the list is.

Edit: Got it

#tray menu menuitem:hover {
  background-color: @color7;
  color: @background;
}

Doc:
https://lazka.github.io/pgi-docs/Gtk-3.0/classes/MenuItem.html#class-details
See: "CSS nodes"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants