开源地址 https://github.com/snowraincloud/gpui-sedentary-reminder
## 项目简介
GPUI Sedentary Reminder 是一个基于 GPUI 框架开发的跨平台桌面应用程序,用于定时提醒用户起身活动,帮助避免长时间久坐带来的健康问题。应用通过系统通知机制,在用户设定的时间间隔后发出提醒,支持单次提醒和循环提醒两种模式。
## 预览

## 项目特点
- **现代化 UI 框架**:基于 GPUI 0.2.2 构建,提供流畅的原生桌面应用体验
- **异步任务处理**:使用 Tokio 异步运行时实现高效的时间监控和状态更新
- **资源嵌入优化**:通过 rust-embed 将图标资源编译到二进制文件中,实现单文件分发
- **跨平台通知支持**:集成 notify-rust 库,支持 Windows、macOS 和 Linux 的系统通知
- **Windows 原生集成**:在 Windows 平台自动嵌入应用图标,提供完整的桌面应用体验
## 技术栈
### 核心框架
- **Rust** (Edition 2024)
- **GPUI** 0.2.2 - 跨平台 UI 框架
- **gpui-component** 0.3.1 - GPUI 组件库
### 依赖库
- **chrono** 0.4.42 - 日期和时间处理
- **tokio** 1.48.0 - 异步运行时(支持 time、rt-multi-thread、macros 特性)
- **notify-rust** 4.11.7 - 系统通知
- **rust-embed** 8.0 - 资源文件嵌入(支持 interpolate-folder-path)
- **regex** 1.12.2 - 正则表达式验证
- **anyhow** 1.0.100 - 错误处理
### 构建工具
- **dotenvy** 0.15.7 - 环境变量管理
- **winres** 0.1.12 - Windows 资源文件生成(仅 Windows 平台)