mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #1110] Tray Module css styling question. #8773
Labels
No labels
A:Build
A:CI
A:Client
A:Config
A:Core
A:Documentation
A:Documentation
A:IPC
A:Testing
A:UX/UI
blocked
BREAKING CHANGE
duplicate
good first issue
GTK4
help wanted
invalid
M:Battery
M:Battery
M:Bindmode
M:Bluetooth
M:Brightness
M:Cairo
M:Clipboard
M:Clock
M:Clock
M:Custom
M:Focused
M:Keyboard
M:Launcher
M:Menu
M:Music
M:Music
M:Music
M:Network Manager
M:Notifications
M:SysInfo
M:Tray
M:Volume
M:Workspaces
partially resolved
P:Critical
P:High
P:Low
P:Medium
pull-request
T:Bug
T:Bug
T:Core Enhancement
T:Module Enhancement
T:New Module
T:Question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/ironbar#8773
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Guardian9978 on GitHub (Aug 8, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1110
I have not seen anywhere in the wiki about styling the menu that appears when you right click one of the Tray Module's app icons.
I have had some success by styling .popup like so:
But I wanted to style the tray right click menu directly so i tried: (But this does not work.)
I was also wanting to style the on hover so I tried all of these: (no success here either.)
@BBFifield commented on GitHub (Aug 22, 2025):
I managed to style the right-click menu in the past. Iirc, you need to target the "decoration" element rather than any .popup class.
And I don't think the tray exposes any hover states in the current implementation, unfortunately.
@JakeStanger commented on GitHub (Aug 22, 2025):
The tray currently uses an external library (
libdbusmenu-gtk3) for rendering the menu, which somewhat sits outside the regular widget tree. It should be made ofMenuandMenuItemwidgets that you can style directly, but there's little I can do with it at the moment.The GTK 4 version (#1043) includes a custom UI that will fully integrate as a popup and should provide more control
@BBFifield commented on GitHub (Aug 22, 2025):
Just looked at my own css. Turns out I only targeted
decorationto apply a box-shadow to the menus, so it's useful if you ever need to do that.The contents of the menu itself are themed by targeting
menu,menuitem,menuitem labelandmenuitem cellview.@JakeStanger commented on GitHub (Sep 7, 2025):
Closing as resolved due to lack of response - any further issues let me know and we can re-open
@freijon commented on GitHub (Dec 25, 2025):
Now after the migration to GTK4, how would I style the hover color of the new GTK4 popover?
@JakeStanger commented on GitHub (Dec 28, 2025):
I'm assuming you mean the colour of the menu buttons for the tray module specifically? If so you can target as follows: