[GH-ISSUE #184] [Focused] show_icon:false leaves an empty GtkImage to take up space #7114

Closed
opened 2026-05-23 02:52:35 +01:00 by JakeStanger · 1 comment
Owner

Originally created by @A-Cloud-Ninja on GitHub (Jun 6, 2023).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/184

Describe the bug
focused modules show_icon set to false leaves an empty GtkImage, resulting in awkward spacing.

To Reproduce
Steps to reproduce the behavior:
Basically as above, set show_icon to false for a focused module, observe an extra GtkImage (put a border on the widget, or look at the debug inspector)

Expected behavior
It can be worked around with

#bar #center .icon {
    margin-right: -25px;
}

or similar, but I think removing the image if that's set would be optimal, as this might not work outside of my usecase.

System information:
Arch, ironbar-git just re-built

Originally created by @A-Cloud-Ninja on GitHub (Jun 6, 2023). Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/184 **Describe the bug** focused modules `show_icon` set to false leaves an empty GtkImage, resulting in awkward spacing. **To Reproduce** Steps to reproduce the behavior: Basically as above, set `show_icon` to false for a focused module, observe an extra GtkImage (put a border on the widget, or look at the debug inspector) **Expected behavior** It can be worked around with ```css #bar #center .icon { margin-right: -25px; } ``` or similar, but I think removing the image if that's set would be optimal, as this might not work outside of my usecase. **System information:** Arch, ironbar-git just re-built
Author
Owner

@JakeStanger commented on GitHub (Jun 6, 2023):

Thought this duplicated #169 but it doesn't, hence the mess above. Cheers for logging.

<!-- gh-comment-id:1578657247 --> @JakeStanger commented on GitHub (Jun 6, 2023): Thought this duplicated #169 but it doesn't, hence the mess above. Cheers for logging.
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#7114
No description provided.