Skip to content

define-color does not support hexcodes with alpha #1045

Closed as not planned
Closed as not planned
@0PandaDEV

Description

@0PandaDEV

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:

  1. Add @define-color border #ffffff0d; to the style.css
  2. Reload and check the logs.
2025-06-13T14:44:14.786116Z ERROR ironbar::style: 79:
   0: Failed to load CSS
   1: style.css:4:28Missing semicolon at end of color definition

Location:
   src/style.rs:79

Suggestion: Check the CSS file for errors
Suggestion: GTK CSS uses a subset of the full CSS spec and many properties are not available. Ensure you are not using any unsupported property.

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:ConfigRelating to bar configuration and styling options.T:BugFunctionality broken or otherwise not working as intended.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions