2016-11-01 07:50:23 +00:00
|
|
|
#include "BrightTheme.h"
|
|
|
|
|
2022-09-30 18:56:01 +01:00
|
|
|
#include <QObject>
|
|
|
|
|
2016-11-01 07:50:23 +00:00
|
|
|
QString BrightTheme::id()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return "bright";
|
2016-11-01 07:50:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QString BrightTheme::name()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return QObject::tr("Bright");
|
2016-11-01 07:50:23 +00:00
|
|
|
}
|
|
|
|
|
2017-01-15 21:56:03 +00:00
|
|
|
bool BrightTheme::hasColorScheme()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return true;
|
2017-01-15 21:56:03 +00:00
|
|
|
}
|
|
|
|
|
2016-11-01 07:50:23 +00:00
|
|
|
QPalette BrightTheme::colorScheme()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
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());
|
2016-11-01 07:50:23 +00:00
|
|
|
}
|
|
|
|
|
2016-11-06 03:29:12 +00:00
|
|
|
double BrightTheme::fadeAmount()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return 0.5;
|
2016-11-06 03:29:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QColor BrightTheme::fadeColor()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return QColor(239,240,241);
|
2016-11-06 03:29:12 +00:00
|
|
|
}
|
2016-11-01 07:50:23 +00:00
|
|
|
|
2017-01-15 21:56:03 +00:00
|
|
|
bool BrightTheme::hasStyleSheet()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return false;
|
2017-01-15 21:56:03 +00:00
|
|
|
}
|
|
|
|
|
2016-11-01 07:50:23 +00:00
|
|
|
QString BrightTheme::appStyleSheet()
|
|
|
|
{
|
2018-07-15 13:51:05 +01:00
|
|
|
return QString();
|
2016-11-01 07:50:23 +00:00
|
|
|
}
|
|
|
|
|