From 00f8adfa54c9dcd869b5242e5925cfa27879d790 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Tue, 11 Sep 2018 16:49:00 +0200 Subject: [PATCH] Update theme to include full screen action configuration. --- YACReaderLibrary/theme.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/YACReaderLibrary/theme.h b/YACReaderLibrary/theme.h index aa1948ce..cfc5ce89 100644 --- a/YACReaderLibrary/theme.h +++ b/YACReaderLibrary/theme.h @@ -11,8 +11,15 @@ public: static Theme currentTheme() { 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.useNativeFullScreen = true; t.disableClassicViewCollapsing = true; @@ -27,6 +34,11 @@ public: t.noComicsContentTitleLabelStyle = "QLabel {color:#888888; font-size:24px;font-family:Arial;font-weight:bold;}"; } else { t.isMacosNative = false; + #ifdef Q_OS_MAC + t.useNativeFullScreen = true; + #else + t.useNativeFullScreen = false; + #endif t.disableClassicViewCollapsing = false; @@ -45,6 +57,7 @@ public: } bool isMacosNative; + bool useNativeFullScreen; // bool disableClassicViewCollapsing;