feat(themes): update bar on komorebi.json reload

This commit ensures that whenever komorebi.json is updated, komorebi-bar
will try to apply whichever theme is set in that file by the user (if
one is set).

Similarly, if a theme is not set in komorebi.bar.json, komorebi-bar will
load the theme set in komorebi.json (if one is set).

A new configuration "bar_accent" has been added to the KomorebiTheme
struct to make this process as uniform as possible.
This commit is contained in:
LGUG2Z
2024-09-15 10:25:47 -07:00
parent 286bb0070c
commit b69db863f1
7 changed files with 189 additions and 135 deletions

View File

@@ -1,13 +1,13 @@
#![warn(clippy::all)]
#![allow(clippy::missing_errors_doc)]
pub use base16_egui_themes::Base16;
use schemars::JsonSchema;
use serde::Deserialize;
use serde::Serialize;
pub use base16_egui_themes::Base16;
pub use catppuccin_egui;
use egui::Color32;
pub use egui::Color32;
#[derive(Copy, Clone, Debug, Serialize, Deserialize, JsonSchema)]
#[serde(tag = "type")]