yacreader/YACReaderLibrary/theme.h
2020-04-07 18:11:35 +02:00

81 lines
2.1 KiB
C++

#ifndef THEME_H
#define THEME_H
#include <QtCore>
class Theme
{
public:
Theme();
static Theme currentTheme() {
Theme t;
#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;
t.comicsViewTransitionBackground = "#FFFFFF";
t.itemLibrarySelectedStyleSheet = "color: white; background-color:#91c4f4; border-bottom:1px solid #91c4f4;";
t.itemLibraryNoSelectedStyleSheet = "background-color:transparent;";
t.useNativeFolderIcons = true;
t.noComicsContentBackgroundColor = "#FFFFFF";
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;
t.comicsViewTransitionBackground = "#2A2A2A";
t.itemLibrarySelectedStyleSheet = "color: white; background-color:#2E2E2E; font-weight:bold;";
t.itemLibraryNoSelectedStyleSheet = "background-color:transparent; color:#DDDFDF;";
t.useNativeFolderIcons = false;
t.noComicsContentBackgroundColor = "#2A2A2A";
t.noComicsContentTitleLabelStyle = "QLabel {color:#CCCCCC; font-size:24px;font-family:Arial;font-weight:bold;}";
}
return t;
}
bool isMacosNative;
bool useNativeFullScreen;
//
bool disableClassicViewCollapsing;
//
QString comicsViewTransitionBackground;
//library item
QString itemLibrarySelectedStyleSheet;
QString itemLibraryNoSelectedStyleSheet;
//tree folders
bool useNativeFolderIcons;
//EmptyContainerInfo & NoSearchResultsWidget
QString noComicsContentBackgroundColor;
QString noComicsContentTitleLabelStyle;
};
#endif // THEME_H