pub fn key_prompt(
x: f32,
y: f32,
keys: &[&str],
action: &str,
theme: &KitTheme,
) -> f32Expand description
Key caps followed by an action label, e.g. [E] Open. Returns the total width.
use ferravex_render::ui::kit::{self, KitTheme};
let w = kit::key_prompt(20., 20., &["Shift", "Space"], "Dash", &KitTheme::default());
assert!(w > 100.);