Settings
Current theme / palette settings.
Properties
color_scheme
(in_out ColorScheme): Describes the current selected color scheme of the application.
ColorTheme
This enum represent the default available color themes of coop
.
Coop
: The default color theme ofcoop
with thecoop
design colors.Cosmic
: Uses the color theme of the Cosmic Desktop.Cupertino
: Uses the color theme for apple platforms like macOS and iOS.
CoopPalette
Provides all colors from the coop
design.
Properties
background
(out brush): Defines the default background brush. Use this if none of the more specialised background brushes apply.foreground
(out brush): Defines the foreground brush that is used for content that is displayed onbackground
brush.alternate_background
(out brush): Defines an alternate background brush that is used for example for text input controls or panels like a side bar.alternate_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onalternate-background
brush.control_background
(out brush): Defines the default background brush for controls, such as push buttons, combo boxes, etc.control_foreground
(out brush): Defines the foreground brush that is used for content that is displayed oncontrol-background
brush.accent_background
(out brush): Defines the background brush for highlighted controls such as primary buttons.accent_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onaccent-background
brush.selection_background
(out brush): Defines the background brush that is used to highlight a selection such as a text selection.selection_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onselection-background
brush.border
(out brush): Defines the brush that is used for borders such as separators and widget borders.border_disabled
(out brush): Defines the brush that is used for borders on disabled elements.error_border
(out brush): Defines the brush that is used for borders for visualizing error states.focus_border
(out brush): Defines the brush that is used for borders that are used to highlight a focus state.shadow
(out brush): The brush that is used by drop shadows e.g. for popups.
CosmicPalette
Provides all colors from the cosmic
desktop design.
Properties
background
(out brush): Defines the default background brush. Use this if none of the more specialised background brushes apply.foreground
(out brush): Defines the foreground brush that is used for content that is displayed onbackground
brush.alternate_background
(out brush): Defines an alternate background brush that is used for example for text input controls or panels like a side bar.alternate_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onalternate-background
brush.control_background
(out brush): Defines the default background brush for controls, such as push buttons, combo boxes, etc.control_foreground
(out brush): Defines the foreground brush that is used for content that is displayed oncontrol-background
brush.accent_background
(out brush): Defines the background brush for highlighted controls such as primary buttons.accent_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onaccent-background
brush.selection_background
(out brush): Defines the background brush that is used to highlight a selection such as a text selection.selection_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onselection-background
brush.border
(out brush): Defines the brush that is used for borders such as separators and widget borders.border_disabled
(out brush): Defines the brush that is used for borders on disabled elements.error_border
(out brush): Defines the brush that is used for borders for visualizing error states.focus_border
(out brush): Defines the brush that is used for borders that are used to highlight a focus state.shadow
(out brush): The brush that is used by drop shadows e.g. for popups.
CupertinoPalette
Provides a color theme for apple platforms like macOS and iOS.
Properties
background
(out brush): Defines the default background brush. Use this if none of the more specialised background brushes apply.foreground
(out brush): Defines the foreground brush that is used for content that is displayed onbackground
brush.alternate_background
(out brush): Defines an alternate background brush that is used for example for text input controls or panels like a side bar.alternate_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onalternate-background
brush.control_background
(out brush): Defines the default background brush for controls, such as push buttons, combo boxes, etc.control_foreground
(out brush): Defines the foreground brush that is used for content that is displayed oncontrol-background
brush.accent_background
(out brush): Defines the background brush for highlighted controls such as primary buttons.accent_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onaccent-background
brush.selection_background
(out brush): Defines the background brush that is used to highlight a selection such as a text selection.selection_foreground
(out brush): Defines the foreground brush that is used for content that is displayed onselection-background
brush.border
(out brush): Defines the brush that is used for borders such as separators and widget borders.border_disabled
(out brush): Defines the brush that is used for borders on disabled elements.error_border
(out brush): Defines the brush that is used for borders for visualizing error states.focus_border
(out brush): Defines the brush that is used for borders that are used to highlight a focus state.shadow
(out brush): The brush that is used by drop shadows e.g. for popups.
Palette
Properties
background
(in_out brush): Defines the default background brush. Use this if none of the more specialised background brushes apply.foreground
(in_out brush): Defines the foreground brush that is used for content that is displayed onbackground
brush.alternate_background
(in_out brush): Defines an alternate background brush that is used for example for text input controls or panels like a side bar.alternate_foreground
(in_out brush): Defines the foreground brush that is used for content that is displayed onalternate-background
brush.control_background
(in_out brush): Defines the default background brush for controls, such as push buttons, combo boxes, etc.control_foreground
(in_out brush): Defines the foreground brush that is used for content that is displayed oncontrol-background
brush.accent_background
(in_out brush): Defines the background brush for highlighted controls such as primary buttons.accent_foreground
(in_out brush): Defines the foreground brush that is used for content that is displayed onaccent-background
brush.selection_background
(in_out brush): Defines the background brush that is used to highlight a selection such as a text selection.selection_foreground
(in_out brush): Defines the foreground brush that is used for content that is displayed onselection-background
brush.border
(in_out brush): Defines the brush that is used for borders such as separators and widget borders.border_disabled
(in_out brush): Defines the brush that is used for borders on disabled elements.error_border
(in_out brush): Defines the brush that is used for borders for visualizing error states.focus_border
(in_out brush): Defines the brush that is used for borders that are used to highlight a focus state.shadow
(in_out brush): The brush that is used by drop shadows e.g. for popups.
Functions
-
set_color_scheme(color_scheme: ColorScheme)
: Sets the current color scheme. -
set_color_theme(color_scheme: ColorTheme)
: Sets the current color theme.