on master help sign in
Fix solarized selection colors (#1236)

* do not select a foreground color in selections, as this eliminates syntax coloring * select lighter color for selections * Make non-primary cursor cyan instead of green

commit9bdbafa0759e482d628b7e1940809963c556ec95 authorSkyler Hawthorne <skyler@dead10ck.com> dateTue 7 Dec 2021, 20:22 (5 years ago) parent178cd5e
2 files changed+40−36
runtime/themes/solarized_dark.toml+16−14 runtime/themes/solarized_light.toml+24−22
runtime/themes/solarized_dark.toml+16−14
@@ -58,13 +58,13 @@
5858"ui.highlight" = { fg = "red", modifiers = ["bold", "italic", "underlined"] }
5959
6060# 主光标/selectio
61−"ui.cursor.primary" = {fg = "base03", bg = "base1"}
62−"ui.selection.primary" = { fg = "base03", bg = "base01" }
63−"ui.cursor.select" = {fg = "base02", bg = "green"}
64−"ui.selection" = { fg = "base02", bg = "yellow" }
61+"ui.cursor.primary" = { fg = "base03", bg = "base1" }
62+"ui.cursor.select" = { fg = "base02", bg = "cyan" }
63+"ui.selection" = { bg = "base0175" }
64+"ui.selection.primary" = { bg = "base015" }
6565
6666# normal模式的光标
67−"ui.cursor" = {fg = "base03", bg = "green"}
67+"ui.cursor" = {fg = "base02", bg = "cyan"}
6868"ui.cursor.insert" = {fg = "base03", bg = "base3"}
6969# 当前光标匹配的标点符号
7070"ui.cursor.match" = {modifiers = ["reversed"]}
@@ -73,18 +73,20 @@
7373"error" = { fg = "red", modifiers= ["bold", "underlined"] }
7474"info" = { fg = "blue", modifiers= ["bold", "underlined"] }
7575"hint" = { fg = "base01", modifiers= ["bold", "underlined"] }
76−"diagnostic" = { mdifiers = ["underlined"] }
76+"diagnostic" = { modifiers = ["underlined"] }
7777
7878[palette]
7979# 深色 越来越深
80−base03 = "#002b36"
81−base02 = "#073642"
82−base01 = "#586e75"
83−base00 = "#657b83"
84−base0 = "#839496"
85−base1 = "#93a1a1"
86−base2 = "#eee8d5"
87−base3 = "#fdf6e3"
80+base03 = "#002b36"
81+base02 = "#073642"
82+base0175 = "#16404b"
83+base015 = "#2c4f59"
84+base01 = "#586e75"
85+base00 = "#657b83"
86+base0 = "#839496"
87+base1 = "#93a1a1"
88+base2 = "#eee8d5"
89+base3 = "#fdf6e3"
8890
8991# 浅色 越來越浅
9092yellow = "#b58900"
runtime/themes/solarized_light.toml+24−22
@@ -58,13 +58,13 @@
5858"ui.highlight" = { fg = "red", modifiers = ["bold", "italic", "underlined"] }
5959
6060# 主光标/selectio
61−"ui.cursor.primary" = {fg = "base03", bg = "base1"}
62−"ui.selection.primary" = { fg = "base03", bg = "base01" }
63−"ui.cursor.select" = {fg = "base02", bg = "green"}
64−"ui.selection" = { fg = "base02", bg = "yellow" }
61+"ui.cursor.primary" = { fg = "base03", bg = "base1" }
62+"ui.cursor.select" = { fg = "base02", bg = "cyan" }
63+"ui.selection" = { bg = "base0175" }
64+"ui.selection.primary" = { bg = "base015" }
6565
6666# normal模式的光标
67−"ui.cursor" = {fg = "base03", bg = "green"}
67+"ui.cursor" = {fg = "base02", bg = "cyan"}
6868"ui.cursor.insert" = {fg = "base03", bg = "base3"}
6969# 当前光标匹配的标点符号
7070"ui.cursor.match" = {modifiers = ["reversed"]}
@@ -73,26 +73,28 @@
7373"error" = { fg = "red", modifiers= ["bold", "underlined"] }
7474"info" = { fg = "blue", modifiers= ["bold", "underlined"] }
7575"hint" = { fg = "base01", modifiers= ["bold", "underlined"] }
76−"diagnostic" = { mdifiers = ["underlined"] }
76+"diagnostic" = { modifiers = ["underlined"] }
7777
7878[palette]
79−red = '#dc322f'
80−green = '#859900'
81−yellow = '#b58900'
82−blue = '#268bd2'
83−magenta = '#d33682'
84−cyan = '#2aa198'
85−orange = '#cb4b16'
86−violet = '#6c71c4'
79+red = '#dc322f'
80+green = '#859900'
81+yellow = '#b58900'
82+blue = '#268bd2'
83+magenta = '#d33682'
84+cyan = '#2aa198'
85+orange = '#cb4b16'
86+violet = '#6c71c4'
8787
8888# 深色 越来越深
89−base0 = '#657b83'
90−base1 = '#586e75'
91−base2 = '#073642'
92−base3 = '#002b36'
89+base0 = '#657b83'
90+base1 = '#586e75'
91+base2 = '#073642'
92+base3 = '#002b36'
9393
9494## 浅色 越來越浅
95−base00 = '#839496'
96−base01 = '#93a1a1'
97−base02 = '#eee8d5'
98−base03 = '#fdf6e3'
95+base00 = '#839496'
96+base01 = '#93a1a1'
97+base015 = '#c5c8bd'
98+base0175 = '#dddbcc'
99+base02 = '#eee8d5'
100+base03 = '#fdf6e3'