get_window_opacity

Function get_window_opacity 

Source
pub fn get_window_opacity(
    state: &Arc<AppState>,
    args: &Value,
) -> Result<Value, String>
Expand description

Return the currently tracked opacity for a label.

Reads from HostState.window_opacities — reflects the last value applied via set_window_opacity, not the Win32 layer. Used by the frontend to restore opacity on window init without an extra IPC round-trip.