summaryrefslogtreecommitdiffstats
path: root/application/themes/BrightTheme.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-11-06 04:29:12 +0100
committerPetr Mrázek <peterix@gmail.com>2016-11-06 04:29:12 +0100
commitbc753859b5ab5d1402940024c0478548165b57f8 (patch)
tree4d067325767b6100f1483115e5547a80ef14a4da /application/themes/BrightTheme.cpp
parent13b575f7a90ef97f3b30f2a2f74bd19d58d375e7 (diff)
downloadMultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar
MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.gz
MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.lz
MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.tar.xz
MultiMC-bc753859b5ab5d1402940024c0478548165b57f8.zip
GH-378 add basic custom theme support
Files you can customize are created in themes/custom/
Diffstat (limited to 'application/themes/BrightTheme.cpp')
-rw-r--r--application/themes/BrightTheme.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/application/themes/BrightTheme.cpp b/application/themes/BrightTheme.cpp
index 83d8f0b2..a7cfa010 100644
--- a/application/themes/BrightTheme.cpp
+++ b/application/themes/BrightTheme.cpp
@@ -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()
{