kicad2ems.gui.theme

The plots' colours (R-E25): light or dark. 'system' (the default) follows the
desktop's colour scheme (Qt's style hints, else the palette's window colour) and
changes with it; 'light' and 'dark' hold whatever the desktop does. The window's
View menu sets it (QSettings 'view/plots').

    theme.set_choice('dark')  # every plot restyled now; new plots take it as
                              # they are made
    c = theme.colors()        # dict: bg, fg, grid, marker, fill (a label's
                              # backing, RGBA)

A plot widget whose own items carry colours (markers, a cursor's dot) has a
restyle() method, which apply() calls.
kicad2ems.gui.theme.apply()[source]
The theme's colours as pyqtgraph's defaults (for plots still to come), on
every plot widget open and to each widget with a restyle() of its own; and,
once there is an application, follow the desktop's scheme.
kicad2ems.gui.theme.restyle(w, c=None)[source]
One pyqtgraph PlotWidget in colours c (default: the theme's): background,
axes, title, legend.
kicad2ems.gui.theme.set_choice(c)[source]
'system', 'light' or 'dark' (anything else: 'system'), then apply().
kicad2ems.gui.theme.system_dark()[source]
Is the desktop's colour scheme dark? (Qt 6.5's style hints; else the
palette's window colour.)