Skip to main content

Module command_link_button

Module command_link_button 

Source
Expand description

CommandLinkButton — large two-line button with icon, title, and subtitle. Used for wizard landing screens, onboarding choices, and any “card-shaped CTA” pattern.

Modeled on Qt’s QCommandLinkButton. Distinct from a regular Button by its layout (HStack(icon + VStack(title + subtitle))) and default visual variant (Flat — Int UI convention — with an interactive surface tint on hover).

CommandLinkButton::new(tr!(create_new_project()))
    .description(tr!(create_new_project_subtitle()))
    .icon(IconWidget::from_svg(NEW_PROJECT_ICON))
    .on_activate_fn(|ctx| ctx.send_intent(AppIntent::NewProject))

Structs§

CommandLinkButton
A large two-line CTA button: icon + title + subtitle.

Constants§

COMMAND_LINK_BUTTON_ICON_SIZE
CommandLinkButton design tokens. The widget is a group-4 composite with no dedicated recipe module.
COMMAND_LINK_BUTTON_ICON_TEXT_GAP
COMMAND_LINK_BUTTON_MIN_HEIGHT
COMMAND_LINK_BUTTON_PADDING_HORIZONTAL
COMMAND_LINK_BUTTON_PADDING_VERTICAL
COMMAND_LINK_BUTTON_TITLE_DESCRIPTION_GAP