@ -64,6 +64,9 @@ public slots:
//! Set hovering to the item in the given layout position.
void setHovering(int pos);
protected:
void paintEvent(QPaintEvent *event) override;
signals:
void itemSelected(const QString &user);
@ -22,6 +22,10 @@ QuickSwitcher {
background-color: #202228;
}
SuggestionsPopup {
PopupItem {
qproperty-hoverColor: rgba(45, 49, 57, 120);
background-color: white;
qproperty-hoverColor: rgba(192, 193, 195, 120);
@ -25,6 +25,10 @@ QuickSwitcher {
background-color: palette(window);
@ -106,6 +106,7 @@ SuggestionsPopup::addUsers(const QVector<SearchResult> &users)
resetSelection();
adjustSize();
resize(geometry().width(), 40 * users.size());
@ -171,3 +172,12 @@ SuggestionsPopup::selectHoveredSuggestion()
void
SuggestionsPopup::paintEvent(QPaintEvent *)
{
QStyleOption opt;
opt.init(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);