mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-29 12:38:02 +00:00
Update theme importer
This commit is contained in:
parent
8d09baa3a5
commit
0d0b6db24f
2 changed files with 118 additions and 12 deletions
|
@ -139,12 +139,18 @@ impl<'a> Debug for ThemeColorsPrinter<'a> {
|
|||
&HslaPrinter(self.0.border_transparent),
|
||||
)
|
||||
.field(
|
||||
"elevated_surface",
|
||||
"elevated_surface_background",
|
||||
&HslaPrinter(self.0.elevated_surface_background),
|
||||
)
|
||||
.field("surface", &HslaPrinter(self.0.surface_background))
|
||||
.field(
|
||||
"surface_background",
|
||||
&HslaPrinter(self.0.surface_background),
|
||||
)
|
||||
.field("background", &HslaPrinter(self.0.background))
|
||||
.field("element", &HslaPrinter(self.0.element_background))
|
||||
.field(
|
||||
"element_background",
|
||||
&HslaPrinter(self.0.element_background),
|
||||
)
|
||||
.field("element_hover", &HslaPrinter(self.0.element_hover))
|
||||
.field("element_active", &HslaPrinter(self.0.element_active))
|
||||
.field("element_selected", &HslaPrinter(self.0.element_selected))
|
||||
|
@ -158,7 +164,7 @@ impl<'a> Debug for ThemeColorsPrinter<'a> {
|
|||
&HslaPrinter(self.0.element_drop_target),
|
||||
)
|
||||
.field(
|
||||
"ghost_element",
|
||||
"ghost_element_background",
|
||||
&HslaPrinter(self.0.ghost_element_background),
|
||||
)
|
||||
.field(
|
||||
|
@ -187,21 +193,104 @@ impl<'a> Debug for ThemeColorsPrinter<'a> {
|
|||
.field("icon_disabled", &HslaPrinter(self.0.icon_disabled))
|
||||
.field("icon_placeholder", &HslaPrinter(self.0.icon_placeholder))
|
||||
.field("icon_accent", &HslaPrinter(self.0.icon_accent))
|
||||
.field("status_bar", &HslaPrinter(self.0.status_bar_background))
|
||||
.field("title_bar", &HslaPrinter(self.0.title_bar_background))
|
||||
.field("toolbar", &HslaPrinter(self.0.toolbar_background))
|
||||
.field("tab_bar", &HslaPrinter(self.0.tab_bar_background))
|
||||
.field("tab_inactive", &HslaPrinter(self.0.tab_inactive_background))
|
||||
.field("tab_active", &HslaPrinter(self.0.tab_active_background))
|
||||
.field("editor", &HslaPrinter(self.0.editor_background))
|
||||
.field(
|
||||
"editor_subheader",
|
||||
"status_bar_background",
|
||||
&HslaPrinter(self.0.status_bar_background),
|
||||
)
|
||||
.field(
|
||||
"title_bar_background",
|
||||
&HslaPrinter(self.0.title_bar_background),
|
||||
)
|
||||
.field(
|
||||
"toolbar_background",
|
||||
&HslaPrinter(self.0.toolbar_background),
|
||||
)
|
||||
.field(
|
||||
"tab_bar_background",
|
||||
&HslaPrinter(self.0.tab_bar_background),
|
||||
)
|
||||
.field(
|
||||
"tab_inactive_background",
|
||||
&HslaPrinter(self.0.tab_inactive_background),
|
||||
)
|
||||
.field(
|
||||
"tab_active_background",
|
||||
&HslaPrinter(self.0.tab_active_background),
|
||||
)
|
||||
.field("editor_background", &HslaPrinter(self.0.editor_background))
|
||||
.field(
|
||||
"editor_subheader_background",
|
||||
&HslaPrinter(self.0.editor_subheader_background),
|
||||
)
|
||||
.field(
|
||||
"editor_active_line",
|
||||
&HslaPrinter(self.0.editor_active_line),
|
||||
)
|
||||
.field(
|
||||
"terminal_background",
|
||||
&HslaPrinter(self.0.terminal_background),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_black",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_black),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_red",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_red),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_green",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_green),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_yellow",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_yellow),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_blue",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_blue),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_magenta",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_magenta),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_cyan",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_cyan),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_bright_white",
|
||||
&HslaPrinter(self.0.terminal_ansi_bright_white),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_black",
|
||||
&HslaPrinter(self.0.terminal_ansi_black),
|
||||
)
|
||||
.field("terminal_ansi_red", &HslaPrinter(self.0.terminal_ansi_red))
|
||||
.field(
|
||||
"terminal_ansi_green",
|
||||
&HslaPrinter(self.0.terminal_ansi_green),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_yellow",
|
||||
&HslaPrinter(self.0.terminal_ansi_yellow),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_blue",
|
||||
&HslaPrinter(self.0.terminal_ansi_blue),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_magenta",
|
||||
&HslaPrinter(self.0.terminal_ansi_magenta),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_cyan",
|
||||
&HslaPrinter(self.0.terminal_ansi_cyan),
|
||||
)
|
||||
.field(
|
||||
"terminal_ansi_white",
|
||||
&HslaPrinter(self.0.terminal_ansi_white),
|
||||
)
|
||||
.finish()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -28,22 +28,39 @@ pub struct VsCodeColors {
|
|||
text: String,
|
||||
#[serde(rename = "editor.background")]
|
||||
editor_background: String,
|
||||
#[serde(rename = "terminal.background")]
|
||||
terminal_background: String,
|
||||
#[serde(rename = "terminal.ansiBrightBlack")]
|
||||
terminal_ansi_bright_black: String,
|
||||
#[serde(rename = "terminal.ansiBrightRed")]
|
||||
terminal_ansi_bright_red: String,
|
||||
#[serde(rename = "terminal.ansiBrightGreen")]
|
||||
terminal_ansi_bright_green: String,
|
||||
#[serde(rename = "terminal.ansiBrightYellow")]
|
||||
terminal_ansi_bright_yellow: String,
|
||||
#[serde(rename = "terminal.ansiBrightBlue")]
|
||||
terminal_ansi_bright_blue: String,
|
||||
#[serde(rename = "terminal.ansiBrightMagenta")]
|
||||
terminal_ansi_bright_magenta: String,
|
||||
#[serde(rename = "terminal.ansiBrightCyan")]
|
||||
terminal_ansi_bright_cyan: String,
|
||||
#[serde(rename = "terminal.ansiBrightWhite")]
|
||||
terminal_ansi_bright_white: String,
|
||||
#[serde(rename = "terminal.ansiBlack")]
|
||||
terminal_ansi_black: String,
|
||||
#[serde(rename = "terminal.ansiRed")]
|
||||
terminal_ansi_red: String,
|
||||
#[serde(rename = "terminal.ansiGreen")]
|
||||
terminal_ansi_green: String,
|
||||
#[serde(rename = "terminal.ansiYellow")]
|
||||
terminal_ansi_yellow: String,
|
||||
#[serde(rename = "terminal.ansiBlue")]
|
||||
terminal_ansi_blue: String,
|
||||
#[serde(rename = "terminal.ansiMagenta")]
|
||||
terminal_ansi_magenta: String,
|
||||
#[serde(rename = "terminal.ansiCyan")]
|
||||
terminal_ansi_cyan: String,
|
||||
#[serde(rename = "terminal.ansiWhite")]
|
||||
terminal_ansi_white: String,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue