mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-02 15:45:21 +00:00
fix: 深色系统主题下任务栏蓝牙列表的蓝牙名称显示异常
根据系统主题的类型去调整蓝牙名称的显示 Log: 修复深色系统主题下任务栏蓝牙列表的蓝牙名称显示异常的问题 Bug: https://pms.uniontech.com/bug-view-138011.html Influence: 任务栏蓝牙名称显示 Change-Id: I697b7304157652085dc0e8fe0ab6e407575128c8
This commit is contained in:
parent
696432d0d2
commit
5ce91454c2
@ -185,10 +185,17 @@ void BluetoothAdapterItem::onAdapterNameChanged(const QString name)
|
||||
|
||||
void BluetoothAdapterItem::updateIconTheme(DGuiApplicationHelper::ColorType type)
|
||||
{
|
||||
if (type == DGuiApplicationHelper::LightType)
|
||||
QPalette widgetBackgroud;
|
||||
if (type == DGuiApplicationHelper::LightType) {
|
||||
m_refreshBtn->setRotateIcon(":/wireless/resources/wireless/refresh_dark.svg");
|
||||
else
|
||||
widgetBackgroud.setColor(QPalette::Background, QColor(255, 255, 255, 0.03 * 255));
|
||||
} else {
|
||||
widgetBackgroud.setColor(QPalette::Background, QColor(0, 0, 0, 0.03 * 255));
|
||||
m_refreshBtn->setRotateIcon(":/wireless/resources/wireless/refresh.svg");
|
||||
}
|
||||
|
||||
m_adapterLabel->label()->setAutoFillBackground(true);
|
||||
m_adapterLabel->label()->setPalette(widgetBackgroud);
|
||||
}
|
||||
|
||||
QSize BluetoothAdapterItem::sizeHint() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user