summaryrefslogtreecommitdiffstats
path: root/application/themes/FusionTheme.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/FusionTheme.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/FusionTheme.cpp')
-rw-r--r--application/themes/FusionTheme.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/application/themes/FusionTheme.cpp b/application/themes/FusionTheme.cpp
index fa2ccf64..aaf7b3d5 100644
--- a/application/themes/FusionTheme.cpp
+++ b/application/themes/FusionTheme.cpp
@@ -1,32 +1,6 @@
#include "FusionTheme.h"
-#include "rainbow.h"
QString FusionTheme::qtTheme()
{
return "Fusion";
}
-
-QPalette FusionTheme::fadeInactive(QPalette in, qreal bias, QColor color)
-{
- auto blend = [&in, bias, color](QPalette::ColorRole role)
- {
- QColor from = in.color(QPalette::Active, role);
- QColor blended = Rainbow::mix(from, color, bias);
- in.setColor(QPalette::Disabled, role, blended);
- };
- blend(QPalette::Window);
- blend(QPalette::WindowText);
- blend(QPalette::Base);
- blend(QPalette::AlternateBase);
- blend(QPalette::ToolTipBase);
- blend(QPalette::ToolTipText);
- blend(QPalette::Text);
- blend(QPalette::Button);
- blend(QPalette::ButtonText);
- blend(QPalette::BrightText);
- blend(QPalette::Link);
- blend(QPalette::Highlight);
- blend(QPalette::HighlightedText);
- return in;
-}
-