minor cleanup

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

View file

@ -150,12 +150,13 @@ namespace gui
static inline Qt::ColorScheme color_scheme()
{
// use the QGuiApplication's properties to report the default GUI color scheme
return QGuiApplication::styleHints()->colorScheme();
}
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;
}