2016-11-01 13:20:23 +05:30
|
|
|
#include "BrightTheme.h"
|
|
|
|
|
2022-09-30 23:26:01 +05:30
|
|
|
#include <QObject>
|
|
|
|
|
2016-11-01 13:20:23 +05:30
|
|
|
QString BrightTheme::id()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return "bright";
|
2016-11-01 13:20:23 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
QString BrightTheme::name()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return QObject::tr("Bright");
|
2016-11-01 13:20:23 +05:30
|
|
|
}
|
|
|
|
|
2017-01-16 03:26:03 +05:30
|
|
|
bool BrightTheme::hasColorScheme()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return true;
|
2017-01-16 03:26:03 +05:30
|
|
|
}
|
|
|
|
|
2016-11-01 13:20:23 +05:30
|
|
|
QPalette BrightTheme::colorScheme()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
QPalette brightPalette;
|
2022-10-08 23:03:24 +05:30
|
|
|
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 18:21:05 +05:30
|
|
|
brightPalette.setColor(QPalette::BrightText, Qt::red);
|
2022-10-08 23:03:24 +05:30
|
|
|
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 18:21:05 +05:30
|
|
|
return fadeInactive(brightPalette, fadeAmount(), fadeColor());
|
2016-11-01 13:20:23 +05:30
|
|
|
}
|
|
|
|
|
2016-11-06 08:59:12 +05:30
|
|
|
double BrightTheme::fadeAmount()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return 0.5;
|
2016-11-06 08:59:12 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
QColor BrightTheme::fadeColor()
|
|
|
|
{
|
2022-10-08 23:03:24 +05:30
|
|
|
return QColor(255,255,255);
|
2016-11-06 08:59:12 +05:30
|
|
|
}
|
2016-11-01 13:20:23 +05:30
|
|
|
|
2017-01-16 03:26:03 +05:30
|
|
|
bool BrightTheme::hasStyleSheet()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return false;
|
2017-01-16 03:26:03 +05:30
|
|
|
}
|
|
|
|
|
2016-11-01 13:20:23 +05:30
|
|
|
QString BrightTheme::appStyleSheet()
|
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
return QString();
|
2016-11-01 13:20:23 +05:30
|
|
|
}
|
|
|
|
|