Theme¶
- discopygal_tools.solver_viewer.theme.adjust_color(color, lighten_factor: int = 160) QColor¶
Adjust a color according to current theme.
If the app theme is dark, the returned color will be lightened using QColor.lighter(lighten_factor). Otherwise the original color is returned as a QColor.
- discopygal_tools.solver_viewer.theme.get_app_theme() str | None¶
Return current app theme name (‘light’ or ‘dark’) if available.