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.
ソースコード位置: src/constants/theme.py
_set_initial_theme
¶
color
¶
style_sidebar_list
¶
QSS for the sidebar navigation list.
ソースコード位置: src/constants/theme.py
style_page_header
¶
style_section_group
¶
QSS for bordered section cards.
ソースコード位置: src/constants/theme.py
style_section_title
¶
QSS for section title labels.
ソースコード位置: src/constants/theme.py
style_list_widget
¶
QSS for general list widgets (e.g. glossary sets).
ソースコード位置: src/constants/theme.py
style_checkbox
¶
QSS for checkboxes.
ソースコード位置: 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).
ソースコード位置: 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.
ソースコード位置: src/constants/theme.py
style_setting_container
¶
style_input_label
¶
style_input_field
¶
QSS for text input fields.
ソースコード位置: src/constants/theme.py
style_setting_combo
¶
QSS for combo box dropdowns.
ソースコード位置: src/constants/theme.py
style_tab_widget
¶
QSS for tab widgets.
ソースコード位置: src/constants/theme.py
style_radio_button
¶
QSS for radio buttons.
ソースコード位置: src/constants/theme.py
style_primary_button
¶
QSS for primary action buttons.
ソースコード位置: src/constants/theme.py
style_danger_button
¶
QSS for filled destructive buttons.
ソースコード位置: src/constants/theme.py
style_delete_button
¶
QSS for outlined destructive buttons.
ソースコード位置: src/constants/theme.py
style_outlined_primary_button
¶
QSS for outlined primary buttons.
ソースコード位置: src/constants/theme.py
style_warning_button
¶
QSS for outlined warning/pause buttons.
ソースコード位置: src/constants/theme.py
style_secondary_button
¶
QSS for secondary action buttons.
ソースコード位置: 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.
ソースコード位置: src/constants/theme.py
style_scrollbar
¶
QSS for custom scrollbars.
ソースコード位置: src/constants/theme.py
style_table
¶
QSS for data tables.
ソースコード位置: src/constants/theme.py
style_table_delete_button
¶
QSS for inline table delete buttons.
ソースコード位置: src/constants/theme.py
style_splitter
¶
Returns QSS for a QSplitter with a subtle draggable handle.
ソースコード位置: src/constants/theme.py
style_banner
¶
QSS for warning, error, info, or success banners with an icon.