yacreader/YACReaderLibrary/theme.h

58 lines
1.3 KiB
C++

#ifndef THEME_H
#define THEME_H
#include <QtCore>
class Theme
{
public:
Theme();
static Theme currentTheme() {
Theme t;
if (true) { //native macos theme
t.isMacosNative = 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;
} else {
t.isMacosNative = false;
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;
}
return t;
}
bool isMacosNative;
//
bool disableClassicViewCollapsing;
//
QString comicsViewTransitionBackground;
//library item
QString itemLibrarySelectedStyleSheet;
QString itemLibraryNoSelectedStyleSheet;
//tree folders
bool useNativeFolderIcons;
};
#endif // THEME_H