Repository navigation
fix(ui): 修复 ModbusMaster 浅色主题混用深色样式 - #17
Merged
Merged
Conversation
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.
ModbusMaster 切换浅色主题后,工具栏已变浅,但连接树、数据表、值解析和多个弹窗仍使用写死的深色颜色,导致同一窗口明暗混杂、文字和 OFF 标签难以辨认。
将主站各区域接入共享主题变量,并在启动时初始化主题。浅色模式使用白色数据区、浅灰侧栏、深色文字及柔和蓝色选中态;为选中行、填充按钮、输入框和 ON/OFF 标签分别定义颜色角色,同时提高深色 OFF 标签的对比度。
保留当前 main 上的写入目标及连续地址校验逻辑,仅修改主题样式和必要的初始化。
验证:
本次未重新打包或替换已安装的桌面应用。