minor cleanup

This commit is contained in:
digant 2024-12-04 22:08:12 +01:00
commit edccce653f

View file

@ -150,12 +150,13 @@ namespace gui
static inline Qt::ColorScheme color_scheme() static inline Qt::ColorScheme color_scheme()
{ {
// use the QGuiApplication's properties to report the default GUI color scheme
return QGuiApplication::styleHints()->colorScheme(); return QGuiApplication::styleHints()->colorScheme();
} }
static inline bool dark_mode_active() static inline bool dark_mode_active()
{ {
// use the QGuiApplication's properties to report the default color scheme // "true" if the default GUI color scheme is dark. "false" otherwise
return color_scheme() == Qt::ColorScheme::Dark; return color_scheme() == Qt::ColorScheme::Dark;
} }