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))§Touch and pen
Shares build_interaction_handlers with Button; see that
module’s “Touch and pen” section. A command link is a tall, wide target by
construction, so no hit-widening mechanism is involved.
Structs§
- Command
Link Button - 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
Functions§
- command_
link_ button_ icon_ text_ gap COMMAND_LINK_BUTTON_ICON_TEXT_GAPscaled by the density’sspacing_factor(1.00 / 1.15 / 1.30).- command_
link_ button_ min_ height COMMAND_LINK_BUTTON_MIN_HEIGHTraised to the density’starget_size(24 / 32 / 44 dp). The identity at Compact.- command_
link_ button_ padding_ horizontal COMMAND_LINK_BUTTON_PADDING_HORIZONTALscaled by the density’sspacing_factor(1.00 / 1.15 / 1.30).- command_
link_ button_ padding_ vertical COMMAND_LINK_BUTTON_PADDING_VERTICALscaled by the density’sspacing_factor(1.00 / 1.15 / 1.30).- command_
link_ button_ title_ description_ gap COMMAND_LINK_BUTTON_TITLE_DESCRIPTION_GAPscaled by the density’sspacing_factor(1.00 / 1.15 / 1.30).