theme¶
theme
¶
Centralized theming engine for light and dark modes.
Provides color palettes, a theme-change signal, a color() accessor, and style generator functions that produce QSS for the current theme.
current_theme
¶
set_theme
¶
Switches the active theme and emits the changed signal.
Source code in src/constants/theme.py
_set_initial_theme
¶
color
¶
style_sidebar_list
¶
QSS for the sidebar navigation list.
Source code in src/constants/theme.py
style_page_header
¶
style_section_group
¶
QSS for bordered section cards.
Source code in src/constants/theme.py
style_section_title
¶
QSS for section title labels.
Source code in src/constants/theme.py
style_list_widget
¶
QSS for general list widgets (e.g. glossary sets).
Source code in src/constants/theme.py
style_checkbox
¶
QSS for checkboxes.
Source code in src/constants/theme.py
style_card_light
¶
QSS for light-tinted card backgrounds.
style_card_header
¶
style_link_button
¶
QSS for text-only link-style buttons (primary action variant).
Source code in src/constants/theme.py
style_link_button_muted
¶
QSS for text-only secondary-action link buttons.
Same shape as :func:style_link_button but uses
text_secondary instead of the primary brand colour so a
paired secondary action (Reset next to Browse, Cancel next to
Confirm, etc.) reads as visually subordinate to the primary
action. Hover lifts to text_primary rather than
primary_light for the same reason.
Source code in src/constants/theme.py
style_setting_container
¶
style_input_label
¶
style_input_field
¶
QSS for text input fields.
Source code in src/constants/theme.py
style_setting_combo
¶
QSS for combo box dropdowns.
Source code in src/constants/theme.py
style_tab_widget
¶
QSS for tab widgets.
Source code in src/constants/theme.py
style_radio_button
¶
QSS for radio buttons.
Source code in src/constants/theme.py
style_primary_button
¶
QSS for primary action buttons.
Source code in src/constants/theme.py
style_danger_button
¶
QSS for filled destructive buttons.
Source code in src/constants/theme.py
style_delete_button
¶
QSS for outlined destructive buttons.
Source code in src/constants/theme.py
style_outlined_primary_button
¶
QSS for outlined primary buttons.
Source code in src/constants/theme.py
style_warning_button
¶
QSS for outlined warning/pause buttons.
Source code in src/constants/theme.py
style_secondary_button
¶
QSS for secondary action buttons.
Source code in src/constants/theme.py
style_toggle_button
¶
QSS for setCheckable(True) toggle buttons.
Same neutral-by-default styling as style_secondary_button,
but the :checked state uses an outlined-primary look (blue
border + blue text on a tinted background) instead of the
secondary-button solid blue fill. This keeps "on" clearly
distinct from "off" without making the toggle compete with the
page's actual primary action button (e.g. Start Listening) for
visual weight.
Source code in src/constants/theme.py
style_scrollbar
¶
QSS for custom scrollbars.
Source code in src/constants/theme.py
style_table
¶
QSS for data tables.
Source code in src/constants/theme.py
style_table_delete_button
¶
QSS for inline table delete buttons.
Source code in src/constants/theme.py
style_splitter
¶
Returns QSS for a QSplitter with a subtle draggable handle.
Source code in src/constants/theme.py
style_banner
¶
QSS for warning, error, info, or success banners with an icon.