PrismLauncher/launcher/ui/themes/BrightTheme.cpp

58 lines
1.4 KiB
C++
Raw Normal View History

#include "BrightTheme.h"
#include <QObject>
QString BrightTheme::id()
{
2018-07-15 13:51:05 +01:00
return "bright";
}
QString BrightTheme::name()
{
2018-07-15 13:51:05 +01:00
return QObject::tr("Bright");
}
bool BrightTheme::hasColorScheme()
{
2018-07-15 13:51:05 +01:00
return true;
}
QPalette BrightTheme::colorScheme()
{
2018-07-15 13:51:05 +01:00
QPalette brightPalette;
brightPalette.setColor(QPalette::Window, QColor(255, 255, 255));
brightPalette.setColor(QPalette::WindowText, QColor(17, 17, 17));
brightPalette.setColor(QPalette::Base, QColor(250, 250, 250));
brightPalette.setColor(QPalette::AlternateBase, QColor(240, 240, 240));
brightPalette.setColor(QPalette::ToolTipBase, QColor(17, 17, 17));
brightPalette.setColor(QPalette::ToolTipText, QColor(255, 255, 255));
brightPalette.setColor(QPalette::Text, Qt::black);
brightPalette.setColor(QPalette::Button, QColor(249, 249, 249));
brightPalette.setColor(QPalette::ButtonText, Qt::black);
2018-07-15 13:51:05 +01:00
brightPalette.setColor(QPalette::BrightText, Qt::red);
brightPalette.setColor(QPalette::Link, QColor(37, 137, 164));
brightPalette.setColor(QPalette::Highlight, QColor(137, 207, 84));
brightPalette.setColor(QPalette::HighlightedText, Qt::black);
2018-07-15 13:51:05 +01:00
return fadeInactive(brightPalette, fadeAmount(), fadeColor());
}
double BrightTheme::fadeAmount()
{
2018-07-15 13:51:05 +01:00
return 0.5;
}
QColor BrightTheme::fadeColor()
{
return QColor(255, 255, 255);
}
bool BrightTheme::hasStyleSheet()
{
2018-07-15 13:51:05 +01:00
return false;
}
QString BrightTheme::appStyleSheet()
{
2018-07-15 13:51:05 +01:00
return QString();
}