mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fix: 任务栏快捷面板的电池插件图标显示异常 (#822)
蓝牙插件和电源插件属于快捷面板区域插件, 不应该返回空的图标 Log: 修复任务栏快捷面板的电池插件图标显示异常的问题 Resolve: https://github.com/linuxdeepin/developer-center/issues/4004 Influence: 任务栏快捷面板显示
This commit is contained in:
parent
ec5c447264
commit
b853cfa40e
@ -126,9 +126,6 @@ void BluetoothPlugin::refreshIcon(const QString &itemKey)
|
|||||||
|
|
||||||
QIcon BluetoothPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
|
QIcon BluetoothPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
|
||||||
{
|
{
|
||||||
if (dockPart == DockPart::QuickPanel)
|
|
||||||
return QIcon();
|
|
||||||
|
|
||||||
QString iconFile;
|
QString iconFile;
|
||||||
if (themeType == DGuiApplicationHelper::ColorType::DarkType)
|
if (themeType == DGuiApplicationHelper::ColorType::DarkType)
|
||||||
iconFile = ":/bluetooth-active-symbolic.svg";
|
iconFile = ":/bluetooth-active-symbolic.svg";
|
||||||
|
@ -129,11 +129,6 @@ void PowerPlugin::setSortKey(const QString &itemKey, const int order)
|
|||||||
|
|
||||||
QIcon PowerPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
|
QIcon PowerPlugin::icon(const DockPart &dockPart, DGuiApplicationHelper::ColorType themeType)
|
||||||
{
|
{
|
||||||
// 快捷面板使用m_quickPanel
|
|
||||||
if (dockPart == DockPart::QuickPanel) {
|
|
||||||
return QIcon();
|
|
||||||
}
|
|
||||||
|
|
||||||
const QPixmap pixmap = m_powerStatusWidget->getBatteryIcon(themeType);
|
const QPixmap pixmap = m_powerStatusWidget->getBatteryIcon(themeType);
|
||||||
static QIcon batteryIcon;
|
static QIcon batteryIcon;
|
||||||
batteryIcon.detach();
|
batteryIcon.detach();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user