feat(themes): add + integrate komorebi-themes lib

This commit abstracts the theme-related code from komorebi-bar into a
separate library which is now also consumed by komorebi.

The static configuration file for komorebi has been updated to allow
users to specify themes and provide palette overrides for various border
styles and stackbar configuration options.

In the event that both a theme and border-specific and/or
stackbar-specific colours have been specified, the theme will take
priority to make it as easy as possible for users who have already spent
time tweaking their colours to try out themes and quickly revert back if
they prefer their existing colours.

This change makes it easier for users to have unified themes between
komorebi and the komorebi status bar.
This commit is contained in:
LGUG2Z
2024-09-14 15:31:17 -07:00
parent bc67936dd3
commit 45894be4ff
10 changed files with 1146 additions and 217 deletions

15
Cargo.lock generated
View File

@@ -2654,6 +2654,7 @@ dependencies = [
"getset",
"hex_color",
"hotwatch",
"komorebi-themes",
"lazy_static",
"miow",
"nanoid",
@@ -2687,8 +2688,6 @@ dependencies = [
name = "komorebi-bar"
version = "0.1.0"
dependencies = [
"base16-egui-themes",
"catppuccin-egui",
"chrono",
"clap",
"color-eyre",
@@ -2700,6 +2699,7 @@ dependencies = [
"hotwatch",
"image",
"komorebi-client",
"komorebi-themes",
"netdev",
"num",
"num-derive",
@@ -2738,6 +2738,17 @@ dependencies = [
"windows 0.54.0",
]
[[package]]
name = "komorebi-themes"
version = "0.1.0"
dependencies = [
"base16-egui-themes",
"catppuccin-egui",
"egui",
"schemars",
"serde",
]
[[package]]
name = "komorebic"
version = "0.1.29"