From 09daeb55e40d8d63e09c5ddfdbee2eb823491d68 Mon Sep 17 00:00:00 2001 From: zhaoyingzhen Date: Fri, 26 Apr 2024 09:53:19 +0800 Subject: [PATCH] fix: fix incorrect bluetooth activation status icon in the tray quick panel fix incorrect bluetooth activation status icon in the tray quick panel. Log: fix incorrect bluetooth activation status icon in the tray quick panel issue: https://github.com/linuxdeepin/developer-center/issues/8237 Influence: bluetooth activation status icon display --- panels/dock/tray/plugins/bluetooth/bluetoothmainwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/dock/tray/plugins/bluetooth/bluetoothmainwidget.cpp b/panels/dock/tray/plugins/bluetooth/bluetoothmainwidget.cpp index 57b336df9..a2fbc5474 100644 --- a/panels/dock/tray/plugins/bluetooth/bluetoothmainwidget.cpp +++ b/panels/dock/tray/plugins/bluetooth/bluetoothmainwidget.cpp @@ -64,7 +64,7 @@ void BluetoothMainWidget::initUi() m_iconButton->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); m_iconButton->setFocusPolicy(Qt::FocusPolicy::TabFocus); m_iconButton->setIconSize({24, 24}); - m_iconButton->setIcon(QIcon(bluetoothIcon(true))); + m_iconButton->setIcon(QIcon::fromTheme("bluetooth")); m_iconButton->setCheckable(true); m_iconButton->setChecked(isOpen()); onPaletteChanged();