From 064dccf8b49212b65c2c114fc87a9226b5ecf518 Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Mon, 27 Aug 2018 02:30:38 -0700 Subject: [PATCH] fix(ui): avatar highlight on hover in profile --- src/widget/form/profileform.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 1acc1532d..2c8c35e1c 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -140,9 +140,11 @@ ProfileForm::ProfileForm(IProfileInfo* profileInfo, QWidget* parent) profilePicture->setPixmap(QPixmap(":/img/contact_dark.svg")); profilePicture->setContextMenuPolicy(Qt::CustomContextMenu); profilePicture->setClickable(true); + profilePicture->setObjectName("selfAvatar"); profilePicture->installEventFilter(this); profilePicture->setAccessibleName("Profile avatar"); profilePicture->setAccessibleDescription("Set a profile avatar shown to all contacts"); + profilePicture->setStyleSheet(Style::getStylesheet(":ui/window/profile.css")); connect(profilePicture, &MaskablePixmapWidget::clicked, this, &ProfileForm::onAvatarClicked); connect(profilePicture, &MaskablePixmapWidget::customContextMenuRequested, this, &ProfileForm::showProfilePictureContextMenu);