
This PR updates the `theme_importer` to pull in the player colors so that we can assign them based on the current theme. Release Notes: - N/A
1163 lines
58 KiB
Rust
1163 lines
58 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, PlayerColor, PlayerColors, StatusColorsRefinement, ThemeColorsRefinement,
|
|
UserFontStyle, UserFontWeight, UserHighlightStyle, UserSyntaxTheme, UserTheme, UserThemeFamily,
|
|
UserThemeStylesRefinement,
|
|
};
|
|
|
|
pub fn ayu() -> UserThemeFamily {
|
|
UserThemeFamily {
|
|
name: "Ayu".into(),
|
|
author: "Zed Industries".into(),
|
|
themes: vec![
|
|
UserTheme {
|
|
name: "Ayu Dark".into(),
|
|
appearance: Appearance::Dark,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0x2d2f34ff).into()),
|
|
border_variant: Some(rgba(0x1b1e24ff).into()),
|
|
elevated_surface_background: Some(rgba(0x313337ff).into()),
|
|
background: Some(rgba(0x313337ff).into()),
|
|
panel_background: Some(rgba(0x1f2127ff).into()),
|
|
element_hover: Some(rgba(0x3f404380).into()),
|
|
element_selected: Some(rgba(0x50515280).into()),
|
|
text: Some(rgba(0xbfbdb6ff).into()),
|
|
text_muted: Some(rgba(0x8a8986ff).into()),
|
|
text_placeholder: Some(rgba(0x58595aff).into()),
|
|
text_disabled: Some(rgba(0xbfbdb6ff).into()),
|
|
text_accent: Some(rgba(0x5ac2feff).into()),
|
|
status_bar_background: Some(rgba(0x313337ff).into()),
|
|
title_bar_background: Some(rgba(0x313337ff).into()),
|
|
toolbar_background: Some(rgba(0x0d1017ff).into()),
|
|
tab_bar_background: Some(rgba(0x1f2127ff).into()),
|
|
tab_inactive_background: Some(rgba(0x1f2127ff).into()),
|
|
tab_active_background: Some(rgba(0x0d1017ff).into()),
|
|
scrollbar_thumb_background: Some(rgba(0xbfbdb64d).into()),
|
|
scrollbar_thumb_hover_background: Some(rgba(0xbfbdb64d).into()),
|
|
scrollbar_thumb_border: Some(rgba(0x1b1e24ff).into()),
|
|
scrollbar_track_border: Some(rgba(0x1b1e24ff).into()),
|
|
editor_foreground: Some(rgba(0xbfbdb6ff).into()),
|
|
editor_background: Some(rgba(0x0d1017ff).into()),
|
|
editor_gutter_background: Some(rgba(0x0d1017ff).into()),
|
|
editor_line_number: Some(rgba(0xbfbdb659).into()),
|
|
editor_active_line_number: Some(rgba(0xbfbdb6ff).into()),
|
|
editor_wrap_guide: Some(rgba(0xbfbdb60d).into()),
|
|
editor_active_wrap_guide: Some(rgba(0xbfbdb61a).into()),
|
|
terminal_background: Some(rgba(0x0d1017ff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0x545557ff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0x83363cff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0x567627ff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0x92592cff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0x28628cff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0x205b78ff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0x4c806fff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0xbfbdb6ff).into()),
|
|
terminal_ansi_black: Some(rgba(0x0d1017ff).into()),
|
|
terminal_ansi_red: Some(rgba(0xef7178ff).into()),
|
|
terminal_ansi_green: Some(rgba(0xaad84cff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xfeb454ff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x5ac2feff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0x3abae5ff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x95e5cbff).into()),
|
|
terminal_ansi_white: Some(rgba(0xbfbdb6ff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
created: Some(rgba(0xaad84cff).into()),
|
|
deleted: Some(rgba(0xc3595fff).into()),
|
|
error: Some(rgba(0xef7178ff).into()),
|
|
modified: Some(rgba(0xfeb454ff).into()),
|
|
success: Some(rgba(0xbfbdb6ff).into()),
|
|
warning: Some(rgba(0xfeb454ff).into()),
|
|
..Default::default()
|
|
},
|
|
player: Some(PlayerColors(vec![
|
|
PlayerColor {
|
|
cursor: rgba(0x5ac2feff).into(),
|
|
background: rgba(0x5ac2feff).into(),
|
|
selection: rgba(0x5ac2fe3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x3abae5ff).into(),
|
|
background: rgba(0x3abae5ff).into(),
|
|
selection: rgba(0x3abae53d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xfe8f40ff).into(),
|
|
background: rgba(0xfe8f40ff).into(),
|
|
selection: rgba(0xfe8f403d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xd2a6feff).into(),
|
|
background: rgba(0xd2a6feff).into(),
|
|
selection: rgba(0xd2a6fe3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x95e5cbff).into(),
|
|
background: rgba(0x95e5cbff).into(),
|
|
selection: rgba(0x95e5cb3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xef7178ff).into(),
|
|
background: rgba(0xef7178ff).into(),
|
|
selection: rgba(0xef71783d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xfeb454ff).into(),
|
|
background: rgba(0xfeb454ff).into(),
|
|
selection: rgba(0xfeb4543d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xaad84cff).into(),
|
|
background: rgba(0xaad84cff).into(),
|
|
selection: rgba(0xaad84c3d).into(),
|
|
},
|
|
])),
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd2a6ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xacb6bf8c).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment.doc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x8c8b88ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd2a6ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constructor".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"embedded".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xbfbdb6ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"enum".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfe8f40ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffb454ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"hint".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x638c81ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xff8f40ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"label".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfe8f40ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xaad84cff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd2a6ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf29668ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"predictive".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5b728cff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"preproc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xbfbdb6ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"primary".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xbfbdb6ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa6a5a0ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.bracket".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa6a5a0ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.delimiter".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa6a5a0ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.list_marker".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa6a5a0ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd2a6ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xaad94cff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x8c8b88ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.regex".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x95e6cbff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xe6b673ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special.symbol".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfe8f40ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfe8f40ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"title".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xbfbdb6ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x59c2ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xbfbdb6ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5ac2feff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
UserTheme {
|
|
name: "Ayu Light".into(),
|
|
appearance: Appearance::Light,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0xdfe0e1ff).into()),
|
|
border_variant: Some(rgba(0xefeff0ff).into()),
|
|
elevated_surface_background: Some(rgba(0xdcdddeff).into()),
|
|
background: Some(rgba(0xdcdddeff).into()),
|
|
panel_background: Some(rgba(0xececedff).into()),
|
|
element_hover: Some(rgba(0xcfd1d280).into()),
|
|
element_selected: Some(rgba(0xc0c2c480).into()),
|
|
text: Some(rgba(0x5c6166ff).into()),
|
|
text_muted: Some(rgba(0x8c8f93ff).into()),
|
|
text_placeholder: Some(rgba(0xb9bbbdff).into()),
|
|
text_disabled: Some(rgba(0x5c6166ff).into()),
|
|
text_accent: Some(rgba(0x3b9ee5ff).into()),
|
|
status_bar_background: Some(rgba(0xdcdddeff).into()),
|
|
title_bar_background: Some(rgba(0xdcdddeff).into()),
|
|
toolbar_background: Some(rgba(0xfcfcfcff).into()),
|
|
tab_bar_background: Some(rgba(0xececedff).into()),
|
|
tab_inactive_background: Some(rgba(0xececedff).into()),
|
|
tab_active_background: Some(rgba(0xfcfcfcff).into()),
|
|
scrollbar_thumb_background: Some(rgba(0x5c61664d).into()),
|
|
scrollbar_thumb_hover_background: Some(rgba(0x5c61664d).into()),
|
|
scrollbar_thumb_border: Some(rgba(0xefeff0ff).into()),
|
|
scrollbar_track_border: Some(rgba(0xefeff0ff).into()),
|
|
editor_foreground: Some(rgba(0x5c6166ff).into()),
|
|
editor_background: Some(rgba(0xfcfcfcff).into()),
|
|
editor_gutter_background: Some(rgba(0xfcfcfcff).into()),
|
|
editor_line_number: Some(rgba(0x5c616659).into()),
|
|
editor_active_line_number: Some(rgba(0x5c6166ff).into()),
|
|
editor_wrap_guide: Some(rgba(0x5c61660d).into()),
|
|
editor_active_wrap_guide: Some(rgba(0x5c61661a).into()),
|
|
terminal_background: Some(rgba(0xfcfcfcff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0xbcbec0ff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0xfebab6ff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0xc7d98fff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0xffd6a4ff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0xaccef3ff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0xb2d9e9ff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0xace0cbff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0x5c6166ff).into()),
|
|
terminal_ansi_black: Some(rgba(0xfcfcfcff).into()),
|
|
terminal_ansi_red: Some(rgba(0xef7271ff).into()),
|
|
terminal_ansi_green: Some(rgba(0x86b305ff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xf1ae4aff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x3b9ee5ff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0x56b4d3ff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x4dbf99ff).into()),
|
|
terminal_ansi_white: Some(rgba(0x5c6166ff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
created: Some(rgba(0xa1c24bff).into()),
|
|
deleted: Some(rgba(0xef7271ff).into()),
|
|
error: Some(rgba(0xef7271ff).into()),
|
|
modified: Some(rgba(0xf1ae4aff).into()),
|
|
success: Some(rgba(0x5c6166ff).into()),
|
|
warning: Some(rgba(0xf1ae4aff).into()),
|
|
..Default::default()
|
|
},
|
|
player: Some(PlayerColors(vec![
|
|
PlayerColor {
|
|
cursor: rgba(0x3b9ee5ff).into(),
|
|
background: rgba(0x3b9ee5ff).into(),
|
|
selection: rgba(0x3b9ee53d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x56b4d3ff).into(),
|
|
background: rgba(0x56b4d3ff).into(),
|
|
selection: rgba(0x56b4d33d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xf98d3fff).into(),
|
|
background: rgba(0xf98d3fff).into(),
|
|
selection: rgba(0xf98d3f3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xa37accff).into(),
|
|
background: rgba(0xa37accff).into(),
|
|
selection: rgba(0xa37acc3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x4dbf99ff).into(),
|
|
background: rgba(0x4dbf99ff).into(),
|
|
selection: rgba(0x4dbf993d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xef7271ff).into(),
|
|
background: rgba(0xef7271ff).into(),
|
|
selection: rgba(0xef72713d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xf1ae4aff).into(),
|
|
background: rgba(0xf1ae4aff).into(),
|
|
selection: rgba(0xf1ae4a3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x86b305ff).into(),
|
|
background: rgba(0x86b305ff).into(),
|
|
selection: rgba(0x86b3053d).into(),
|
|
},
|
|
])),
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa37accff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x787b8099).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment.doc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x8a8e91ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa37accff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constructor".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"embedded".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5c6166ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"enum".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf98d3fff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf2ae49ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"hint".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x8ca7c2ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfa8d3eff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"label".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf98d3fff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x86b305ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa37accff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xed9366ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"predictive".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x9eb9d3ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"preproc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5c6166ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"primary".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5c6166ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73777bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.bracket".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73777bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.delimiter".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73777bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.list_marker".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73777bff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xa37accff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x86b300ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x8a8e91ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.regex".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x4cbf99ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xe6ba7eff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special.symbol".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf98d3fff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf98d3fff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"title".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5c6166ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x399ee6ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x5c6166ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x3b9ee5ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
UserTheme {
|
|
name: "Ayu Mirage".into(),
|
|
appearance: Appearance::Dark,
|
|
styles: UserThemeStylesRefinement {
|
|
colors: ThemeColorsRefinement {
|
|
border: Some(rgba(0x43464fff).into()),
|
|
border_variant: Some(rgba(0x323641ff).into()),
|
|
elevated_surface_background: Some(rgba(0x464a52ff).into()),
|
|
background: Some(rgba(0x464a52ff).into()),
|
|
panel_background: Some(rgba(0x353944ff).into()),
|
|
element_hover: Some(rgba(0x53565d80).into()),
|
|
element_selected: Some(rgba(0x63656a80).into()),
|
|
text: Some(rgba(0xcccac2ff).into()),
|
|
text_muted: Some(rgba(0x9a9a98ff).into()),
|
|
text_placeholder: Some(rgba(0x6b6d71ff).into()),
|
|
text_disabled: Some(rgba(0xcccac2ff).into()),
|
|
text_accent: Some(rgba(0x73cffeff).into()),
|
|
status_bar_background: Some(rgba(0x464a52ff).into()),
|
|
title_bar_background: Some(rgba(0x464a52ff).into()),
|
|
toolbar_background: Some(rgba(0x242936ff).into()),
|
|
tab_bar_background: Some(rgba(0x353944ff).into()),
|
|
tab_inactive_background: Some(rgba(0x353944ff).into()),
|
|
tab_active_background: Some(rgba(0x242936ff).into()),
|
|
scrollbar_thumb_background: Some(rgba(0xcccac24d).into()),
|
|
scrollbar_thumb_hover_background: Some(rgba(0xcccac24d).into()),
|
|
scrollbar_thumb_border: Some(rgba(0x323641ff).into()),
|
|
scrollbar_track_border: Some(rgba(0x323641ff).into()),
|
|
editor_foreground: Some(rgba(0xcccac2ff).into()),
|
|
editor_background: Some(rgba(0x242936ff).into()),
|
|
editor_gutter_background: Some(rgba(0x242936ff).into()),
|
|
editor_line_number: Some(rgba(0xcccac259).into()),
|
|
editor_active_line_number: Some(rgba(0xcccac2ff).into()),
|
|
editor_wrap_guide: Some(rgba(0xcccac20d).into()),
|
|
editor_active_wrap_guide: Some(rgba(0xcccac21a).into()),
|
|
terminal_background: Some(rgba(0x242936ff).into()),
|
|
terminal_ansi_bright_black: Some(rgba(0x67696eff).into()),
|
|
terminal_ansi_bright_red: Some(rgba(0x83403dff).into()),
|
|
terminal_ansi_bright_green: Some(rgba(0x76993dff).into()),
|
|
terminal_ansi_bright_yellow: Some(rgba(0x937238ff).into()),
|
|
terminal_ansi_bright_blue: Some(rgba(0x346e8dff).into()),
|
|
terminal_ansi_bright_magenta: Some(rgba(0x2b6c7bff).into()),
|
|
terminal_ansi_bright_cyan: Some(rgba(0x4c806fff).into()),
|
|
terminal_ansi_bright_white: Some(rgba(0xcccac2ff).into()),
|
|
terminal_ansi_black: Some(rgba(0x242936ff).into()),
|
|
terminal_ansi_red: Some(rgba(0xf18779ff).into()),
|
|
terminal_ansi_green: Some(rgba(0xd5fe80ff).into()),
|
|
terminal_ansi_yellow: Some(rgba(0xfed073ff).into()),
|
|
terminal_ansi_blue: Some(rgba(0x73cffeff).into()),
|
|
terminal_ansi_magenta: Some(rgba(0x5ccee5ff).into()),
|
|
terminal_ansi_cyan: Some(rgba(0x95e5cbff).into()),
|
|
terminal_ansi_white: Some(rgba(0xcccac2ff).into()),
|
|
..Default::default()
|
|
},
|
|
status: StatusColorsRefinement {
|
|
created: Some(rgba(0xd5fe80ff).into()),
|
|
deleted: Some(rgba(0xc46a60ff).into()),
|
|
error: Some(rgba(0xf18779ff).into()),
|
|
modified: Some(rgba(0xfed073ff).into()),
|
|
success: Some(rgba(0xcccac2ff).into()),
|
|
warning: Some(rgba(0xfed073ff).into()),
|
|
..Default::default()
|
|
},
|
|
player: Some(PlayerColors(vec![
|
|
PlayerColor {
|
|
cursor: rgba(0x73cffeff).into(),
|
|
background: rgba(0x73cffeff).into(),
|
|
selection: rgba(0x73cffe3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x5ccee5ff).into(),
|
|
background: rgba(0x5ccee5ff).into(),
|
|
selection: rgba(0x5ccee53d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xfead66ff).into(),
|
|
background: rgba(0xfead66ff).into(),
|
|
selection: rgba(0xfead663d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xdebffeff).into(),
|
|
background: rgba(0xdebffeff).into(),
|
|
selection: rgba(0xdebffe3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0x95e5cbff).into(),
|
|
background: rgba(0x95e5cbff).into(),
|
|
selection: rgba(0x95e5cb3d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xf18779ff).into(),
|
|
background: rgba(0xf18779ff).into(),
|
|
selection: rgba(0xf187793d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xfed073ff).into(),
|
|
background: rgba(0xfed073ff).into(),
|
|
selection: rgba(0xfed0733d).into(),
|
|
},
|
|
PlayerColor {
|
|
cursor: rgba(0xd5fe80ff).into(),
|
|
background: rgba(0xd5fe80ff).into(),
|
|
selection: rgba(0xd5fe803d).into(),
|
|
},
|
|
])),
|
|
syntax: Some(UserSyntaxTheme {
|
|
highlights: vec![
|
|
(
|
|
"attribute".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"boolean".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xdfbfffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xb8cfe680).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"comment.doc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x9b9b99ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xdfbfffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"constructor".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"embedded".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xcccac2ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"emphasis.strong".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"enum".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfead66ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"function".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffd173ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"hint".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x7399a3ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"keyword".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffad66ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"label".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_text".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfead66ff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"link_uri".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd5fe80ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"number".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xdfbfffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"operator".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xf29e74ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"predictive".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x6d839bff).into()),
|
|
font_style: Some(UserFontStyle::Italic),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"preproc".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xcccac2ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"primary".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xcccac2ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"property".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xb4b3aeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.bracket".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xb4b3aeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.delimiter".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xb4b3aeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.list_marker".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xb4b3aeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"punctuation.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xdfbfffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xd5ff80ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.escape".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x9b9b99ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.regex".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x95e6cbff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xffdfb3ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"string.special.symbol".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfead66ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"tag".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"text.literal".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xfead66ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"title".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xcccac2ff).into()),
|
|
font_weight: Some(UserFontWeight(700.0)),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"type".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73d0ffff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variable".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0xcccac2ff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
(
|
|
"variant".into(),
|
|
UserHighlightStyle {
|
|
color: Some(rgba(0x73cffeff).into()),
|
|
..Default::default()
|
|
},
|
|
),
|
|
],
|
|
}),
|
|
},
|
|
},
|
|
],
|
|
}
|
|
}
|