[GH-ISSUE #811] Tray Menu is not visible through inspector #253

Closed
opened 2026-05-22 21:52:13 +01:00 by JakeStanger · 2 comments
Owner

Originally created by @Locorock on GitHub (Dec 12, 2024).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/811

Describe the bug
The menu window opened by clicking on the items in the tray module doesn't appear on the gtk inspector. The documentation doesn't help either in figuring out how to style tray menus. This started being an issue after the rework with libdbusmenu in 0.16.1

To Reproduce
Steps to reproduce the behavior:

  1. Start ironbar inspector
  2. Enable Tray module
  3. Click on any tray item
  4. Menu appears
  5. No change in the inspector

Expected behavior
The window should appear/activate on the inspector

System information:

  • Distro: NixOS
  • Compositor: Hyprland
  • Ironbar version: 0.16.1 via flake

Screenshots
grim-2024-dic-12-14_37_34

Originally created by @Locorock on GitHub (Dec 12, 2024). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/811 **Describe the bug** The menu window opened by clicking on the items in the tray module doesn't appear on the gtk inspector. The documentation doesn't help either in figuring out how to style tray menus. This started being an issue after the rework with libdbusmenu in 0.16.1 **To Reproduce** Steps to reproduce the behavior: 1. Start ironbar inspector 2. Enable Tray module 3. Click on any tray item 4. Menu appears 5. No change in the inspector **Expected behavior** The window should appear/activate on the inspector **System information:** - Distro: NixOS - Compositor: Hyprland - Ironbar version: 0.16.1 via flake **Screenshots** ![grim-2024-dic-12-14_37_34](https://github.com/user-attachments/assets/390edc8f-04a5-4a36-93e2-112c881f4a0c)
JakeStanger 2026-05-22 21:52:13 +01:00
Author
Owner

@ApproachingApathy commented on GitHub (May 1, 2025):

These seems to work in my case. But this would affect all menus, which may be a problem in other configurations. The menus don't seem to be in the .tray element, so .tray menu doesn't work.

menu {
  background-color: @color_bg;
  color: @color_text;
}

menu menuitem:hover {
  background-color: @color_urgent;
}

menu menuitem label {
    background-color: transparent;
    color: currentColor;
}

menu menuitem image {
    background-color: transparent;
    color: currentColor;
}

menu menuitem box {
    background-color: transparent;
    color: currentColor;
}
<!-- gh-comment-id:2845436658 --> @ApproachingApathy commented on GitHub (May 1, 2025): These seems to work in my case. But this would affect all menus, which may be a problem in other configurations. The menus don't seem to be in the `.tray` element, so `.tray menu` doesn't work. ```css menu { background-color: @color_bg; color: @color_text; } menu menuitem:hover { background-color: @color_urgent; } menu menuitem label { background-color: transparent; color: currentColor; } menu menuitem image { background-color: transparent; color: currentColor; } menu menuitem box { background-color: transparent; color: currentColor; } ```
Author
Owner

@JakeStanger commented on GitHub (May 19, 2025):

This is a weird side-effect of using libdbusmenu-gtk3 for the tray. Unfortunately there's nothing I can do.

The GTK4 port will require me to build the tray UI back into Ironbar. With that, it'll re-appear in the inspector as expected.

Going to close for now.

<!-- gh-comment-id:2891286706 --> @JakeStanger commented on GitHub (May 19, 2025): This is a weird side-effect of using `libdbusmenu-gtk3` for the tray. Unfortunately there's nothing I can do. The GTK4 port will require me to build the tray UI back into Ironbar. With that, it'll re-appear in the inspector as expected. Going to close for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
JakeStanger/ironbar#253
No description provided.