-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Change primary selection color... #5315
Change primary selection color... #5315
Conversation
Fix helix-editor#5314 in continuation of helix-editor#5309
Fix helix-editor#5314 In continuation of helix-editor#5309
This comment was marked as resolved.
This comment was marked as resolved.
See also #5130 |
This comment was marked as outdated.
This comment was marked as outdated.
sorry i mistook, please ignore that |
Ahh ok, was just about to send this write-up: Almost! There is no secondary cursor, only primary and "normal". Currently |
This comment was marked as outdated.
This comment was marked as outdated.
hey! For the Is there a way to do that? |
i wanted to cleanup the commit history a bit too, but don't have skills and time to do it remaining is:
... so, I will not mark this as draft now, as that may deter any reviewer from thinking that i am still working on it (while any further, I will not as (hopefully) my work is done |
The blue is too strong and doesn't fit with the rest of the theme. The current selection color should be made primary and a different tint chosen for secondary selections -- I had some ideas but it didn't work well in all modes, requires #5130 first |
i agree with that... that's why i wanted to keep it to minimum... but i see your point. I will try suggesting other colors, but it won't be untill a month later. |
"ui.selection" = { bg = "#540099" } | ||
"ui.selection.primary" = { bg = "#540099" } | ||
"ui.selection.primary" = { bg = "#1313BE" } | ||
# TODO: namespace ui.cursor as ui.selection.cursor? | ||
"ui.cursor" = { fg = "#8E89E6", modifiers = ["reversed"] } | ||
"ui.cursor.primary" = { modifiers = ["reversed"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"ui.selection" = { bg = "#540099" } | |
"ui.selection.primary" = { bg = "#540099" } | |
"ui.selection.primary" = { bg = "#1313BE" } | |
# TODO: namespace ui.cursor as ui.selection.cursor? | |
"ui.cursor" = { fg = "#8E89E6", modifiers = ["reversed"] } | |
"ui.cursor.primary" = { modifiers = ["reversed"] } | |
"ui.selection" = { bg = "#5F005C" } | |
"ui.selection.primary" = { bg = "#540099" } | |
# TODO: namespace ui.cursor as ui.selection.cursor? | |
"ui.cursor" = { fg = "#B081CC", modifiers = ["reversed"] } | |
"ui.cursor.primary" = { modifiers = ["reversed"] } |
how's this looking? @archseer
pretty muted, fits well with theme. overall seems nicely distinguishable as well, decent contrast ratio as well (5.34, 4.51). some tweaking can be done but this ain't bad either imo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just watching the video at this comment @ 0:14: texstudio-org/texstudio#2467 (comment)
and, the primary/secondary color felt similar .... but yeah, the background being one extrema (dark or ligh) leaves many other contrasting color options for other stuff, as compared to it being relatively in between-ish.
hey @archseer , now that's done, can u share your ideas? |
one more thing - i don't know if possible; can be to set the |
Fix #5314
in continuation (or maybe now in precession) of #5309
Please squash the commits
Sample text
(for myself as i don't have latest tutor)
Screenshots:
wezterm-gui_dczOYB1t3h.mp4
The colors in this pr are
"ui.background" = { bg = "midnight" }
#3b224c
=hsl(276, 38%, 22%)
"ui.text" = { fg = "lavender" }
#a4a0e8
=hsl(243, 61%, 77%)
"ui.selection" = { bg = "
#540099
" }
hsl(273, 100%, 30%)
"ui.cursor" = { fg = "
#8E89E6
", modifiers = ["reversed"] }
hsl(243, 65%, 72%)
"ui.selection.primary" = { bg = "
#1313BE
" }
hsl(240, 82%, 41%)
"ui.cursor.primary" = { modifiers = ["reversed"] }
vivaldi_GdJI9jxNMp.mp4
Constrast scale used
21:1
forblack
onwhite
Contrast Constraints
This was the best i could do. It's noticeable when you know it, and when cycling between; may not be so in a new static screenshot - i ain't sure.
Following colors (now rejected) were chosen before this readability consideration:
#1212CE
=hsl(240, 84%, 44%)
or#8700F5
=hsl(273, 100%, 48%)
for selection.primary#8984E1
=hsl(243, 61%, 70%)
or#756FDC
=hsl(243, 61%, 65%)
for ui.cursorHow this color is obtained: