AccentColor#
Added in version 1.6.
- class AccentColor#
Describes the available system accent colors.
Methods#
- class AccentColor
- to_rgba() RGBA#
Converts
selfto aGdkRGBArepresenting its background color.The matching foreground color is white.
Added in version 1.6.
- to_standalone_rgba(dark: bool) RGBA#
Converts
selfto aGdkRGBArepresenting 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#
Use a blue color (
#3584e4). This is the default value.
- GREEN#
Use a green color (
#3a944a).
- ORANGE#
Use a orange color (
#ed5b00).
- PINK#
Use a pink color (
#d56199).
- PURPLE#
Use a purple color (
#9141ac).
- RED#
Use a red color (
#e62d42).
- SLATE#
Use a slate color (
#6f8396).
- TEAL#
Use a teal color (
#2190a4).
- YELLOW#
Use a yellow color (
#c88800).