MCPcopy Create free account
hub / github.com/YACReader/yacreader / themeVariantFromColorScheme

Function themeVariantFromColorScheme

common/themes/theme_manager.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142ThemeVariant themeVariantFromColorScheme(Qt::ColorScheme colorScheme)
143{
144 if (colorScheme == Qt::ColorScheme::Dark)
145 return ThemeVariant::Dark;
146
147 if (colorScheme == Qt::ColorScheme::Unknown && paletteLooksDark())
148 return ThemeVariant::Dark;
149
150 return ThemeVariant::Light;
151}

Callers 1

resolveThemeMethod · 0.85

Calls 1

paletteLooksDarkFunction · 0.85

Tested by

no test coverage detected