mirror of
https://github.com/JakeStanger/ironbar.git
synced 2026-07-11 08:15:21 +01:00
[GH-ISSUE #1045] define-color does not support hexcodes with alpha #328
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#328
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 @0PandaDEV on GitHub (Jun 13, 2025).
Original GitHub issue: https://github.com/JakeStanger/ironbar/issues/1045
Describe the bug
When setting a color using define-color to a hex code that includes an alpha like #ffffff0d it throws an error that a semicolon is missing.
To reproduce
Steps to reproduce the behavior:
@pgattic commented on GitHub (Jun 13, 2025):
I don't know if the devs would do much about this, since it is more of an issue for GTK's CSS specification. The CSS you write for your bar is just fed to GTK for parsing and application.
If you want to have transparency, you can use an
rgbavalue instead. An exact equivalent in your case would be@define-color border rgba(255, 255, 255, 0.05078125);GTK's flavor of CSS is a subset of the one HTML5 does. Read about it here: https://docs.gtk.org/gtk3/css-properties.html
@JakeStanger commented on GitHub (Jun 13, 2025):
Yep unfortunately we're stuck with what GTK 3 offers.
GTK 4 has a wider CSS spec, which I believe includes better alpha support, so you might have better luck with the port.