summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-05-28 00:46:13 -0400
committerGitHub <noreply@github.com>2023-05-28 00:46:13 -0400
commit635e82a8a2603a0862b5e9c791170720a39df25a (patch)
treed230014570f13d38098c876b179b9558418f92c3 /src/app
parent9cea3e1a8d922af4ff255ebabbd896fc7fb28908 (diff)
refactor: remove typed builder from App struct (#1176)
Another one on the chopping block. This also moves out the app widget logic to a separate struct.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/states.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/app/states.rs b/src/app/states.rs
index d38b6d02..0f01af75 100644
--- a/src/app/states.rs
+++ b/src/app/states.rs
@@ -14,6 +14,17 @@ use crate::{
},
};
+pub struct AppWidgetStates {
+ pub cpu_state: CpuState,
+ pub mem_state: MemState,
+ pub net_state: NetState,
+ pub proc_state: ProcState,
+ pub temp_state: TempState,
+ pub disk_state: DiskState,
+ pub battery_state: BatteryState,
+ pub basic_table_widget_state: Option<BasicTableWidgetState>,
+}
+
#[derive(Debug)]
pub enum CursorDirection {
Left,