diff --git a/jay-config-schema/src/lib.rs b/jay-config-schema/src/lib.rs index 3e432592..f3e43b4f 100644 --- a/jay-config-schema/src/lib.rs +++ b/jay-config-schema/src/lib.rs @@ -6,9 +6,11 @@ pub mod animations; pub mod options; +pub mod theme; pub use animations::{AnimationCurveConfig, Animations}; pub use options::{ ColorManagement, Float, FocusHistory, Libei, RepeatRate, SimpleIm, Tearing, UiDrag, Vrr, Xwayland, }; +pub use theme::Theme; diff --git a/jay-config-schema/src/theme.rs b/jay-config-schema/src/theme.rs new file mode 100644 index 00000000..ed21242d --- /dev/null +++ b/jay-config-schema/src/theme.rs @@ -0,0 +1,48 @@ +use jay_config::theme::{BarPosition, Color}; + +#[derive(Debug, Clone, Default)] +pub struct Theme { + pub attention_requested_bg_color: Option, + pub bg_color: Option, + pub bar_bg_color: Option, + pub bar_status_text_color: Option, + pub border_color: Option, + pub active_border_color: Option, + pub captured_focused_title_bg_color: Option, + pub captured_unfocused_title_bg_color: Option, + pub focused_inactive_title_bg_color: Option, + pub focused_inactive_title_text_color: Option, + pub focused_title_bg_color: Option, + pub focused_title_text_color: Option, + pub separator_color: Option, + pub unfocused_title_bg_color: Option, + pub unfocused_title_text_color: Option, + pub highlight_color: Option, + pub border_width: Option, + pub title_height: Option, + pub bar_height: Option, + pub font: Option, + pub title_font: Option, + pub bar_font: Option, + pub bar_position: Option, + pub bar_separator_width: Option, + pub gap: Option, + pub floating_titles: Option, + pub title_gap: Option, + pub corner_radius: Option, + pub tab_active_bg_color: Option, + pub tab_active_border_color: Option, + pub tab_inactive_bg_color: Option, + pub tab_inactive_border_color: Option, + pub tab_active_text_color: Option, + pub tab_inactive_text_color: Option, + pub tab_bar_bg_color: Option, + pub tab_attention_bg_color: Option, + pub tab_bar_height: Option, + pub tab_bar_padding: Option, + pub tab_bar_radius: Option, + pub tab_bar_border_width: Option, + pub tab_bar_text_padding: Option, + pub tab_bar_gap: Option, + pub tab_title_align: Option, +} diff --git a/toml-config/src/config.rs b/toml-config/src/config.rs index 919c4338..65fd1eca 100644 --- a/toml-config/src/config.rs +++ b/toml-config/src/config.rs @@ -28,7 +28,6 @@ use { keyboard::{Keymap, ModifiedKeySym, mods::Modifiers, syms::KeySym}, logging::LogLevel, status::MessageFormat, - theme::{BarPosition, Color}, video::{BlendSpace, ColorSpace, Eotf, Format, GfxApi, Transform}, window::{ContentType, TileState, WindowType}, workspace::WorkspaceDisplayOrder, @@ -46,7 +45,7 @@ use { pub use jay_config_schema::{ AnimationCurveConfig, Animations, ColorManagement, Float, FocusHistory, Libei, RepeatRate, - SimpleIm, Tearing, UiDrag, Vrr, Xwayland, + SimpleIm, Tearing, Theme, UiDrag, Vrr, Xwayland, }; #[derive(Debug, Copy, Clone)] @@ -205,53 +204,6 @@ pub enum Action { }, } -#[derive(Debug, Clone, Default)] -pub struct Theme { - pub attention_requested_bg_color: Option, - pub bg_color: Option, - pub bar_bg_color: Option, - pub bar_status_text_color: Option, - pub border_color: Option, - pub active_border_color: Option, - pub captured_focused_title_bg_color: Option, - pub captured_unfocused_title_bg_color: Option, - pub focused_inactive_title_bg_color: Option, - pub focused_inactive_title_text_color: Option, - pub focused_title_bg_color: Option, - pub focused_title_text_color: Option, - pub separator_color: Option, - pub unfocused_title_bg_color: Option, - pub unfocused_title_text_color: Option, - pub highlight_color: Option, - pub border_width: Option, - pub title_height: Option, - pub bar_height: Option, - pub font: Option, - pub title_font: Option, - pub bar_font: Option, - pub bar_position: Option, - pub bar_separator_width: Option, - pub gap: Option, - pub floating_titles: Option, - pub title_gap: Option, - pub corner_radius: Option, - pub tab_active_bg_color: Option, - pub tab_active_border_color: Option, - pub tab_inactive_bg_color: Option, - pub tab_inactive_border_color: Option, - pub tab_active_text_color: Option, - pub tab_inactive_text_color: Option, - pub tab_bar_bg_color: Option, - pub tab_attention_bg_color: Option, - pub tab_bar_height: Option, - pub tab_bar_padding: Option, - pub tab_bar_radius: Option, - pub tab_bar_border_width: Option, - pub tab_bar_text_padding: Option, - pub tab_bar_gap: Option, - pub tab_title_align: Option, -} - #[derive(Debug, Clone)] pub struct Status { pub format: MessageFormat,