Skip to content

Comments

Updated background_color examples to match GTK4 css style format#355

Merged
trigg merged 2 commits intoWayfireWM:masterfrom
mrsteve0924:background_color
Feb 23, 2026
Merged

Updated background_color examples to match GTK4 css style format#355
trigg merged 2 commits intoWayfireWM:masterfrom
mrsteve0924:background_color

Conversation

@mrsteve0924
Copy link
Contributor

@mrsteve0924 mrsteve0924 commented Feb 21, 2026

@trigg
Copy link
Collaborator

trigg commented Feb 21, 2026

Good idea to update the docs, but there could be a fair bit more information here. I don't know how much we'd want to cover manually and how much we could point to outside docs for.

https://www.w3.org/TR/css-color-5/

essentially:

  • Three digit hex codes : #RGB
  • Four : #RGBA
  • Six : #RRGGBB
  • Eight : # RRGGBBAA
  • rgb() / rgba()
  • hsl() / hsla()
  • hwb()
  • named colors (red, dimgray, coral, wheat)

added: also gtk_headerbar is now non-functional and just uses window colour, as there was no way to poll current theme colours out that I could find

@mrsteve0924
Copy link
Contributor Author

there is certainly a lot of information at that link. I can re-word the wiki update to maybe not give the impression that I am showing all the possible rules. And then include that link too.

so if no background_color is set (or set incorrectly) it will default to window color. no need for background_color=gtk_headerbar.

removed gtk_headerbar example setting
@mrsteve0924
Copy link
Contributor Author

i removed the lines that referred to formats and just left the updated examples

@trigg
Copy link
Collaborator

trigg commented Feb 23, 2026

Thanks for the help !

@trigg trigg merged commit 8ad21ca into WayfireWM:master Feb 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants