mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 06:15:21 +01:00
[GH-ISSUE #985] Feature Request: To set horizontal alignment of boxes inside their parent container #5927
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#5927
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 @BBFifield on GitHub (May 17, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/985
Is your feature request related to a problem? Please describe.
Currently, child widgets are packed to the left inside their parent boxes without any option present to alter this behaviour. This creates a potential headache for users who want to define a Popup with many vertically aligned boxes containing potentially multiple widgets centered horizontally.
So for example:
This shows a popup containing several different nested widgets with the following structure:
button
[box[button, slider]]
[box[button]]
[box[button, button, button]]
Ideally, the button in the third row could be center aligned, which could be achieved with css margins assuming the popup width is static, but the slider in row two is only shown after the button before it is clicked, changing the popup width with it.
Describe the solution you'd like
Basically, I want the ability to set the halign property of a GtkBox to GTK_ALIGN_CENTER via some box module option. While this wouldn't actually center align the widgets inside the box, it would give users a working solution to the problem above with minimal changes to the codebase.
Describe alternatives you've considered
Tried finding some combination of CSS properties and nested buttons and boxes to accomplish the look I was going for but it doesn't seem possible currently.