Q2NSViz 0.1.0
Q2NS trace visualizer
Loading...
Searching...
No Matches
q2nsviz.ui.theme Namespace Reference

Classes

class  _ThemeMeta
 Metaclass that forwards attribute access to the active palette dict.
 
class  Theme
 Semantic color palette for Q2NSViz. More...
 

Functions

str ui_font_family ()
 Native UI font family matching the application font, for QPainter text.
 
bool toggle_dark ()
 Switch the active palette between light and dark.
 
bool is_dark ()
 Return True when the dark palette is active.
 

Variables

str SANS_FONT = "Arial,Liberation Sans,DejaVu Sans,Helvetica,sans-serif"
 

Function Documentation

◆ is_dark()

bool q2nsviz.ui.theme.is_dark ( )

Return True when the dark palette is active.

Definition at line 98 of file theme.py.

◆ toggle_dark()

bool q2nsviz.ui.theme.toggle_dark ( )

Switch the active palette between light and dark.

Returns
True if the palette is now dark; False if light.

Definition at line 88 of file theme.py.

◆ ui_font_family()

str q2nsviz.ui.theme.ui_font_family ( )

Native UI font family matching the application font, for QPainter text.

Definition at line 15 of file theme.py.

Variable Documentation

◆ SANS_FONT

str q2nsviz.ui.theme.SANS_FONT = "Arial,Liberation Sans,DejaVu Sans,Helvetica,sans-serif"

Definition at line 12 of file theme.py.