pub fn focusable_block(
title: &str,
shortcut: Option<u8>,
focused: bool,
theme: &Theme,
) -> Block<'static>Expand description
Convenience wrapper: builds a widget_title and a panel_block in one call.
Use this for any widget that is focusable and optionally has a digit shortcut. The border color and the digit indicator always stay in sync.
ⓘ
let block = focusable_block("Status Log", Some(2), focused, &theme);