GH-378 add basic custom theme support

Files you can customize are created in themes/custom/
This commit is contained in:
Petr Mrázek
2016-11-06 04:29:12 +01:00
parent 13b575f7a9
commit bc753859b5
15 changed files with 335 additions and 40 deletions

View File

@ -26,9 +26,18 @@ QPalette BrightTheme::colorScheme()
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, 0.5f, QColor(239,240,241));
return fadeInactive(brightPalette, fadeAmount(), fadeColor());
}
double BrightTheme::fadeAmount()
{
return 0.5;
}
QColor BrightTheme::fadeColor()
{
return QColor(239,240,241);
}
QString BrightTheme::appStyleSheet()
{