Skip to content

Commit

Permalink
Set a11y name on notification icon
Browse files Browse the repository at this point in the history
Fixes: #11678
  • Loading branch information
erikjv committed Jun 13, 2024
1 parent 8955aca commit f85421f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/gui/notificationwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void NotificationWidget::changeEvent(QEvent *e)
case QEvent::StyleChange:
case QEvent::PaletteChange:
case QEvent::ThemeChange:
_ui->_notifIcon->setPixmap(Resources::getCoreIcon(QStringLiteral("bell")).pixmap(_ui->_notifIcon->size()));
_ui->_notificationIcon->setPixmap(Resources::getCoreIcon(QStringLiteral("bell")).pixmap(_ui->_notificationIcon->size()));
break;
default:
break;
Expand Down
9 changes: 6 additions & 3 deletions src/gui/notificationwidget.ui
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<widget class="QLabel" name="_notifIcon">
<widget class="QLabel" name="_notificationIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
Expand All @@ -48,11 +48,14 @@
<height>48</height>
</size>
</property>
<property name="accessibleName">
<string>Notification icon</string>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="../../client.qrc">:/client/resources/light/bell.svg</pixmap>
<pixmap resource="../resources/client.qrc">:/client/resources/light/bell.svg</pixmap>
</property>
<property name="scaledContents">
<bool>true</bool>
Expand Down Expand Up @@ -126,7 +129,7 @@
</layout>
</widget>
<resources>
<include location="../../client.qrc"/>
<include location="../resources/client.qrc"/>
</resources>
<connections/>
</ui>

0 comments on commit f85421f

Please sign in to comment.