AmoebeLabs / Material3-Theme-Template

Template for M3 themes
MIT License
3 stars 1 forks source link

don't define rgb primary color #2

Open smiller171 opened 2 years ago

smiller171 commented 2 years ago

When this is defined, selecting text in the code editor is invisible. Not sure why.

AmoebeLabs commented 2 years ago

That is a weird one.

But looking at the community forum, https://community.home-assistant.io/t/changing-colour-of-template-editor-background/399359

Seems the same problem, and the solution is: "The two variables are:

I will look into this one if this solves the problem...

smiller171 commented 2 years ago

Found the problem I think. rgb-primary-color needs to be something like 219, 185, 255, whereas right now it's being parsed as rgb(#dbb9ff) which doesn't seem to parse correctly

AmoebeLabs commented 2 years ago

In the current version of HA, the background of the editor seems to be right.

However, you don't see what you select.

If I use the default theme (blue/orange), I see the following:

In the inspector, this looks like this:

The value of the RGB primary color is: image

And the original primary color: image

So in this case, everything looks fine. Primary color is blue, and the background for selection is also blue.

Now I know what to check for the Material 3 themes...