Skip to main content

project_base_theme

Function project_base_theme 

Source
pub fn project_base_theme(theme: &MaterialTheme, cx: &App) -> Theme
Expand description

Projects a MaterialTheme into a matching gpui_base::Theme without mutating the application-global Base theme.

Use this (or crate::current_base_theme) when styling standalone Base controls inside a window override or crate::ThemeScope.