# RDSentence **Repository Path**: Pfolg/RDSentence ## Basic Information - **Project Name**: RDSentence - **Description**: 本地化的、支持自定义、随机在桌面展示语句,可跨平台 - **Primary Language**: C++ - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-10-12 - **Last Updated**: 2025-10-12 ## Categories & Tags **Categories**: Uncategorized **Tags**: Cpp, Qt6 ## README # RDSentence 随机句子展示工具 [![MIT License](https://img.shields.io/badge/license-MIT-green)](https://gitee.com/Pfolg/RDSentence/blob/master/LICENSE) [![Gitee Star](https://gitee.com/Pfolg/RDSentence/badge/star.svg?theme=gray)](https://gitee.com/Pfolg/RDSentence/stargazers) 基于Qt开发的桌面应用,支持系统托盘常驻与随机文本展示。[立即访问仓库](https://gitee.com/Pfolg/RDSentence) ![界面预览](public/img.png) ## ✨ 核心功能 - **托盘常驻**:右键菜单支持切换/复制文本 - **样式自定义**:自由配置字体/颜色/布局 - **热加载配置**:实时保存`config.txt`修改 - **单实例运行**:通过端口检测避免重复启动 ## 🎛️ 配置说明 ```properties # assets/config.txt backgroundColor=rgba(0, 0, 0, 60) # 背景透明度 textFilePath=./assets/lines.json # 自定义文本库 interval=30000 # 刷新间隔(ms) ``` ## 📖 文本库格式 ``` [ "纸上得来终觉浅,绝知此事要躬行", "Stay hungry, stay foolish", "点击托盘菜单可直接编辑本文件" ] ``` ## 📂 文件结构 ``` RDSentence/ ├── assets/ # 资源目录 │ ├── config.txt # 配置文件 │ ├── lines.json # 示例文本库 │ └── logo.png # 程序图标 └── src/ # 源码目录 ├── ConfigManager.hpp # 配置管理器 └── tray.cpp # 托盘交互逻辑 ``` ## 📜 开源协议 本项目采用 MIT License ,允许自由使用与二次开发。