Utility functions#
- edifice.palette_edifice_dark()[source]#
Edifice dark theme palette. This is the Qt Linux default dark theme palette, with some adjustments.
- Return type:
QPalette
- edifice.palette_edifice_light()[source]#
Edifice light theme palette. This is the Qt Linux default light theme palette, with some adjustments.
- Return type:
QPalette
- edifice.theme_is_light()[source]#
Detect the operating environment theme.
True if light theme, false if dark theme.
def initializer(): palette = palette_edifice_light() if theme_is_light() else palette_edifice_dark() cast(QApplication, QApplication.instance()).setPalette(palette) return palette palette = use_memo(initializer) with Window():
- Return type:
bool