elitistsnob / typora-cobalt-theme

A dark theme for Typora with enhanced UI
378 stars 105 forks source link

when I selete some text , I can not read it clearly #5

Closed wduin closed 3 years ago

wduin commented 4 years ago

just like this picture

Xnip2020-05-03_13-13-28

And , when I use shift+command+O to open some file ,it occured this too,just like this picture . image

thanks.

pulkitnt commented 4 years ago

any news on this issue? it really is a pain!

richc117 commented 3 years ago

@pulkitnt @elitistsnob @XavierZfc Agreed this is painful! Looks like the standard Night Theme seems to have this resolved.

elitistsnob commented 3 years ago

Guys, this is already resolved. You need to download the latest release here and copy over your local theme files.

https://github.com/elitistsnob/typora-cobalt-theme/releases/tag/v1.4

richc117 commented 3 years ago

ahh man I went in and fixed the issue was going to post here but glad its already fixed thank @elitistsnob

richc117 commented 3 years ago

@elitistsnob I downloaded the latest version from the link you posted and I was still having the same issue. When I select text using the cursor. For example when I am copying text so I paste anywhere else, the selected text is no longer legible because the background clashes with the foreground text.

I was able to fix the issue by adding this to the top of cobalt.css file:

    --primary-color-rgb: rgba(239, 183, 82) ;
    --text-highlight-color: #fff;
    --text-highlight-bg: rgba(var(--primary-color-rgb), 0.3);
    --select-text-bg-color: rgba(255, 255, 255, 0.2);
    --search-select-text-color: var(--text-highlight-color);
    --search-select-bg-color: var(--text-highlight-bg);