pollymc/launcher/ui/themes/BrightTheme.cpp

59 lines
1.5 KiB
C++
Raw Normal View History

#include "BrightTheme.h"
#include <QObject>
QString BrightTheme::id()
{
2018-07-15 18:21:05 +05:30
return "bright";
}
QString BrightTheme::name()
{
2018-07-15 18:21:05 +05:30
return QObject::tr("Bright");
}
bool BrightTheme::hasColorScheme()
{
2018-07-15 18:21:05 +05:30
return true;
}
QPalette BrightTheme::colorScheme()
{
2018-07-15 18:21:05 +05:30
QPalette brightPalette;
brightPalette.setColor(QPalette::Window, QColor(239,240,241));
brightPalette.setColor(QPalette::WindowText, QColor(49,54,59));
brightPalette.setColor(QPalette::Base, QColor(252,252,252));
brightPalette.setColor(QPalette::AlternateBase, QColor(239,240,241));
brightPalette.setColor(QPalette::ToolTipBase, QColor(49,54,59));
brightPalette.setColor(QPalette::ToolTipText, QColor(239,240,241));
brightPalette.setColor(QPalette::Text, QColor(49,54,59));
brightPalette.setColor(QPalette::Button, QColor(239,240,241));
brightPalette.setColor(QPalette::ButtonText, QColor(49,54,59));
brightPalette.setColor(QPalette::BrightText, Qt::red);
brightPalette.setColor(QPalette::Link, QColor(41, 128, 185));
brightPalette.setColor(QPalette::Highlight, QColor(61, 174, 233));
brightPalette.setColor(QPalette::HighlightedText, QColor(239,240,241));
return fadeInactive(brightPalette, fadeAmount(), fadeColor());
}
double BrightTheme::fadeAmount()
{
2018-07-15 18:21:05 +05:30
return 0.5;
}
QColor BrightTheme::fadeColor()
{
2018-07-15 18:21:05 +05:30
return QColor(239,240,241);
}
bool BrightTheme::hasStyleSheet()
{
2018-07-15 18:21:05 +05:30
return false;
}
QString BrightTheme::appStyleSheet()
{
2018-07-15 18:21:05 +05:30
return QString();
}