From edccce653f140b609966ac38a79ab25bae3a7204 Mon Sep 17 00:00:00 2001 From: digant Date: Wed, 4 Dec 2024 22:08:12 +0100 Subject: [PATCH] minor cleanup --- rpcs3/rpcs3qt/qt_utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/rpcs3qt/qt_utils.h b/rpcs3/rpcs3qt/qt_utils.h index 4fb0e8f8d8..fbac5270f5 100644 --- a/rpcs3/rpcs3qt/qt_utils.h +++ b/rpcs3/rpcs3qt/qt_utils.h @@ -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; }