Get new theme structure working
* Fix precedence of extends directives * Always group color with font properties for text theming Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
co-authored by
Nathan Sobo
parent
5761756fb4
commit
802f1f4e78
@@ -3,34 +3,35 @@ background = "$elevation_1"
|
||||
|
||||
[ui.tab]
|
||||
background = "$elevation_2"
|
||||
color = "$text_dull"
|
||||
border.color = 0x000000
|
||||
icon_close = 0x383839
|
||||
icon_dirty = 0x556de8
|
||||
icon_conflict = 0xe45349
|
||||
text = "$text_dull"
|
||||
border.color = "#000000"
|
||||
icon_close = "#383839"
|
||||
icon_dirty = "#556de8"
|
||||
icon_conflict = "#e45349"
|
||||
|
||||
[ui.active_tab]
|
||||
extends = ".."
|
||||
extends = "ui.tab"
|
||||
background = "$elevation_3"
|
||||
color = "$text_bright"
|
||||
text = "$text_bright"
|
||||
|
||||
[ui.selector]
|
||||
background = "$elevation_4"
|
||||
text = "$text_bright"
|
||||
padding = { top = 6.0, bottom = 6.0, left = 6.0, right = 6.0 }
|
||||
margin.top = 12.0
|
||||
corner_radius = 6.0
|
||||
shadow = { offset = [0.0, 0.0], blur = 12.0, color = 0x00000088 }
|
||||
shadow = { offset = [0.0, 0.0], blur = 12.0, color = "#00000088" }
|
||||
|
||||
[ui.selector.item]
|
||||
background = 0x424344
|
||||
text = 0xcccccc
|
||||
highlight_text = 0x18a3ff
|
||||
highlight_font_properties = { weight = "bold" }
|
||||
border = { color = 0x000000, width = 1.0 }
|
||||
background = "#424344"
|
||||
text = "#cccccc"
|
||||
highlight_text = { color = "#18a3ff", weight = "bold" }
|
||||
border = { color = "#000000", width = 1.0 }
|
||||
padding = { top = 6.0, bottom = 6.0, left = 6.0, right = 6.0 }
|
||||
|
||||
[ui.selector.active_item]
|
||||
extends = ".."
|
||||
background = 0x094771
|
||||
extends = "ui.selector.item"
|
||||
background = "#094771"
|
||||
|
||||
[editor]
|
||||
background = "$elevation_3"
|
||||
@@ -40,6 +41,6 @@ line_number = "$text_dull"
|
||||
line_number_active = "$text_bright"
|
||||
text = "$text_normal"
|
||||
replicas = [
|
||||
{ selection = 0x264f78, cursor = "$text_bright" },
|
||||
{ selection = 0x504f31, cursor = 0xfcf154 },
|
||||
{ selection = "#264f78", cursor = "$text_bright" },
|
||||
{ selection = "#504f31", cursor = "#fcf154" },
|
||||
]
|
||||
|
||||
+16
-16
@@ -1,21 +1,21 @@
|
||||
extends = "_base"
|
||||
|
||||
[variables]
|
||||
elevation_1 = 0x050101
|
||||
elevation_2 = 0x131415
|
||||
elevation_3 = 0x1c1d1e
|
||||
elevation_4 = 0x3a3b3c
|
||||
text_dull = 0x5a5a5b
|
||||
text_bright = 0xffffff
|
||||
text_normal = 0xd4d4d4
|
||||
elevation_1 = "#050101"
|
||||
elevation_2 = "#131415"
|
||||
elevation_3 = "#1c1d1e"
|
||||
elevation_4 = "#3a3b3c"
|
||||
text_dull = "#5a5a5b"
|
||||
text_bright = "#ffffff"
|
||||
text_normal = "#d4d4d4"
|
||||
|
||||
[syntax]
|
||||
keyword = 0xc586c0
|
||||
function = 0xdcdcaa
|
||||
string = 0xcb8f77
|
||||
type = 0x4ec9b0
|
||||
number = 0xb5cea8
|
||||
comment = 0x6a9955
|
||||
property = 0x4e94ce
|
||||
variant = 0x4fc1ff
|
||||
constant = 0x9cdcfe
|
||||
keyword = { color = "#c586c0", weight = "bold" }
|
||||
function = "#dcdcaa"
|
||||
string = "#cb8f77"
|
||||
type = "#4ec9b0"
|
||||
number = "#b5cea8"
|
||||
comment = "#6a9955"
|
||||
property = "#4e94ce"
|
||||
variant = "#4fc1ff"
|
||||
constant = "#9cdcfe"
|
||||
|
||||
Reference in New Issue
Block a user