Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
feat(avatar): Add outline hightlight on mouse hover
Browse files Browse the repository at this point in the history
  • Loading branch information
Diadlo committed Nov 26, 2017
1 parent 73dcbd2 commit bb26485
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions res.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<file>ui/statusButton/statusButton.css</file>
<file>ui/statusButton/menu_indicator.svg</file>
<file>ui/window/general.css</file>
<file>ui/window/profile.css</file>
<file>ui/window/statusPanel.css</file>
<file>ui/window/window.css</file>
<file>ui/chatArea/info.svg</file>
Expand Down
2 changes: 2 additions & 0 deletions src/widget/widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ void Widget::init()
profilePicture = new MaskablePixmapWidget(this, QSize(40, 40), ":/img/avatar_mask.svg");
profilePicture->setPixmap(QPixmap(":/img/contact_dark.svg"));
profilePicture->setClickable(true);
profilePicture->setObjectName("selfAvatar");
profilePicture->setStyleSheet(Style::getStylesheet(":ui/window/profile.css"));
ui->myProfile->insertWidget(0, profilePicture);
ui->myProfile->insertSpacing(1, 7);

Expand Down
4 changes: 4 additions & 0 deletions ui/window/profile.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#selfAvatar:hover {
border-radius: 6px;
background-color: #ccc;
}

0 comments on commit bb26485

Please sign in to comment.