7 Commits

Author SHA1 Message Date
b0eaa42063 Add BatteryWidget
- Working battery icon
- Read from `sys` files
- Calculate values in Rust and pass it to Slint
2025-11-20 22:44:56 +05:30
48a116c547 Add DateWidget
- Working date widget
- Update at midnight or on date change
- `src/widgets/datewidget.rs` module
2025-11-20 19:41:19 +05:30
c878c7f678 Make the time widget work
- Show real time, not dummy text
- Update time every minute
- Use slint's Timer
2025-11-20 12:28:26 +05:30
95790db098 Add Config module
- Load config from .toml file
- Adjust code in slint and rust accordingly
2025-11-19 23:42:10 +05:30
1d222795a3 Refactor for simplicity & modularity
- Write `run_cmd()` to run commands
- Separate command execution from Slint callbacks
- Rename `TimeWidget`'s callback `open_program()` as `show_clock()`
2025-11-19 21:51:13 +05:30
47efaa2d08 Dummy widget: Time widget
- Time widget module
- Configure layout and callback
- Dummy: Not real time yet
2025-11-19 16:16:38 +05:30
d587a9866b Minimal bar
- Is not of the type "dock" yet
2025-11-18 12:16:18 +05:30