feat(slint): head collapsed-sidebar nav flyouts with the section name
SidebarNavRow (mini sidebar) opened its section flyout with no header; the closed-sidebar CompactNavBtn dropdowns show the section name + a hairline. Set HeaderMenuState.title to the row label so the mini flyouts match (same @tr strings). cc
This commit is contained in:
1 file changed
+3
-1
@@ -516,7 +516,9 @@ component SidebarNavRow inherits Rectangle {
|
||||
HeaderMenuState.items = root.items;
|
||||
HeaderMenuState.home-item = root.home-item;
|
||||
HeaderMenuState.from-sidebar = true;
|
||||
HeaderMenuState.title = "";
|
||||
// Head the flyout with the section name + hairline, matching the
|
||||
// closed-sidebar CompactNavBtn dropdowns (same @tr labels).
|
||||
HeaderMenuState.title = root.label;
|
||||
}
|
||||
|
||||
HorizontalLayout {
|
||||
|
||||
Reference in new issue
Block a user