2017-09-16 16:20:10 +02:00
|
|
|
#include "widgets/rippleeffectlabel.hpp"
|
2017-06-11 09:31:45 +02:00
|
|
|
#include "colorscheme.hpp"
|
2017-06-26 16:41:20 +02:00
|
|
|
#include "widgets/chatwidgetheader.hpp"
|
2017-01-15 16:38:30 +01:00
|
|
|
|
|
|
|
#include <QBrush>
|
|
|
|
#include <QPainter>
|
|
|
|
|
2017-04-14 17:52:22 +02:00
|
|
|
namespace chatterino {
|
|
|
|
namespace widgets {
|
2017-01-18 21:30:23 +01:00
|
|
|
|
2017-09-16 16:20:10 +02:00
|
|
|
RippleEffectLabel::RippleEffectLabel(BaseWidget *parent, int spacing)
|
2017-09-21 17:34:41 +02:00
|
|
|
: RippleEffectButton(parent)
|
2017-01-15 16:38:30 +01:00
|
|
|
{
|
2017-06-26 16:41:20 +02:00
|
|
|
setLayout(&this->ui.hbox);
|
2017-01-15 16:38:30 +01:00
|
|
|
|
2017-06-26 16:41:20 +02:00
|
|
|
this->ui.label.setAlignment(Qt::AlignCenter);
|
2017-01-20 06:10:28 +01:00
|
|
|
|
2017-06-26 16:41:20 +02:00
|
|
|
this->ui.hbox.setMargin(0);
|
|
|
|
this->ui.hbox.addSpacing(spacing);
|
|
|
|
this->ui.hbox.addWidget(&this->ui.label);
|
|
|
|
this->ui.hbox.addSpacing(spacing);
|
2017-01-15 16:38:30 +01:00
|
|
|
|
2017-09-15 17:23:49 +02:00
|
|
|
this->setMouseEffectColor(QColor(255, 255, 255, 63));
|
2017-01-15 16:38:30 +01:00
|
|
|
}
|
|
|
|
|
2017-06-07 10:09:24 +02:00
|
|
|
} // namespace widgets
|
|
|
|
} // namespace chatterino
|