Update theme to include full screen action configuration.

This commit is contained in:
Luis Ángel San Martín 2018-09-11 16:49:00 +02:00 committed by Luis Ángel San Martín
parent 176565d78c
commit 00f8adfa54

View File

@ -11,8 +11,15 @@ public:
static Theme currentTheme() { static Theme currentTheme() {
Theme t; Theme t;
if (true) { //native macos theme #ifdef Q_OS_MAC
bool macosNative = true;
#else
bool macosNative = false;
#endif
if (macosNative) { //native macos theme
t.isMacosNative = true; t.isMacosNative = true;
t.useNativeFullScreen = true;
t.disableClassicViewCollapsing = true; t.disableClassicViewCollapsing = true;
@ -27,6 +34,11 @@ public:
t.noComicsContentTitleLabelStyle = "QLabel {color:#888888; font-size:24px;font-family:Arial;font-weight:bold;}"; t.noComicsContentTitleLabelStyle = "QLabel {color:#888888; font-size:24px;font-family:Arial;font-weight:bold;}";
} else { } else {
t.isMacosNative = false; t.isMacosNative = false;
#ifdef Q_OS_MAC
t.useNativeFullScreen = true;
#else
t.useNativeFullScreen = false;
#endif
t.disableClassicViewCollapsing = false; t.disableClassicViewCollapsing = false;
@ -45,6 +57,7 @@ public:
} }
bool isMacosNative; bool isMacosNative;
bool useNativeFullScreen;
// //
bool disableClassicViewCollapsing; bool disableClassicViewCollapsing;