Sorted themes correctly

This commit is contained in:
Mikayla Maki
2022-09-08 14:11:48 -07:00
parent a1889ad236
commit bdf655d757
5 changed files with 34 additions and 23 deletions
+7 -1
View File
@@ -15,7 +15,7 @@ pub use theme_registry::*;
#[derive(Deserialize, Default)]
pub struct Theme {
#[serde(default)]
pub name: String,
pub meta: ThemeMeta,
pub workspace: Workspace,
pub context_menu: ContextMenu,
pub chat_panel: ChatPanel,
@@ -34,6 +34,12 @@ pub struct Theme {
pub terminal: TerminalStyle,
}
#[derive(Deserialize, Default, Clone)]
pub struct ThemeMeta {
pub name: String,
pub is_light: bool,
}
#[derive(Deserialize, Default)]
pub struct Workspace {
pub background: Color,