diff --git a/crates/menu/src/shortcuts/view.rs b/crates/menu/src/shortcuts/view.rs index bf46aa4d2..3f24947b4 100644 --- a/crates/menu/src/shortcuts/view.rs +++ b/crates/menu/src/shortcuts/view.rs @@ -23,6 +23,7 @@ use craft_ui::contract::{BodyCx, CollectionEvent, Props as _, Scroll, Show as _, use craft_ui::display::Icon; use craft_ui::layout_components::{Grid, Row, Stack}; use craft_ui::primitives::IconSpec; +use craft_ui::runtime::env::Label; use craft_ui::runtime::motion::Animate as _; use craft_ui::tabs::{Tab, TabKind, TabStrip}; use egui::Ui; @@ -111,10 +112,10 @@ impl DisplayOrder for Titles<'_> { impl ItemSource for Titles<'_> {} -/// A strip of text tabs over `titles` with `shown` selected; the tab picked this pass. -pub(super) fn tab_strip(ui: &mut Ui, name: &'static str, titles: &[String], shown: usize) -> Option { +/// A strip of text tabs named `name`, keyed by `id`, over `titles` with `shown` selected; the tab picked this pass. +pub(super) fn tab_strip(ui: &mut Ui, id: &'static str, name: impl Into