ap / vim-css-color

Preview colours in source code while editing
http://www.vim.org/scripts/script.php?script_id=5056
MIT License
1.77k stars 78 forks source link

opacity support? #48

Closed latel closed 4 years ago

latel commented 9 years ago

is there a workaround for opacity support?

ap commented 9 years ago

Sorry, I don’t know what you mean. Please explain.

m-kru commented 4 years ago

@ap I know what @latel meant. Look at the following snippet from poybar config file: opacity_polybar foreground and background colors have an extra leading byte defining opacity. As you can see vim-css-color does not render color for these colors.

zatchheems commented 4 years ago

The "workaround" in this case would be using rgba if possible instead of hexadecimal:

image

It does still mean that hex colors with that extra byte, like @m-kru said, do not render, and RGBA syntax is not universally available.

ap commented 4 years ago

I didn’t realise until only months ago that RGBA hex notation was a thing. And I didn’t get around to implementing support until now, in 96b3942f949cc744f22258057c28cfe394a2cebc.

Sorry it took 5 years for my dumb ass to catch up. 🙂 Share and enjoy!

ch3st3r08 commented 2 years ago

Hex ARGB values still don't work in Polybar configuration (ft=dosini), did I miss something? From what I can see, it was only available for CSS