diff options
| author | RanXom <saiyedshizain@gmail.com> | 2026-06-12 23:54:53 +0530 |
|---|---|---|
| committer | RanXom <saiyedshizain@gmail.com> | 2026-06-12 23:54:53 +0530 |
| commit | 93f970097c1d1f3b8369c0876c1d1894af6978d5 (patch) | |
| tree | 9580a18a718dacb8851cff403ffaa933b7503172 | |
| parent | 3525e919db6457d6ae7f64f707f7f65cf0cf73db (diff) | |
| download | pomoru-93f970097c1d1f3b8369c0876c1d1894af6978d5.tar.xz pomoru-93f970097c1d1f3b8369c0876c1d1894af6978d5.zip | |
introduce struct for current status
| -rw-r--r-- | src/pomo/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pomo/state.rs b/src/pomo/state.rs index e0faa70..83e2038 100644 --- a/src/pomo/state.rs +++ b/src/pomo/state.rs @@ -100,6 +100,13 @@ fn default_auto_switch() -> bool { true } +#[derive(Serialize)] +pub struct CurrentStatus { + pub text: String, + pub tooltip: String, + pub class: String, +} + #[derive(Serialize, Deserialize, Clone)] pub struct Task { pub title: String, |