1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

feat(avatar): Add outline hightlight on mouse hover

This commit is contained in:
Diadlo 2017-11-24 09:26:09 +03:00
parent 73dcbd2e60
commit bb26485db6
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
3 changed files with 7 additions and 0 deletions

View File

@ -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>

View File

@ -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);

4
ui/window/profile.css Normal file
View File

@ -0,0 +1,4 @@
#selfAvatar:hover {
border-radius: 6px;
background-color: #ccc;
}