Skip to main content

cursor_interactive

Function cursor_interactive 

Source
pub fn cursor_interactive<T: Styled>(el: T, cx: &App) -> T
Expand description

Applies the theme’s interactive cursor (--cursor-interactive) to el.

The token replacement for GPUI’s cursor_pointer(): v3 puts cursor: pointer on every clickable control, and a theme overrides all of them at once through LayoutTheme::cursor_interactive.

Sites that need the value inside a closure GPUI does not hand a cx — a when or hover body — read interactive_cursor first and call Styled::cursor with the copy.