mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 03:55:32 +00:00
minor cleanup
This commit is contained in:
parent
3e1423481c
commit
edccce653f
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue