AccentColor#
Added in version 1.6.
- class AccentColor#
Describes the available system accent colors.
Methods#
- class AccentColor
- to_rgba() RGBA #
Converts
self
to aGdkRGBA
representing its background color.The matching foreground color is white.
Added in version 1.6.
- to_standalone_rgba(dark: bool) RGBA #
Converts
self
to aGdkRGBA
representing its standalone color.It will typically be darker for light background, and lighter for dark background, ensuring contrast.
Added in version 1.6.
- Parameters:
dark – Whether to calculate standalone color for light or dark background
Fields#
- class AccentColor
- BLUE#
The type of the None singleton.
- GREEN#
The type of the None singleton.
- ORANGE#
The type of the None singleton.
- PINK#
The type of the None singleton.
- PURPLE#
The type of the None singleton.
- RED#
The type of the None singleton.
- SLATE#
The type of the None singleton.
- TEAL#
The type of the None singleton.
- YELLOW#
The type of the None singleton.