diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-06-13 01:18:30 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-06-13 01:18:30 +0530 |
| commit | 4f4c66bf911269d663b1c008149e6f429adc999a (patch) | |
| tree | bfd5136f2f7e2c1693dfd38322bb6d549c1eaa6a /src/pomo/state.rs | |
| parent | 298487f2861b33a9805bc5873af9b49e2a1c24d0 (diff) | |
| parent | cfaf07e2b8e104427b6409446a6079600b264d77 (diff) | |
| download | pomoru-4f4c66bf911269d663b1c008149e6f429adc999a.tar.xz pomoru-4f4c66bf911269d663b1c008149e6f429adc999a.zip | |
Merge pull request #7 from RanXom/feat/status-export
feat: export timer status for external integrations
Diffstat (limited to 'src/pomo/state.rs')
| -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, |