Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

{r, g, b} in theme throws color error when used in fill with opacity. #254

Open
vacarsu opened this issue Nov 18, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@vacarsu
Copy link
Contributor

vacarsu commented Nov 18, 2021

Scenic cannot validate a fill color with opacity when using a theme with an rgb color because it expects an rgba color.

graph
|> rectangle({100, 100}, fill: {theme.background, 100}

The above will error when the background is set to an rgb color. This is partially fixed by #252 as it extends the named colors palette so you don't have to use rgb colors in themes. However I think scenic should automatically convert {{r, g, b}, a} to {r, g, b, a}

@vacarsu vacarsu changed the title {r, g, b} in theme throws color error what used in fill with opacity. {r, g, b} in theme throws color error when used in fill with opacity. Nov 18, 2021
@crertel crertel added enhancement New feature or request bug Something isn't working and removed enhancement New feature or request labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants