Allow imported themes to refine StatusColors
Co-Authored-By: Marshall Bowers <1486634+maxdeviant@users.noreply.github.com>
This commit is contained in:
parent
7253160b04
commit
4b5ca3e420
16 changed files with 475 additions and 56 deletions
|
@ -4,7 +4,8 @@
|
|||
use gpui::rgba;
|
||||
|
||||
use crate::{
|
||||
Appearance, ThemeColorsRefinement, UserTheme, UserThemeFamily, UserThemeStylesRefinement,
|
||||
Appearance, StatusColorsRefinement, ThemeColorsRefinement, UserTheme, UserThemeFamily,
|
||||
UserThemeStylesRefinement,
|
||||
};
|
||||
|
||||
pub fn palenight() -> UserThemeFamily {
|
||||
|
@ -27,6 +28,10 @@ pub fn palenight() -> UserThemeFamily {
|
|||
surface_background: Some(rgba(0x292c3eff).into()),
|
||||
background: Some(rgba(0x292c3eff).into()),
|
||||
element_background: Some(rgba(0x7d56c1cc).into()),
|
||||
element_hover: Some(rgba(0x0000001a).into()),
|
||||
element_selected: Some(rgba(0x7d56c1ff).into()),
|
||||
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
||||
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
||||
text: Some(rgba(0xffffffff).into()),
|
||||
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
||||
tab_active_background: Some(rgba(0x292c3eff).into()),
|
||||
|
@ -52,6 +57,12 @@ pub fn palenight() -> UserThemeFamily {
|
|||
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
deleted: Some(rgba(0xef524fff).into()),
|
||||
error: Some(rgba(0xef524fff).into()),
|
||||
hidden: Some(rgba(0x9199c8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
},
|
||||
},
|
||||
UserTheme {
|
||||
|
@ -69,6 +80,10 @@ pub fn palenight() -> UserThemeFamily {
|
|||
surface_background: Some(rgba(0x292c3eff).into()),
|
||||
background: Some(rgba(0x292c3eff).into()),
|
||||
element_background: Some(rgba(0x7d56c1cc).into()),
|
||||
element_hover: Some(rgba(0x0000001a).into()),
|
||||
element_selected: Some(rgba(0x7d56c1ff).into()),
|
||||
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
||||
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
||||
text: Some(rgba(0xffffffff).into()),
|
||||
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
||||
tab_active_background: Some(rgba(0x292c3eff).into()),
|
||||
|
@ -94,6 +109,12 @@ pub fn palenight() -> UserThemeFamily {
|
|||
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
deleted: Some(rgba(0xef524fff).into()),
|
||||
error: Some(rgba(0xef524fff).into()),
|
||||
hidden: Some(rgba(0x9199c8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
},
|
||||
},
|
||||
UserTheme {
|
||||
|
@ -111,6 +132,10 @@ pub fn palenight() -> UserThemeFamily {
|
|||
surface_background: Some(rgba(0x25283aff).into()),
|
||||
background: Some(rgba(0x292c3eff).into()),
|
||||
element_background: Some(rgba(0x7d56c1cc).into()),
|
||||
element_hover: Some(rgba(0x0000001a).into()),
|
||||
element_selected: Some(rgba(0x7d56c1ff).into()),
|
||||
drop_target_background: Some(rgba(0x2e3245ff).into()),
|
||||
ghost_element_hover: Some(rgba(0x0000001a).into()),
|
||||
text: Some(rgba(0xffffffff).into()),
|
||||
tab_inactive_background: Some(rgba(0x31364aff).into()),
|
||||
tab_active_background: Some(rgba(0x25283aff).into()),
|
||||
|
@ -136,6 +161,12 @@ pub fn palenight() -> UserThemeFamily {
|
|||
terminal_ansi_white: Some(rgba(0xffffffff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
status: StatusColorsRefinement {
|
||||
deleted: Some(rgba(0xef524fff).into()),
|
||||
error: Some(rgba(0xef524fff).into()),
|
||||
hidden: Some(rgba(0x9199c8ff).into()),
|
||||
..Default::default()
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue