Repository navigation
feat(workbench): 标题栏按钮可以放到左右工具条 - #90
Merged
Merged
Conversation
工具条布局目录新增 alsoOnToolStripes:标了它的标题栏按钮除标题栏外还能放进六个工具条区, 也能移回标题栏。它在工具条上仍然不打开面板、不能隐藏,也不能放进状态栏。只有默认在标题栏的 按钮能标;标在别处的目录报 invalidRequest。
xiaoyumuxi
marked this pull request as ready for review
November 18, 2026 03:17
This was referenced Nov 18, 2026
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.
关联 Issue
d8094c6)类型
feat:
workbench.chromeLayout.reduce的目录项新增可选字段alsoOnToolStripes改动
rust/crates/core-rules/src/workbench/chrome_layout.rsCatalogItem.also_on_tool_stripes(JSONalsoOnToolStripes,默认false,可省略):标了它的标题栏按钮除标题栏外,还能放进六个工具条区(左上、左下、底左、右上、右下、底右),也能移回标题栏。allowed(item, zone),move、normalize和读取保存的布局时用它判断按钮能放的区,替换原来的“区必须和默认区同一表面”。setHidden按默认区所在表面判断,仍报invalidRequest)。alsoOnToolStripes,报invalidRequest。normalize保留放在工具条上的这类按钮;没标的标题栏或状态栏按钮如果出现在工具条上,照旧丢弃,回到默认区。normalize的保留与丢弃旧宿主不发送
alsoOnToolStripes,行为不变。目录用deny_unknown_fields,新宿主必须链接本版本的 Core。没有改插件契约、能力版本或插件函数协议,插件无需改动。验证
cargo test -p lithe-core-rules chrome_layout(22 个通过)cargo clippy -p lithe-core-rules --all-targets -- -D warningscargo fmt -p lithe-core-rules -- --checkinternal/core的 chrome layout 测试,新增“标了的标题栏按钮移到工具条再移回”和目录校验用例internal/workbench的全部测试,含新增的title_stripe_test.go