638 lines
32 KiB
Rust
638 lines
32 KiB
Rust
// This file was generated by the `theme_importer`.
|
|
// Be careful when modifying it by hand.
|
|
|
|
use gpui::rgba;
|
|
|
|
#[allow(unused)]
|
|
use crate::{
|
|
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserFontStyle, UserFontWeight,
|
|
UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
|
|
};
|
|
|
|
pub fn palenight() -> UserThemeFamily {
|
|
UserThemeFamily {
|
|
name: "Palenight".into(),
|
|
author: "Olaolu Olawuyi (whizkydee)".into(),
|
|
themes: vec![
|
|
UserTheme {
|
|
name: "Palenight".into(),
|
|
appearance: Appearance::Dark,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0x282b3bff).into()),
|
|
border_variant: Some(rgba(0x282b3bff).into()),
|
|
border_focused: Some(rgba(0x282b3bff).into()),
|
|
border_selected: Some(rgba(0x282b3bff).into()),
|
|
border_transparent: Some(rgba(0x282b3bff).into()),
|
|
border_disabled: Some(rgba(0x282b3bff).into()),
|
|
elevated_surface_background: Some(rgba(0x292c3eff).into()),
|
|
surface_background: Some(rgba(0x292c3eff).into()),
|
|
background: Some(rgba(0x292c3eff).into()),
|
|
element_background: Some(rgba(0x7d56c1cc).into()),
|
|
element_hover: Some(rgba(0x0000001a).into()),
|
|
element_selected: Some(rgba(0x7d56c1ff).into()),
|
|
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
|
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
|
text: Some(rgba(0xffffffff).into()),
|
|
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
|
tab_active_background: Some(rgba(0x292c3eff).into()),
|
|
editor_background: Some(rgba(0x292c3eff).into()),
|
|
editor_gutter_background: Some(rgba(0x292c3eff).into()),
|
|
editor_line_number: Some(rgba(0x4c5374ff).into()),
|
|
editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
|
|
terminal_ansi_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
deleted: Some(rgba(0xef524fff).into()),
|
|
error: Some(rgba(0xef524fff).into()),
|
|
hidden: Some(rgba(0x9199c8ff).into()),
|
|
..Default::default()
|
|
},
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x687097ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf78b6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x89ddffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x7fcac3ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
UserTheme {
|
|
name: "Palenight Operator".into(),
|
|
appearance: Appearance::Dark,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0x282b3bff).into()),
|
|
border_variant: Some(rgba(0x282b3bff).into()),
|
|
border_focused: Some(rgba(0x282b3bff).into()),
|
|
border_selected: Some(rgba(0x282b3bff).into()),
|
|
border_transparent: Some(rgba(0x282b3bff).into()),
|
|
border_disabled: Some(rgba(0x282b3bff).into()),
|
|
elevated_surface_background: Some(rgba(0x292c3eff).into()),
|
|
surface_background: Some(rgba(0x292c3eff).into()),
|
|
background: Some(rgba(0x292c3eff).into()),
|
|
element_background: Some(rgba(0x7d56c1cc).into()),
|
|
element_hover: Some(rgba(0x0000001a).into()),
|
|
element_selected: Some(rgba(0x7d56c1ff).into()),
|
|
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
|
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
|
text: Some(rgba(0xffffffff).into()),
|
|
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
|
tab_active_background: Some(rgba(0x292c3eff).into()),
|
|
editor_background: Some(rgba(0x292c3eff).into()),
|
|
editor_gutter_background: Some(rgba(0x292c3eff).into()),
|
|
editor_line_number: Some(rgba(0x4c5374ff).into()),
|
|
editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
|
|
terminal_ansi_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
deleted: Some(rgba(0xef524fff).into()),
|
|
error: Some(rgba(0xef524fff).into()),
|
|
hidden: Some(rgba(0x9199c8ff).into()),
|
|
..Default::default()
|
|
},
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x687097ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf78b6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x89ddffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x7fcac3ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
UserTheme {
|
|
name: "Palenight (Mild Contrast)".into(),
|
|
appearance: Appearance::Dark,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0x2c2f40ff).into()),
|
|
border_variant: Some(rgba(0x2c2f40ff).into()),
|
|
border_focused: Some(rgba(0x2c2f40ff).into()),
|
|
border_selected: Some(rgba(0x2c2f40ff).into()),
|
|
border_transparent: Some(rgba(0x2c2f40ff).into()),
|
|
border_disabled: Some(rgba(0x2c2f40ff).into()),
|
|
elevated_surface_background: Some(rgba(0x25283aff).into()),
|
|
surface_background: Some(rgba(0x25283aff).into()),
|
|
background: Some(rgba(0x292c3eff).into()),
|
|
element_background: Some(rgba(0x7d56c1cc).into()),
|
|
element_hover: Some(rgba(0x0000001a).into()),
|
|
element_selected: Some(rgba(0x7d56c1ff).into()),
|
|
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
|
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
|
text: Some(rgba(0xffffffff).into()),
|
|
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
|
tab_active_background: Some(rgba(0x25283aff).into()),
|
|
editor_background: Some(rgba(0x292c3eff).into()),
|
|
editor_gutter_background: Some(rgba(0x292c3eff).into()),
|
|
editor_line_number: Some(rgba(0x4c5374ff).into()),
|
|
editor_active_line_number: Some(rgba(0xbfc7d5ff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0xc3e88dff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0xffffffff).into()),
|
|
terminal_ansi_black: Some(rgba(0x676e95ff).into()),
|
|
terminal_ansi_red: Some(rgba(0xff5571ff).into()),
|
|
terminal_ansi_green: Some(rgba(0xa9c77dff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xffcb6bff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x82aaffff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0xc792eaff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x89ddffff).into()),
|
|
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
deleted: Some(rgba(0xef524fff).into()),
|
|
error: Some(rgba(0xef524fff).into()),
|
|
hidden: Some(rgba(0x9199c8ff).into()),
|
|
..Default::default()
|
|
},
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x687097ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff869aff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf78b6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x89ddffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x7fcac3ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc792eaff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x82aaffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xc3e88dff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffcb6bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff5571ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
],
|
|
}
|
|
}
|