mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Update theme to include full screen action configuration.
This commit is contained in:
parent
176565d78c
commit
00f8adfa54
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user