aboutsummaryrefslogtreecommitdiff
path: root/src/pomo/state.rs
diff options
context:
space:
mode:
authorRanXom <saiyedshizain@gmail.com>2026-06-12 23:54:53 +0530
committerRanXom <saiyedshizain@gmail.com>2026-06-12 23:54:53 +0530
commit93f970097c1d1f3b8369c0876c1d1894af6978d5 (patch)
tree9580a18a718dacb8851cff403ffaa933b7503172 /src/pomo/state.rs
parent3525e919db6457d6ae7f64f707f7f65cf0cf73db (diff)
downloadpomoru-93f970097c1d1f3b8369c0876c1d1894af6978d5.tar.xz
pomoru-93f970097c1d1f3b8369c0876c1d1894af6978d5.zip
introduce struct for current status
Diffstat (limited to 'src/pomo/state.rs')
-rw-r--r--src/pomo/state.rs7
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,