mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #1228] css appearance for modules with multiple gtk #7400
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#7400
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 @xMAC94x on GitHub (Nov 2, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1228
Is your feature request related to a problem? Please describe.
When I want to specify the css of some modules. Especially models like clock and and battery are composed out of multiple gtk elements (e.g. a button and the label ). Its hard to differentiate them. Especially when i want to differentiate the button of the clock from the button of the battery.
Note: sometimes (e.g. Battery) the button has a hardcoded class
.button, sometimes (e.g. clock), such a hardcoded class is missing.Describe the solution you'd like
I want to have a clean strategy that describes how we handle css classes (and namings) of such multiple composed modules.
Possible strategies might be:
.classas apperance modifier. If a module is composed out of multiple gtk elements, we always give that.classto the top level element and then allow to use descendant selectors.customclass > button. when there are multiple top level elements, they have to be wrapped in something (like adiv).classto all gtk elements and let people select vialabel.customclass, however this might cause issues when there are multiple labelsbuttonclass.buttonclass.Describe alternatives you've considered
If such a strategy already exists, I would love to see a short section in the styleguide with some examples.
@JakeStanger commented on GitHub (Nov 19, 2025):
Every module already has a classname matching the module name. Eg you can already target
.batteryand.clock. It's also possible to add your own classes and names to any widget.Is there something additional you're asking for here?