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()
|
|
|
|
{
|
|
|
|
return "bright";
|
|
|
|
}
|
|
|
|
|
|
|
|
QString BrightTheme::name()
|
|
|
|
{
|
|
|
|
return QObject::tr("Bright");
|
|
|
|
}
|
|
|
|
|
2017-01-15 21:56:03 +00:00
|
|
|
bool BrightTheme::hasColorScheme()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-11-01 07:50:23 +00:00
|
|
|
QPalette BrightTheme::colorScheme()
|
|
|
|
{
|
|
|
|
QPalette brightPalette;
|
2022-10-08 18:33:24 +01:00
|
|
|
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);
|
2016-11-01 07:50:23 +00:00
|
|
|
brightPalette.setColor(QPalette::BrightText, Qt::red);
|
2022-10-08 18:33:24 +01:00
|
|
|
brightPalette.setColor(QPalette::Link, QColor(37,137,164));
|
|
|
|
brightPalette.setColor(QPalette::Highlight, QColor(137,207,84));
|
|
|
|
brightPalette.setColor(QPalette::HighlightedText, Qt::black);
|
2016-11-06 03:29:12 +00:00
|
|
|
return fadeInactive(brightPalette, fadeAmount(), fadeColor());
|
2016-11-01 07:50:23 +00:00
|
|
|
}
|
|
|
|
|
2016-11-06 03:29:12 +00:00
|
|
|
double BrightTheme::fadeAmount()
|
|
|
|
{
|
|
|
|
return 0.5;
|
|
|
|
}
|
|
|
|
|
|
|
|
QColor BrightTheme::fadeColor()
|
|
|
|
{
|
2022-10-08 18:33:24 +01:00
|
|
|
return QColor(255,255,255);
|
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()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-11-01 07:50:23 +00:00
|
|
|
QString BrightTheme::appStyleSheet()
|
|
|
|
{
|
|
|
|
return QString();
|
|
|
|
}
|
|
|
|
|