Finish up initial themes
This commit is contained in:
parent
62981fc2ee
commit
3cb72610b3
34 changed files with 14401 additions and 47 deletions
|
@ -7,12 +7,12 @@ use crate::{
|
|||
|
||||
pub fn andromeda() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "0d2fdd0e-de6d-44b2-8f16-f4da10a78f2e".into(),
|
||||
id: "192bb9a2-a028-4c9a-b713-4c92330b3fab".into(),
|
||||
name: "Andromeda".into(),
|
||||
author: "Eliver Lara (EliverLara)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "8a4e3be2-0ea0-4a0c-9fee-bc63123205ba".into(),
|
||||
id: "a3aaa73f-f225-41bd-8d52-77ca1df0b7f7".into(),
|
||||
name: "Andromeda".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -170,7 +170,7 @@ pub fn andromeda() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "812f0805-5f84-4f3f-97d3-b38b44307132".into(),
|
||||
id: "91a17b19-1e74-487e-b0a0-56e2e5360ab8".into(),
|
||||
name: "Andromeda Bordered".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
|
|
@ -7,12 +7,12 @@ use crate::{
|
|||
|
||||
pub fn ayu() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "769923cd-f2b6-4675-96b8-8a2953fc635b".into(),
|
||||
id: "5ace5bd5-0231-4f26-a69f-40a96dd4163e".into(),
|
||||
name: "Ayu".into(),
|
||||
author: "dempfi (Ike Ku)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "f6ae55e2-a844-47ba-a720-ca88dd7b2a12".into(),
|
||||
id: "7781d65c-4575-421d-af3c-061ab0b0478a".into(),
|
||||
name: "Ayu Light".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
@ -170,7 +170,7 @@ pub fn ayu() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "440f604c-3a70-4bac-901a-2dc92c7a241a".into(),
|
||||
id: "68066666-5e56-4937-9434-510ffd0fe05f".into(),
|
||||
name: "Ayu Mirage".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -328,7 +328,7 @@ pub fn ayu() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "0135d1f0-1331-4e5a-9634-73e8f72356d0".into(),
|
||||
id: "d4f949b8-e5b9-4337-a52e-2ed1752a6c4f".into(),
|
||||
name: "Ayu Dark".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
|
|
@ -7,11 +7,11 @@ use crate::{
|
|||
|
||||
pub fn dracula() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "690e6a78-4aa6-471e-a342-4d0e0ee14952".into(),
|
||||
id: "20b9a8c0-0b74-483b-bed2-be7a053e1321".into(),
|
||||
name: "Dracula".into(),
|
||||
author: "Zeno Rocha".into(),
|
||||
themes: vec![ThemeVariant {
|
||||
id: "b4d04bac-514f-4a38-bf03-df54bb135d82".into(),
|
||||
id: "02f5624f-9b0a-48e0-8897-4557adc8f104".into(),
|
||||
name: "Dracula".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
|
|
@ -7,12 +7,12 @@ use crate::{
|
|||
|
||||
pub fn gruvbox() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "c3d8b05f-5538-4b73-9ce9-30a31f73f5f2".into(),
|
||||
id: "c0b7f0e7-f261-4a33-a2bf-baf2e140aac4".into(),
|
||||
name: "Gruvbox".into(),
|
||||
author: "morhetz".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "014ce751-7184-44a0-b977-001d88e94d75".into(),
|
||||
id: "fb9f8f64-372b-4fda-8dbd-d610c97a9691".into(),
|
||||
name: "Gruvbox Dark Hard".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -170,7 +170,7 @@ pub fn gruvbox() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "abf0dd62-cc6a-464b-bd63-75c28eabb1c0".into(),
|
||||
id: "72f0ea45-33bc-49d8-9f52-87540f858fb4".into(),
|
||||
name: "Gruvbox Dark Medium".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -328,7 +328,7 @@ pub fn gruvbox() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "03a2ee16-8076-449b-9bb2-16fd02fbf21d".into(),
|
||||
id: "5ea1cdf8-6ed0-4e54-b44a-14c6634701cf".into(),
|
||||
name: "Gruvbox Dark Soft".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -486,7 +486,7 @@ pub fn gruvbox() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "7bbc0a0b-5b57-4731-bfae-02b4ff7ee821".into(),
|
||||
id: "b0c9082f-00c8-4a02-a4de-9fd7af97c7f2".into(),
|
||||
name: "Gruvbox Light Hard".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
@ -644,7 +644,7 @@ pub fn gruvbox() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "3319ee0f-2d7f-4efc-84ae-132b30126bb1".into(),
|
||||
id: "172c281c-ff0a-496e-8794-880e2fc3aa49".into(),
|
||||
name: "Gruvbox Light Medium".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
@ -802,7 +802,7 @@ pub fn gruvbox() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "d455f416-a0a5-4ef6-a808-64aafeb7aaae".into(),
|
||||
id: "b94f3305-b755-44f2-948c-cfd8c9d3158f".into(),
|
||||
name: "Gruvbox Light Soft".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
|
|
@ -2,18 +2,40 @@ mod andromeda;
|
|||
mod ayu;
|
||||
mod dracula;
|
||||
mod gruvbox;
|
||||
mod night_owl;
|
||||
mod nord;
|
||||
mod notctis;
|
||||
mod palenight;
|
||||
mod rose_pine;
|
||||
mod solarized;
|
||||
mod synthwave_84;
|
||||
|
||||
pub use andromeda::*;
|
||||
pub use ayu::*;
|
||||
pub use dracula::*;
|
||||
pub use gruvbox::*;
|
||||
pub use night_owl::*;
|
||||
pub use nord::*;
|
||||
pub use notctis::*;
|
||||
pub use palenight::*;
|
||||
pub use rose_pine::*;
|
||||
pub use solarized::*;
|
||||
pub use synthwave_84::*;
|
||||
|
||||
use crate::ThemeFamily;
|
||||
|
||||
pub(crate) fn all_imported_themes() -> Vec<ThemeFamily> {
|
||||
vec![andromeda(), dracula(), nord(), notctis(), ayu(), gruvbox()]
|
||||
vec![
|
||||
rose_pine(),
|
||||
night_owl(),
|
||||
andromeda(),
|
||||
synthwave_84(),
|
||||
palenight(),
|
||||
dracula(),
|
||||
solarized(),
|
||||
nord(),
|
||||
notctis(),
|
||||
ayu(),
|
||||
gruvbox(),
|
||||
]
|
||||
}
|
||||
|
|
333
crates/theme2/src/themes/night_owl.rs
Normal file
333
crates/theme2/src/themes/night_owl.rs
Normal file
|
@ -0,0 +1,333 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
default_color_scales, Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors,
|
||||
SyntaxTheme, SystemColors, ThemeColors, ThemeFamily, ThemeStyles, ThemeVariant,
|
||||
};
|
||||
|
||||
pub fn night_owl() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "b6469599-df68-4604-be9d-44f63d877d53".into(),
|
||||
name: "Night Owl".into(),
|
||||
author: "Sarah Drasner (sdras)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "2a04e5fa-e266-475b-b965-3d92efe77ad9".into(),
|
||||
name: "Night Owl".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x5f7e97ff).into(),
|
||||
border_variant: rgba(0x5f7e97ff).into(),
|
||||
border_focused: rgba(0x5f7e97ff).into(),
|
||||
border_disabled: rgba(0x5f7e97ff).into(),
|
||||
border_selected: rgba(0x5f7e97ff).into(),
|
||||
border_transparent: rgba(0x5f7e97ff).into(),
|
||||
elevated_surface_background: rgba(0x011526ff).into(),
|
||||
surface_background: rgba(0x011526ff).into(),
|
||||
background: rgba(0x011526ff).into(),
|
||||
element_background: rgba(0x7d56c1cc).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xd6deebff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x01101cff).into(),
|
||||
tab_active_background: rgba(0x0a2842ff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x575656ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xef524fff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x21da6eff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xffeb95ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x7fdbcaff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xffffffff).into(),
|
||||
terminal_ansi_black: rgba(0x011526ff).into(),
|
||||
terminal_ansi_red: rgba(0xef524fff).into(),
|
||||
terminal_ansi_green: rgba(0x21da6eff).into(),
|
||||
terminal_ansi_yellow: rgba(0xc5e478ff).into(),
|
||||
terminal_ansi_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_cyan: rgba(0x20c7a7ff).into(),
|
||||
terminal_ansi_white: rgba(0xffffffff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "91901d29-1c1f-49ef-ac69-c25639425f7c".into(),
|
||||
name: "Night Owl Light".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0xd9d9d9ff).into(),
|
||||
border_variant: rgba(0xd9d9d9ff).into(),
|
||||
border_focused: rgba(0xd9d9d9ff).into(),
|
||||
border_disabled: rgba(0xd9d9d9ff).into(),
|
||||
border_selected: rgba(0xd9d9d9ff).into(),
|
||||
border_transparent: rgba(0xd9d9d9ff).into(),
|
||||
elevated_surface_background: rgba(0xf0f0f0ff).into(),
|
||||
surface_background: rgba(0xf0f0f0ff).into(),
|
||||
background: rgba(0xfbfbfbff).into(),
|
||||
element_background: rgba(0x29a298ff).into(),
|
||||
element_hover: rgba(0xe8e8ecff).into(),
|
||||
element_active: rgba(0xe0e1e6ff).into(),
|
||||
element_selected: rgba(0xe0e1e6ff).into(),
|
||||
element_disabled: rgba(0x0000320f).into(),
|
||||
element_placeholder: rgba(0x60646cff).into(),
|
||||
element_drop_target: rgba(0x008bff0b).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0xe8e8ecff).into(),
|
||||
ghost_element_active: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_selected: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_disabled: rgba(0x0000320f).into(),
|
||||
text: rgba(0x403f53ff).into(),
|
||||
text_muted: rgba(0x60646cff).into(),
|
||||
text_placeholder: rgba(0x80838dff).into(),
|
||||
text_disabled: rgba(0x8b8d98ff).into(),
|
||||
text_accent: rgba(0x0c73ceff).into(),
|
||||
icon: rgba(0x60646cff).into(),
|
||||
icon_muted: rgba(0x80838dff).into(),
|
||||
icon_disabled: rgba(0x8b8d98ff).into(),
|
||||
icon_placeholder: rgba(0x80838dff).into(),
|
||||
icon_accent: rgba(0x0c73ceff).into(),
|
||||
status_bar_background: rgba(0xf9f9fbff).into(),
|
||||
title_bar_background: rgba(0xf9f9fbff).into(),
|
||||
toolbar_background: rgba(0xfcfcfdff).into(),
|
||||
tab_bar_background: rgba(0xf9f9fbff).into(),
|
||||
tab_inactive_background: rgba(0xf0f0f0ff).into(),
|
||||
tab_active_background: rgba(0xf6f6f6ff).into(),
|
||||
editor_background: rgba(0xfcfcfdff).into(),
|
||||
editor_subheader_background: rgba(0xf9f9fbff).into(),
|
||||
editor_active_line: rgba(0x0000320f).into(),
|
||||
terminal_background: rgba(0xf6f6f6ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x403f53ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xde3c3aff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x07916aff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xdaa900ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x278dd7ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xd64289ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x29a298ff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xf0f0f0ff).into(),
|
||||
terminal_ansi_black: rgba(0x403f53ff).into(),
|
||||
terminal_ansi_red: rgba(0xde3c3aff).into(),
|
||||
terminal_ansi_green: rgba(0x07916aff).into(),
|
||||
terminal_ansi_yellow: rgba(0xe0ae01ff).into(),
|
||||
terminal_ansi_blue: rgba(0x278dd7ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xd64289ff).into(),
|
||||
terminal_ansi_cyan: rgba(0x29a298ff).into(),
|
||||
terminal_ansi_white: rgba(0xf0f0f0ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
scales: default_color_scales(),
|
||||
}
|
||||
}
|
|
@ -7,11 +7,11 @@ use crate::{
|
|||
|
||||
pub fn nord() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "63407887-c052-4dd4-b781-e6194ddcbead".into(),
|
||||
id: "dcd03133-f540-47e7-9360-91bb1c94d16e".into(),
|
||||
name: "Nord".into(),
|
||||
author: "Sven Greb (svengreb)".into(),
|
||||
themes: vec![ThemeVariant {
|
||||
id: "27d48816-e82b-4285-a615-7a970d51b4a0".into(),
|
||||
id: "ed7e8c08-321a-41f0-bd22-ca92c0b42e0e".into(),
|
||||
name: "Nord".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
|
|
@ -7,12 +7,12 @@ use crate::{
|
|||
|
||||
pub fn notctis() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "7cd79bb0-ffd7-48b5-b104-a6c171161a1b".into(),
|
||||
id: "077650e4-c11f-4cb5-96ec-73bc74923e95".into(),
|
||||
name: "Notctis".into(),
|
||||
author: "Liviu Schera (liviuschera)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "66251405-0342-4f10-849c-b81fe33009aa".into(),
|
||||
id: "47135df9-e9b5-480c-a71b-c85052b8ff93".into(),
|
||||
name: "Noctis Azureus".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -170,7 +170,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "3717c8d5-deb9-4551-ac9b-12cf37c5af11".into(),
|
||||
id: "5a3842b1-2273-47ce-ab82-4179842362b1".into(),
|
||||
name: "Noctis Bordo".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -328,7 +328,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "9143cedc-71a4-4005-9b4d-ed23c4ac83fc".into(),
|
||||
id: "a83c02b3-23f3-496b-8644-57df3314601e".into(),
|
||||
name: "Noctus Hibernus".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
@ -486,7 +486,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "82f6e468-a5de-4e3a-ba13-4ced22ac819b".into(),
|
||||
id: "bda85aea-2260-455a-959a-c03b0a62b8f4".into(),
|
||||
name: "Noctis Lilac".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -644,7 +644,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "655fe060-e62c-4582-a9d2-87ab9f8f21b7".into(),
|
||||
id: "7720f487-6b09-4bb6-9add-272b030c013f".into(),
|
||||
name: "Noctis Lux".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
|
@ -802,7 +802,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "b8540210-1aff-4d72-bb65-040b2c575e35".into(),
|
||||
id: "51dfe842-b4e2-4d95-a306-8e579a3bb51c".into(),
|
||||
name: "Noctis Minimus".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -960,7 +960,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "70577f71-a351-43c6-9b64-7a5f95ef0ad2".into(),
|
||||
id: "75a67a53-afbe-4073-a7c0-85a40b56c2cc".into(),
|
||||
name: "Noctis".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -1118,7 +1118,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "abcd25b0-8740-430f-a7e0-0b193ef1c271".into(),
|
||||
id: "0202afff-5703-473b-b6b6-e86ac3a70718".into(),
|
||||
name: "Noctis Obscuro".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -1276,7 +1276,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "86b6a2b4-69b9-40d5-b078-3feb93d0786d".into(),
|
||||
id: "213fd750-27ad-4762-8891-08282ed316c7".into(),
|
||||
name: "Noctis Sereno".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -1434,7 +1434,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "aa50141c-1c64-4773-980f-e4bf062f893f".into(),
|
||||
id: "0cc2c841-1c01-40a7-8396-1234dd077ede".into(),
|
||||
name: "Noctis Uva".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
@ -1592,7 +1592,7 @@ pub fn notctis() -> ThemeFamily {
|
|||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "ce4ba03d-5a76-4e6c-9b45-f7c2c2fa3b41".into(),
|
||||
id: "090a97c7-ad25-4a35-96e6-2fce5e471e6b".into(),
|
||||
name: "Noctis Viola".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
|
|
491
crates/theme2/src/themes/palenight.rs
Normal file
491
crates/theme2/src/themes/palenight.rs
Normal file
|
@ -0,0 +1,491 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
default_color_scales, Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors,
|
||||
SyntaxTheme, SystemColors, ThemeColors, ThemeFamily, ThemeStyles, ThemeVariant,
|
||||
};
|
||||
|
||||
pub fn palenight() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "3187cd2f-29da-4bde-9621-83016df3b393".into(),
|
||||
name: "Palenight".into(),
|
||||
author: "Olaolu Olawuyi (whizkydee)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "0eaa3098-3aa2-4b8e-b1df-92d9ebd9a0b8".into(),
|
||||
name: "Palenight".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x282b3bff).into(),
|
||||
border_variant: rgba(0x282b3bff).into(),
|
||||
border_focused: rgba(0x282b3bff).into(),
|
||||
border_disabled: rgba(0x282b3bff).into(),
|
||||
border_selected: rgba(0x282b3bff).into(),
|
||||
border_transparent: rgba(0x282b3bff).into(),
|
||||
elevated_surface_background: rgba(0x292c3eff).into(),
|
||||
surface_background: rgba(0x292c3eff).into(),
|
||||
background: rgba(0x292c3eff).into(),
|
||||
element_background: rgba(0x7d56c1cc).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xffffffff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x31364aff).into(),
|
||||
tab_active_background: rgba(0x292c3eff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0xc3e88dff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xffffffff).into(),
|
||||
terminal_ansi_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_green: rgba(0xa9c77dff).into(),
|
||||
terminal_ansi_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_white: rgba(0xffffffff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "b6a27c72-c5b1-431b-8bfe-29e33dbcb337".into(),
|
||||
name: "Palenight Operator".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x282b3bff).into(),
|
||||
border_variant: rgba(0x282b3bff).into(),
|
||||
border_focused: rgba(0x282b3bff).into(),
|
||||
border_disabled: rgba(0x282b3bff).into(),
|
||||
border_selected: rgba(0x282b3bff).into(),
|
||||
border_transparent: rgba(0x282b3bff).into(),
|
||||
elevated_surface_background: rgba(0x292c3eff).into(),
|
||||
surface_background: rgba(0x292c3eff).into(),
|
||||
background: rgba(0x292c3eff).into(),
|
||||
element_background: rgba(0x7d56c1cc).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xffffffff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x31364aff).into(),
|
||||
tab_active_background: rgba(0x292c3eff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0xc3e88dff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xffffffff).into(),
|
||||
terminal_ansi_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_green: rgba(0xa9c77dff).into(),
|
||||
terminal_ansi_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_white: rgba(0xffffffff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "4015bf85-061c-45ff-81ba-a31f017aac83".into(),
|
||||
name: "Palenight (Mild Contrast)".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x2c2f40ff).into(),
|
||||
border_variant: rgba(0x2c2f40ff).into(),
|
||||
border_focused: rgba(0x2c2f40ff).into(),
|
||||
border_disabled: rgba(0x2c2f40ff).into(),
|
||||
border_selected: rgba(0x2c2f40ff).into(),
|
||||
border_transparent: rgba(0x2c2f40ff).into(),
|
||||
elevated_surface_background: rgba(0x25283aff).into(),
|
||||
surface_background: rgba(0x25283aff).into(),
|
||||
background: rgba(0x292c3eff).into(),
|
||||
element_background: rgba(0x7d56c1cc).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xffffffff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x31364aff).into(),
|
||||
tab_active_background: rgba(0x25283aff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0xc3e88dff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xffffffff).into(),
|
||||
terminal_ansi_black: rgba(0x676e95ff).into(),
|
||||
terminal_ansi_red: rgba(0xff5571ff).into(),
|
||||
terminal_ansi_green: rgba(0xa9c77dff).into(),
|
||||
terminal_ansi_yellow: rgba(0xffcb6bff).into(),
|
||||
terminal_ansi_blue: rgba(0x82aaffff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc792eaff).into(),
|
||||
terminal_ansi_cyan: rgba(0x89ddffff).into(),
|
||||
terminal_ansi_white: rgba(0xffffffff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
scales: default_color_scales(),
|
||||
}
|
||||
}
|
491
crates/theme2/src/themes/rose_pine.rs
Normal file
491
crates/theme2/src/themes/rose_pine.rs
Normal file
|
@ -0,0 +1,491 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
default_color_scales, Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors,
|
||||
SyntaxTheme, SystemColors, ThemeColors, ThemeFamily, ThemeStyles, ThemeVariant,
|
||||
};
|
||||
|
||||
pub fn rose_pine() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "48c308b9-7dbe-4a52-b935-0b44d9dac00d".into(),
|
||||
name: "Rose Pine".into(),
|
||||
author: "Rosé Pine".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "c2832e85-20cb-4a13-924f-026e68123068".into(),
|
||||
name: "Rose Pine".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x000000ff).into(),
|
||||
border_variant: rgba(0x000000ff).into(),
|
||||
border_focused: rgba(0x000000ff).into(),
|
||||
border_disabled: rgba(0x000000ff).into(),
|
||||
border_selected: rgba(0x000000ff).into(),
|
||||
border_transparent: rgba(0x000000ff).into(),
|
||||
elevated_surface_background: rgba(0x1f1d2eff).into(),
|
||||
surface_background: rgba(0x1f1d2eff).into(),
|
||||
background: rgba(0x191724ff).into(),
|
||||
element_background: rgba(0xebbcbaff).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xe0def4ff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x000000ff).into(),
|
||||
tab_active_background: rgba(0x6e6a861a).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x908caaff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xeb6f92ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x30738fff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xf5c177ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x9ccfd8ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc4a7e7ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0xebbcbaff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xe0def4ff).into(),
|
||||
terminal_ansi_black: rgba(0x26233aff).into(),
|
||||
terminal_ansi_red: rgba(0xeb6f92ff).into(),
|
||||
terminal_ansi_green: rgba(0x30738fff).into(),
|
||||
terminal_ansi_yellow: rgba(0xf5c177ff).into(),
|
||||
terminal_ansi_blue: rgba(0x9ccfd8ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc4a7e7ff).into(),
|
||||
terminal_ansi_cyan: rgba(0xebbcbaff).into(),
|
||||
terminal_ansi_white: rgba(0xe0def4ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "3f6c3263-86f4-4a0e-92a6-144984aa2d38".into(),
|
||||
name: "Rose Moon".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x000000ff).into(),
|
||||
border_variant: rgba(0x000000ff).into(),
|
||||
border_focused: rgba(0x000000ff).into(),
|
||||
border_disabled: rgba(0x000000ff).into(),
|
||||
border_selected: rgba(0x000000ff).into(),
|
||||
border_transparent: rgba(0x000000ff).into(),
|
||||
elevated_surface_background: rgba(0x2a273eff).into(),
|
||||
surface_background: rgba(0x2a273eff).into(),
|
||||
background: rgba(0x232136ff).into(),
|
||||
element_background: rgba(0xea9a97ff).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xe0def4ff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x000000ff).into(),
|
||||
tab_active_background: rgba(0x817c9c14).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x908caaff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xeb6f92ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x3d8fb0ff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xf5c177ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x9ccfd8ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xc4a7e7ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0xea9a97ff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xe0def4ff).into(),
|
||||
terminal_ansi_black: rgba(0x393552ff).into(),
|
||||
terminal_ansi_red: rgba(0xeb6f92ff).into(),
|
||||
terminal_ansi_green: rgba(0x3d8fb0ff).into(),
|
||||
terminal_ansi_yellow: rgba(0xf5c177ff).into(),
|
||||
terminal_ansi_blue: rgba(0x9ccfd8ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xc4a7e7ff).into(),
|
||||
terminal_ansi_cyan: rgba(0xea9a97ff).into(),
|
||||
terminal_ansi_white: rgba(0xe0def4ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "d171cda6-de3b-4528-8559-cd8fb71b2e7c".into(),
|
||||
name: "Rose Pine Dawn".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x000000ff).into(),
|
||||
border_variant: rgba(0x000000ff).into(),
|
||||
border_focused: rgba(0x000000ff).into(),
|
||||
border_disabled: rgba(0x000000ff).into(),
|
||||
border_selected: rgba(0x000000ff).into(),
|
||||
border_transparent: rgba(0x000000ff).into(),
|
||||
elevated_surface_background: rgba(0xfffaf3ff).into(),
|
||||
surface_background: rgba(0xfffaf3ff).into(),
|
||||
background: rgba(0xfaf4edff).into(),
|
||||
element_background: rgba(0xd7827dff).into(),
|
||||
element_hover: rgba(0xe8e8ecff).into(),
|
||||
element_active: rgba(0xe0e1e6ff).into(),
|
||||
element_selected: rgba(0xe0e1e6ff).into(),
|
||||
element_disabled: rgba(0x0000320f).into(),
|
||||
element_placeholder: rgba(0x60646cff).into(),
|
||||
element_drop_target: rgba(0x008bff0b).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0xe8e8ecff).into(),
|
||||
ghost_element_active: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_selected: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_disabled: rgba(0x0000320f).into(),
|
||||
text: rgba(0x575279ff).into(),
|
||||
text_muted: rgba(0x60646cff).into(),
|
||||
text_placeholder: rgba(0x80838dff).into(),
|
||||
text_disabled: rgba(0x8b8d98ff).into(),
|
||||
text_accent: rgba(0x0c73ceff).into(),
|
||||
icon: rgba(0x60646cff).into(),
|
||||
icon_muted: rgba(0x80838dff).into(),
|
||||
icon_disabled: rgba(0x8b8d98ff).into(),
|
||||
icon_placeholder: rgba(0x80838dff).into(),
|
||||
icon_accent: rgba(0x0c73ceff).into(),
|
||||
status_bar_background: rgba(0xf9f9fbff).into(),
|
||||
title_bar_background: rgba(0xf9f9fbff).into(),
|
||||
toolbar_background: rgba(0xfcfcfdff).into(),
|
||||
tab_bar_background: rgba(0xf9f9fbff).into(),
|
||||
tab_inactive_background: rgba(0x000000ff).into(),
|
||||
tab_active_background: rgba(0x6e6a860d).into(),
|
||||
editor_background: rgba(0xfcfcfdff).into(),
|
||||
editor_subheader_background: rgba(0xf9f9fbff).into(),
|
||||
editor_active_line: rgba(0x0000320f).into(),
|
||||
terminal_background: rgba(0xfcfcfdff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x797593ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xb3627aff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x276983ff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xea9d34ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x55949fff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0x9079a9ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0xd7827dff).into(),
|
||||
terminal_ansi_bright_white: rgba(0x575279ff).into(),
|
||||
terminal_ansi_black: rgba(0xf2e9e1ff).into(),
|
||||
terminal_ansi_red: rgba(0xb3627aff).into(),
|
||||
terminal_ansi_green: rgba(0x276983ff).into(),
|
||||
terminal_ansi_yellow: rgba(0xea9d34ff).into(),
|
||||
terminal_ansi_blue: rgba(0x55949fff).into(),
|
||||
terminal_ansi_magenta: rgba(0x9079a9ff).into(),
|
||||
terminal_ansi_cyan: rgba(0xd7827dff).into(),
|
||||
terminal_ansi_white: rgba(0x575279ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
scales: default_color_scales(),
|
||||
}
|
||||
}
|
333
crates/theme2/src/themes/solarized.rs
Normal file
333
crates/theme2/src/themes/solarized.rs
Normal file
|
@ -0,0 +1,333 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
default_color_scales, Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors,
|
||||
SyntaxTheme, SystemColors, ThemeColors, ThemeFamily, ThemeStyles, ThemeVariant,
|
||||
};
|
||||
|
||||
pub fn solarized() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "9a6f18c9-520f-46ec-9bfb-a7ee73508139".into(),
|
||||
name: "Solarized".into(),
|
||||
author: "Ethan Schoonover (altercation)".into(),
|
||||
themes: vec![
|
||||
ThemeVariant {
|
||||
id: "74003db2-7f9a-4d26-8815-020c796bb551".into(),
|
||||
name: "Solarized Dark".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x003847ff).into(),
|
||||
border_variant: rgba(0x003847ff).into(),
|
||||
border_focused: rgba(0x003847ff).into(),
|
||||
border_disabled: rgba(0x003847ff).into(),
|
||||
border_selected: rgba(0x003847ff).into(),
|
||||
border_transparent: rgba(0x003847ff).into(),
|
||||
elevated_surface_background: rgba(0x18191bff).into(),
|
||||
surface_background: rgba(0x18191bff).into(),
|
||||
background: rgba(0x002a35ff).into(),
|
||||
element_background: rgba(0x29a19899).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xedeef0ff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x003f51ff).into(),
|
||||
tab_active_background: rgba(0x002a36ff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x586e75ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xcb4b15ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x859900ff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0x657b83ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x839496ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0x6c71c4ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x93a1a1ff).into(),
|
||||
terminal_ansi_bright_white: rgba(0x839496ff).into(),
|
||||
terminal_ansi_black: rgba(0x063642ff).into(),
|
||||
terminal_ansi_red: rgba(0xdc312eff).into(),
|
||||
terminal_ansi_green: rgba(0x859900ff).into(),
|
||||
terminal_ansi_yellow: rgba(0xb58800ff).into(),
|
||||
terminal_ansi_blue: rgba(0x258ad2ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xd33582ff).into(),
|
||||
terminal_ansi_cyan: rgba(0x29a198ff).into(),
|
||||
terminal_ansi_white: rgba(0x839496ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
ThemeVariant {
|
||||
id: "43be149b-2604-4eb2-a9ce-c8f902ab3bb3".into(),
|
||||
name: "Solarized Light".into(),
|
||||
appearance: Appearance::Light,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0xddd6c1ff).into(),
|
||||
border_variant: rgba(0xddd6c1ff).into(),
|
||||
border_focused: rgba(0xddd6c1ff).into(),
|
||||
border_disabled: rgba(0xddd6c1ff).into(),
|
||||
border_selected: rgba(0xddd6c1ff).into(),
|
||||
border_transparent: rgba(0xddd6c1ff).into(),
|
||||
elevated_surface_background: rgba(0xf9f9fbff).into(),
|
||||
surface_background: rgba(0xf9f9fbff).into(),
|
||||
background: rgba(0xfdf6e3ff).into(),
|
||||
element_background: rgba(0xab9d56ff).into(),
|
||||
element_hover: rgba(0xe8e8ecff).into(),
|
||||
element_active: rgba(0xe0e1e6ff).into(),
|
||||
element_selected: rgba(0xe0e1e6ff).into(),
|
||||
element_disabled: rgba(0x0000320f).into(),
|
||||
element_placeholder: rgba(0x60646cff).into(),
|
||||
element_drop_target: rgba(0x008bff0b).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0xe8e8ecff).into(),
|
||||
ghost_element_active: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_selected: rgba(0xe0e1e6ff).into(),
|
||||
ghost_element_disabled: rgba(0x0000320f).into(),
|
||||
text: rgba(0x1c2024ff).into(),
|
||||
text_muted: rgba(0x60646cff).into(),
|
||||
text_placeholder: rgba(0x80838dff).into(),
|
||||
text_disabled: rgba(0x8b8d98ff).into(),
|
||||
text_accent: rgba(0x0c73ceff).into(),
|
||||
icon: rgba(0x60646cff).into(),
|
||||
icon_muted: rgba(0x80838dff).into(),
|
||||
icon_disabled: rgba(0x8b8d98ff).into(),
|
||||
icon_placeholder: rgba(0x80838dff).into(),
|
||||
icon_accent: rgba(0x0c73ceff).into(),
|
||||
status_bar_background: rgba(0xf9f9fbff).into(),
|
||||
title_bar_background: rgba(0xf9f9fbff).into(),
|
||||
toolbar_background: rgba(0xfcfcfdff).into(),
|
||||
tab_bar_background: rgba(0xf9f9fbff).into(),
|
||||
tab_inactive_background: rgba(0xd3cbb7ff).into(),
|
||||
tab_active_background: rgba(0xfdf6e3ff).into(),
|
||||
editor_background: rgba(0xfcfcfdff).into(),
|
||||
editor_subheader_background: rgba(0xf9f9fbff).into(),
|
||||
editor_active_line: rgba(0x0000320f).into(),
|
||||
terminal_background: rgba(0xfcfcfdff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x657b83ff).into(),
|
||||
terminal_ansi_bright_red: rgba(0xcb4b15ff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x859900ff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0x657b83ff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x839496ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0x6c71c4ff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x93a1a1ff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xeee8d5ff).into(),
|
||||
terminal_ansi_black: rgba(0x657b83ff).into(),
|
||||
terminal_ansi_red: rgba(0xdc312eff).into(),
|
||||
terminal_ansi_green: rgba(0x859900ff).into(),
|
||||
terminal_ansi_yellow: rgba(0xb58800ff).into(),
|
||||
terminal_ansi_blue: rgba(0x258ad2ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xd33582ff).into(),
|
||||
terminal_ansi_cyan: rgba(0x29a198ff).into(),
|
||||
terminal_ansi_white: rgba(0xeee8d5ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
scales: default_color_scales(),
|
||||
}
|
||||
}
|
173
crates/theme2/src/themes/synthwave_84.rs
Normal file
173
crates/theme2/src/themes/synthwave_84.rs
Normal file
|
@ -0,0 +1,173 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
default_color_scales, Appearance, GitStatusColors, PlayerColor, PlayerColors, StatusColors,
|
||||
SyntaxTheme, SystemColors, ThemeColors, ThemeFamily, ThemeStyles, ThemeVariant,
|
||||
};
|
||||
|
||||
pub fn synthwave_84() -> ThemeFamily {
|
||||
ThemeFamily {
|
||||
id: "5e0f0cd5-5522-45cf-a652-caeb140eb3de".into(),
|
||||
name: "Synthwave 84".into(),
|
||||
author: "Robb Owen (robb0wen)".into(),
|
||||
themes: vec![ThemeVariant {
|
||||
id: "83110d9e-dbf0-4f36-9a4c-6b396ce9a5a4".into(),
|
||||
name: "Synthwave 84".into(),
|
||||
appearance: Appearance::Dark,
|
||||
styles: ThemeStyles {
|
||||
system: SystemColors {
|
||||
transparent: rgba(0x00000000).into(),
|
||||
mac_os_traffic_light_red: rgba(0xec6b5fff).into(),
|
||||
mac_os_traffic_light_yellow: rgba(0xf3bf4dff).into(),
|
||||
mac_os_traffic_light_green: rgba(0x61c454ff).into(),
|
||||
},
|
||||
colors: ThemeColors {
|
||||
border: rgba(0x363a3fff).into(),
|
||||
border_variant: rgba(0x2e3135ff).into(),
|
||||
border_focused: rgba(0x004073ff).into(),
|
||||
border_disabled: rgba(0x212225ff).into(),
|
||||
border_selected: rgba(0x004073ff).into(),
|
||||
border_transparent: rgba(0x00000000).into(),
|
||||
elevated_surface_background: rgba(0x18191bff).into(),
|
||||
surface_background: rgba(0x18191bff).into(),
|
||||
background: rgba(0x252334ff).into(),
|
||||
element_background: rgba(0x614d85ff).into(),
|
||||
element_hover: rgba(0x272a2dff).into(),
|
||||
element_active: rgba(0x2e3135ff).into(),
|
||||
element_selected: rgba(0x2e3135ff).into(),
|
||||
element_disabled: rgba(0xddeaf814).into(),
|
||||
element_placeholder: rgba(0xb0b4baff).into(),
|
||||
element_drop_target: rgba(0x1166fb18).into(),
|
||||
ghost_element_background: rgba(0x00000000).into(),
|
||||
ghost_element_hover: rgba(0x272a2dff).into(),
|
||||
ghost_element_active: rgba(0x2e3135ff).into(),
|
||||
ghost_element_selected: rgba(0x2e3135ff).into(),
|
||||
ghost_element_disabled: rgba(0xddeaf814).into(),
|
||||
text: rgba(0xffffffff).into(),
|
||||
text_muted: rgba(0xb0b4baff).into(),
|
||||
text_placeholder: rgba(0x767a83ff).into(),
|
||||
text_disabled: rgba(0x696e77ff).into(),
|
||||
text_accent: rgba(0x6fb8ffff).into(),
|
||||
icon: rgba(0xb0b4baff).into(),
|
||||
icon_muted: rgba(0x767a83ff).into(),
|
||||
icon_disabled: rgba(0x696e77ff).into(),
|
||||
icon_placeholder: rgba(0x767a83ff).into(),
|
||||
icon_accent: rgba(0x6fb8ffff).into(),
|
||||
status_bar_background: rgba(0x18191bff).into(),
|
||||
title_bar_background: rgba(0x18191bff).into(),
|
||||
toolbar_background: rgba(0x111113ff).into(),
|
||||
tab_bar_background: rgba(0x18191bff).into(),
|
||||
tab_inactive_background: rgba(0x252334ff).into(),
|
||||
tab_active_background: rgba(0x111113ff).into(),
|
||||
editor_background: rgba(0x111113ff).into(),
|
||||
editor_subheader_background: rgba(0x18191bff).into(),
|
||||
editor_active_line: rgba(0xddeaf814).into(),
|
||||
terminal_background: rgba(0x111113ff).into(),
|
||||
terminal_ansi_bright_black: rgba(0x000000e6).into(),
|
||||
terminal_ansi_bright_red: rgba(0xfe444fff).into(),
|
||||
terminal_ansi_bright_green: rgba(0x71f1b7ff).into(),
|
||||
terminal_ansi_bright_yellow: rgba(0xfede5cff).into(),
|
||||
terminal_ansi_bright_blue: rgba(0x02edf9ff).into(),
|
||||
terminal_ansi_bright_magenta: rgba(0xff7ddaff).into(),
|
||||
terminal_ansi_bright_cyan: rgba(0x02edf9ff).into(),
|
||||
terminal_ansi_bright_white: rgba(0xb0b4baff).into(),
|
||||
terminal_ansi_black: rgba(0x000000f2).into(),
|
||||
terminal_ansi_red: rgba(0xfe444fff).into(),
|
||||
terminal_ansi_green: rgba(0x71f1b7ff).into(),
|
||||
terminal_ansi_yellow: rgba(0xf3e70fff).into(),
|
||||
terminal_ansi_blue: rgba(0x02edf9ff).into(),
|
||||
terminal_ansi_magenta: rgba(0xff7ddaff).into(),
|
||||
terminal_ansi_cyan: rgba(0x02edf9ff).into(),
|
||||
terminal_ansi_white: rgba(0xedeef0ff).into(),
|
||||
},
|
||||
status: StatusColors {
|
||||
conflict: rgba(0xff9592ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
error: rgba(0xff9592ff).into(),
|
||||
hidden: rgba(0xb0b4baff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
info: rgba(0x6fb8ffff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
success: rgba(0x70cf82ff).into(),
|
||||
warning: rgba(0xf5e147ff).into(),
|
||||
},
|
||||
git: GitStatusColors {
|
||||
conflict: rgba(0xffa057ff).into(),
|
||||
created: rgba(0x70cf82ff).into(),
|
||||
deleted: rgba(0xff9592ff).into(),
|
||||
ignored: rgba(0xb0b4baff).into(),
|
||||
modified: rgba(0xf5e147ff).into(),
|
||||
renamed: rgba(0x6fb8ffff).into(),
|
||||
},
|
||||
player: PlayerColors(vec![
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
PlayerColor {
|
||||
cursor: rgba(0x00000000).into(),
|
||||
background: rgba(0x00000000).into(),
|
||||
selection: rgba(0x00000000).into(),
|
||||
},
|
||||
]),
|
||||
syntax: SyntaxTheme {
|
||||
highlights: vec![
|
||||
("attribute".into(), rgba(0x4ccce6ff).into()),
|
||||
("boolean".into(), rgba(0xff977dff).into()),
|
||||
("comment".into(), rgba(0xb0b4baff).into()),
|
||||
("comment.doc".into(), rgba(0xe0dffeff).into()),
|
||||
("constant".into(), rgba(0x8c323aff).into()),
|
||||
("constructor".into(), rgba(0x8c323aff).into()),
|
||||
("embedded".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis".into(), rgba(0x8c323aff).into()),
|
||||
("emphasis.strong".into(), rgba(0x8c323aff).into()),
|
||||
("enum".into(), rgba(0x8c323aff).into()),
|
||||
("function".into(), rgba(0x8c323aff).into()),
|
||||
("hint".into(), rgba(0x8c323aff).into()),
|
||||
("keyword".into(), rgba(0xffa057ff).into()),
|
||||
("label".into(), rgba(0x8c323aff).into()),
|
||||
("link_text".into(), rgba(0x8c323aff).into()),
|
||||
("link_uri".into(), rgba(0x8c323aff).into()),
|
||||
("number".into(), rgba(0x8c323aff).into()),
|
||||
("operator".into(), rgba(0x8c323aff).into()),
|
||||
("predictive".into(), rgba(0x8c323aff).into()),
|
||||
("preproc".into(), rgba(0x8c323aff).into()),
|
||||
("primary".into(), rgba(0x8c323aff).into()),
|
||||
("property".into(), rgba(0x8c323aff).into()),
|
||||
("punctuation".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.bracket".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.delimiter".into(), rgba(0xb0b4baff).into()),
|
||||
("punctuation.list_marker".into(), rgba(0x6fb8ffff).into()),
|
||||
("punctuation.special".into(), rgba(0x8c323aff).into()),
|
||||
("string".into(), rgba(0x1ed8a3ff).into()),
|
||||
("string.escape".into(), rgba(0x8c323aff).into()),
|
||||
("string.regex".into(), rgba(0xff977dff).into()),
|
||||
("string.special".into(), rgba(0x8c323aff).into()),
|
||||
("string.special.symbol".into(), rgba(0x8c323aff).into()),
|
||||
("tag".into(), rgba(0x8c323aff).into()),
|
||||
("text.literal".into(), rgba(0x8c323aff).into()),
|
||||
("title".into(), rgba(0x8c323aff).into()),
|
||||
("type".into(), rgba(0x8c323aff).into()),
|
||||
("variable".into(), rgba(0x8c323aff).into()),
|
||||
("variable.special".into(), rgba(0x8c323aff).into()),
|
||||
("variant".into(), rgba(0x8c323aff).into()),
|
||||
],
|
||||
},
|
||||
},
|
||||
}],
|
||||
scales: default_color_scales(),
|
||||
}
|
||||
}
|
|
@ -55,22 +55,6 @@ fn main() -> Result<()> {
|
|||
|
||||
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");
|
||||
|
||||
let themes_output_path = PathBuf::from_str(OUT_PATH)?;
|
||||
|
||||
if !themes_output_path.exists() {
|
||||
println!("Creating directory: {:?}", themes_output_path);
|
||||
fs::create_dir_all(&themes_output_path)?;
|
||||
}
|
||||
|
||||
// We create mod.rs at the beginning to prevent `mod themes;`/`pub use themes::*;` from being
|
||||
// invalid in the theme crate root.
|
||||
println!(
|
||||
"Creating file: {:?}",
|
||||
themes_output_path.join(format!("mod.rs"))
|
||||
);
|
||||
|
||||
let mut mod_rs_file = File::create(themes_output_path.join(format!("mod.rs")))?;
|
||||
|
||||
println!("Loading themes source...");
|
||||
let vscode_themes_path = PathBuf::from_str(SOURCE_PATH)?;
|
||||
if !vscode_themes_path.exists() {
|
||||
|
@ -147,6 +131,15 @@ fn main() -> Result<()> {
|
|||
theme_families.push(theme_family);
|
||||
}
|
||||
|
||||
let themes_output_path = PathBuf::from_str(OUT_PATH)?;
|
||||
|
||||
if !themes_output_path.exists() {
|
||||
println!("Creating directory: {:?}", themes_output_path);
|
||||
fs::create_dir_all(&themes_output_path)?;
|
||||
}
|
||||
|
||||
let mut mod_rs_file = File::create(themes_output_path.join(format!("mod.rs")))?;
|
||||
|
||||
let mut theme_modules = Vec::new();
|
||||
|
||||
for theme_family in theme_families {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue