changes for light theme

- fixed light colored text being too bright
- fixed the ripple effect being white on grey
This commit is contained in:
fourtf
2017-12-19 02:23:17 +01:00
parent 1a870685b0
commit f8e4d9a737
4 changed files with 26 additions and 7 deletions
+4 -2
View File
@@ -1,5 +1,7 @@
#pragma once
#include <boost/optional.hpp>
#include "widgets/basewidget.hpp"
#include <QMouseEvent>
@@ -28,7 +30,7 @@ class RippleEffectButton : public BaseWidget
public:
RippleEffectButton(BaseWidget *parent);
void setMouseEffectColor(QColor color);
void setMouseEffectColor(boost::optional<QColor> color);
signals:
void clicked();
@@ -52,7 +54,7 @@ private:
double hoverMultiplier = 0.0;
QTimer effectTimer;
std::vector<ClickEffect> clickEffects;
QColor mouseEffectColor = {255, 255, 255};
boost::optional<QColor> mouseEffectColor = boost::none;
void onMouseEffectTimeout();
};