Skip to main content

draw_lock_hint

Function draw_lock_hint 

Source
pub fn draw_lock_hint(bbox: Rect, painter: &mut Style<'_, impl Renderer>)
Expand description

Draw the padlock hint in a selected locked block’s upper-right corner: a passive sign that the block is locked, not a button. Renders the lock action icon’s SVG tinted to Role::LockedHintIcon so it reads as dim and stays identical to the overlay lock button. Sits clear of the top-right resize handle and is skipped when the block is too small to hold it without crowding.