added background color to the accountswitchwidget
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
|
||||
#include <QHBoxLayout>
|
||||
#include <QLayout>
|
||||
#include <QPainter>
|
||||
#include <QPushButton>
|
||||
#include <QVBoxLayout>
|
||||
|
||||
@@ -47,5 +48,11 @@ void AccountSwitchPopupWidget::focusOutEvent(QFocusEvent *)
|
||||
this->hide();
|
||||
}
|
||||
|
||||
void AccountSwitchPopupWidget::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
QPainter painter(this);
|
||||
|
||||
painter.fillRect(this->rect(), QColor(255, 255, 255));
|
||||
}
|
||||
} // namespace widgets
|
||||
} // namespace chatterino
|
||||
|
||||
@@ -18,6 +18,7 @@ public:
|
||||
|
||||
protected:
|
||||
virtual void focusOutEvent(QFocusEvent *event) override final;
|
||||
virtual void paintEvent(QPaintEvent *event) override;
|
||||
|
||||
private:
|
||||
struct {
|
||||
|
||||
@@ -93,7 +93,7 @@ void EmotePopup::loadEmojis()
|
||||
// emojis
|
||||
messages::MessageBuilder builder;
|
||||
builder.getMessage()->addFlags(Message::Centered);
|
||||
builder.getMessage()->setFlags(Message::DisableCompactEmotes);
|
||||
builder.getMessage()->addFlags(Message::DisableCompactEmotes);
|
||||
|
||||
emojis.each([this, &builder](const QString &key, const util::EmoteData &value) {
|
||||
builder.appendElement((new EmoteElement(value, MessageElement::Flags::AlwaysShow)) //
|
||||
|
||||
Reference in New Issue
Block a user