comparison src/gui/dark_theme.cpp @ 63:3d2decf093bb

*: fix many clang warnings
author Paper <mrpapersonic@gmail.com>
date Sun, 01 Oct 2023 06:39:47 -0400
parents 4c6dd5999b39
children
comparison
equal deleted inserted replaced
62:4c6dd5999b39 63:3d2decf093bb
1 #include "core/config.h"
2 #include "core/session.h"
1 #include <QApplication> 3 #include <QApplication>
2 #include <QFile> 4 #include <QFile>
3 #include <QTextStream> 5 #include <QTextStream>
4 #include "core/config.h"
5 #include "core/session.h"
6 #ifdef MACOSX 6 #ifdef MACOSX
7 # include "sys/osx/dark_theme.h" 7 # include "sys/osx/dark_theme.h"
8 #else 8 #else
9 # include "sys/win32/dark_theme.h" 9 # include "sys/win32/dark_theme.h"
10 #endif 10 #endif
56 #if MACOSX 56 #if MACOSX
57 if (osx::DarkThemeAvailable()) 57 if (osx::DarkThemeAvailable())
58 osx::SetToDarkTheme(); 58 osx::SetToDarkTheme();
59 else 59 else
60 #endif 60 #endif
61 SetStyleSheet(Themes::DARK); 61 SetStyleSheet(Themes::DARK);
62 } 62 }
63 63
64 void SetToLightTheme() { 64 void SetToLightTheme() {
65 #if MACOSX 65 #if MACOSX
66 if (osx::DarkThemeAvailable()) 66 if (osx::DarkThemeAvailable())