-
Notifications
You must be signed in to change notification settings - Fork 0
theme_creator
version: v1.0.4
A module for a theme creator dialog.
A widget for colour selection or manual colour setting.
def __init__(self) -> NoneInitializer for the class.
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
def _setup_connections(self) -> NoneSets up the connections of the GUI objects.
@property
def colour(self) -> QColorReturns the stored colour.
@colour.setter
def colour(self, new_colour: QColor) -> NoneUpdates the stored colour and its associated widgets.
Parameters:
- new_colour: The new colour to set.
def set_enabled(self, new_state: bool) -> NoneSets the enabled state of the controls.
Parameters:
- new_state: The new enabled state to set.
def _slot_update_selector(self) -> NoneUpdates which selector is shown based on the control checkbox.
def _set_colour_label(self) -> NoneSets the pixmap of the colour's display label.
def _slot_colour_selector(self) -> NoneShows a colour selector dialog.
def catch_signal(button_id, colour) -> NoneCatches the signal carrying the newly set colour. (Nested function inside _slot_colour_selector().)
Parameters:
- button_id: The caller button's ID, unused here.
- colour: The colour to set.
def _update_spinboxes(self) -> NoneUpdates the values of spinboxes by the stored colour.
def _update_colour(self) -> NoneUpdates the stored colour and its display label according to the sender.
A widget for previewing a theme.
def __init__(self) -> NoneInitializer for the class.
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
A dialog for creating a custom widget theme / editing existing ones.
def __init__(self) -> NoneInitializer for the class.
def _setup_ui(self) -> NoneSets up the user interface: GUI objects and layouts.
def _setup_connections(self) -> NoneSets up the connections of the GUI objects.
def _slot_use_existing_theme(self) -> NoneUpdates the controls' enabled state based on the state of the checkbox.
def _slot_update_by_combobox(self, index: int) -> NoneUpdates the preview based on the selection made in the combobox.
Parameters:
- index: The index of the item selected in the combobox.
def _slot_update_by_custom_colours(self) -> NoneUpdates the preview based on the set custom colours.
def _slot_export_theme(self) -> NoneExports the currently set custom theme and updates the dialog accordingly.
def _slot_delete_theme(self) -> NoneDeletes the currently viewed theme's JSON file and updates the dialog accordingly.