diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-04-24 22:13:53 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-04-24 22:13:53 +0530 |
| commit | 616b16b07d38165d41c9e079d76a3f8d415c84a6 (patch) | |
| tree | a91f1ae2c1902a152074d15c017b50fdaa2fd8ad | |
| parent | ae6d51eafd6600a7b8754a92413cca98b9a563d3 (diff) | |
| download | pomoru-616b16b07d38165d41c9e079d76a3f8d415c84a6.tar.xz pomoru-616b16b07d38165d41c9e079d76a3f8d415c84a6.zip | |
add file and struct for colors file
| -rw-r--r-- | src/pomo/ui.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/pomo/ui.rs b/src/pomo/ui.rs index 8f0d4b3..e95de67 100644 --- a/src/pomo/ui.rs +++ b/src/pomo/ui.rs @@ -1,5 +1,22 @@ use crate::pomo::state::{AppScreen, InputMode, Pomo, SessionMode}; use ratatui::{prelude::*, widgets::*}; +use std::fs::File; + +const json_file_path = Path::new("~/.config/noctalia/colors.json"); +const file = File::open(json_file_path); + +#[derive(Debug, Deserialize)] +#[serde(rename_all = "camelCase")] +struct Colors { + m_primary: String, + m_on_primary: String, + m_secondary: String, + m_on_secondary: String, + m_tertiary: String, + m_on_tertiary: String, + m_surface: String, + m_on_surface: String, +} const MOCHA_LAVENDER: Color = Color::Rgb(180, 190, 254); const MOCHA_OVERLAY0: Color = Color::Rgb(108, 112, 134); |