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:
parent
73dcbd2e60
commit
bb26485db6
1
res.qrc
1
res.qrc
|
@ -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>
|
||||
|
|
|
@ -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
4
ui/window/profile.css
Normal file
|
@ -0,0 +1,4 @@
|
|||
#selfAvatar:hover {
|
||||
border-radius: 6px;
|
||||
background-color: #ccc;
|
||||
}
|
Loading…
Reference in New Issue
Block a user