Panel.ThemeSelector¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1)
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Gtk.Widget (25), GObject.Object (7), Gtk.Accessible (6), Gtk.Buildable (9)
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
The action to bind choices to |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Panel.ThemeSelector(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A widget that allow selecting theme preference between “dark”, “light” and “follow” the system preference.
<picture> <source srcset=”theme-selector-dark.png” media=”(prefers-color-scheme: dark)”> <img src=”theme-selector.png” alt=”theme-selector”> </picture>
Upon activation it will activate the named action in
Panel.ThemeSelector
:action-name
.- classmethod new()¶
- Returns:
a newly created
Panel.ThemeSelector
.- Return type:
Create a new #ThemeSelector.
- get_action_name()¶
- Returns:
the name of the action.
- Return type:
Gets the name of the action that will be activated.