Merged
Conversation
- 新增功能: 在控制台标题栏增加版本显示区域
* 导入 `src.constants.__version__` 常量获取当前版本
* 在 `compose` 方法中向 `title-bar` 容器注入 `Label` 组件 (id="title-version")
* 渲染格式为 "v{__version__}"
- 重构优化: 调整标题栏布局与样式以适配新元素
* 修改 `#title-left` 宽度至 20% 并将对齐方式调整为右对齐 (`content-align: right middle`)
* 新增 `#title-version` 样式定义,设置左对齐、斜体及半透明效果
* 保持原有 `Horizontal` 容器结构,确保三个部分(名称、路径、版本)水平排列
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.
src.constants.__version__常量获取当前版本compose方法中向title-bar容器注入Label组件 (id="title-version")#title-left宽度至 20% 并将对齐方式调整为右对齐 (content-align: right middle)#title-version样式定义,设置左对齐、斜体及半透明效果Horizontal容器结构,确保三个部分(名称、路径、版本)水平排列