T08a menus: menu, items, groups, separators, submenus, check and radio rows, key hints, icons; dropdown, split, overflow and context hosts; overlays pick on key release

This commit is contained in:
ZacharyZhang-NY committed 2026-09-25 13:03:23 -04:00
1 parent a923def708
commit f990586abd
20 files changed
+1695 -52

No files matched your search

+5
View File
@@ -228,6 +228,11 @@ impl Theme {
px_to_rems(480.0)
}
/// Narrowest a menu's panel gets.
pub fn menu_width(&self) -> Rems {
px_to_rems(200.0)
}
/// A palette's card; its list scrolls inside.
pub fn palette_size(&self) -> Size<Rems> {
size(px_to_rems(600.0), px_to_rems(400.0))