Skip to content

Conversation

baotpham
Copy link

@baotpham baotpham commented Nov 6, 2023

this causes selection color not rendering properly

@icode
Copy link

icode commented Nov 10, 2023

I don't understand why we need to add 70

@troglodytto
Copy link

troglodytto commented May 31, 2024

This is to make sure that the Alpha Channel of the Color is set to 70% opacity. Hence, when selecting the text, it overlays and does not hide the content below it. However, it only supports Hex Color as you can see in the code, and PR #154 fixes this for HSLA/RGB color codes

So @baotpham @icode it may seem like a "random" number, but it is not

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants