Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Coloring interpretes alpha value in an unexpected way #39

Closed
Zocker1999NET opened this issue Jun 6, 2020 · 0 comments · Fixed by #40
Closed

Coloring interpretes alpha value in an unexpected way #39

Zocker1999NET opened this issue Jun 6, 2020 · 0 comments · Fixed by #40
Labels
bug Something isn't working

Comments

@Zocker1999NET
Copy link

Zocker1999NET commented Jun 6, 2020

System: Debian GNU/Linux testing/unstable
Sway Version: 1.4 (from Debian repository)
wob Version: 7d03efc (compiled from this repository)

I tried to integrate the coloring of wob into my overall theme and saw that the same color codes (swaybar's #rrggbbaa rewritten to wob's #aarrggbb format) were rendered differently, but only if the alpha value was lower than ff. More testing shows that only the "black part" of the color will be made transparent.

An example: The "colors" #00000000 and #00ffffff (#aarrggbb) should both be transparent in the same way because both have an alpha value of 00. However wob renders the first one fully transparent (as expected), but the second one fully white (not as expected). To test this yourself, run following commands:

# cd into the build directory of the repository
# Correct transparent rendering
echo 50 | ./wob -t 3000 --border-color '#00000000' --bar-color '#ff00ff00' --background-color '#00000000'
# Incorrent transparent rendering
echo 50 | ./wob -t 3000 --border-color '#00000000' --bar-color '#ff00ff00' --background-color '#00ffffff'
@francma francma added the bug Something isn't working label Jun 7, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants