Conversation
功能说明: - 新建便签时自动应用上一次设置的字体样式、主题颜色、不透明度等 - 用户修改任何样式设置时,自动保存为默认设置 - 下次创建新便签时,将使用这些保存的默认设置 实现细节: 1. 新增 DefaultNoteSettings 类用于保存默认设置 2. 在 REGISTRY 类中添加 SaveDefaultSettings 和 GetDefaultSettings 方法 3. 修改 MainForm.LoadData 方法,新建便签时应用保存的默认设置 4. 新增 MainForm.SaveAsDefaultSettings 方法 5. 在所有样式修改点调用 SaveAsDefaultSettings 保存设置: - 主题变更(CurrentTheme setter) - 样式变更(CurrentStyle setter) - 不透明度变更(opacity_val_ValueChanged) - 自定义主题颜色变更(topbar_color_Click, back_color_Click, text_color_Click) - 自定义字体变更(current_font_Click, font_size_ValueChanged) 修改文件: - FormData.cs: 添加 DefaultNoteSettings 类 - REGISTRY.cs: 添加默认设置的保存/读取方法 - MainForm.cs: 修改 LoadData 方法,添加 SaveAsDefaultSettings 方法 - SettingForm.cs: 在样式修改事件中调用 SaveAsDefaultSettings
- 版本号从 1.1.0/1.2.0 统一更新为 1.3.0.0 - README 中添加新功能说明:样式记忆功能
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能说明:
实现细节:
修改文件: