francma / wob

A lightweight overlay volume/backlight/progress/anything bar for Wayland.
ISC License
911 stars 50 forks source link

Change color format from #argb to #rgba #70

Closed francma closed 3 years ago

francma commented 3 years ago

Most RGB with alpha color representations are in #RRGGBBAA format - for example

Brod8362 commented 3 years ago

Additional idea - maybe make the alpha optional? Just default to fully opaque if not specified.

RicArch97 commented 3 years ago

Changing the colours to "#RRGGBB" and "#RRGGBBAA" would be a very welcome change. Would make it easier to pass along colors generated by PyWal for example.

532910 commented 3 years ago

I believe the color format should be <RRGGBB[AA]> instead of the current <#AARRGGBB>. The same as in swaynag for example

FallenChromium commented 3 years ago

Absolutely agree, if the RGB color is used as a variable, it will be possible to just add the opacity afterwards, and you can't do that (easily) with argb format, because there will be 2 # symbols. Though if anyone would share their solution to this problem it will be appreciated. I gave up trying to use my sway RGB variables as colors for wob because of that format mess.