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

fix: remove random number in cursor selection builder #148

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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