mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-03 00:15:21 +00:00
fix: 修复蓝牙列表字体颜色未设置高亮
蓝牙列表字体颜色未设置高亮,对应控件设置字体颜色为高亮即可 Log: 修复蓝牙列表字体颜色未设置高亮 Bug: https://pms.uniontech.com/zentao/bug-view-77248.html Change-Id: Ib1874e0d20e57e190ae02197eb15192bf9e67045
This commit is contained in:
parent
deeb523fea
commit
84eb6a0ee0
@ -66,6 +66,7 @@ void BluetoothDeviceItem::initActionList()
|
||||
m_standarditem->setActionList(Qt::RightEdge, {m_stateAction});
|
||||
m_standarditem->setActionList(Qt::LeftEdge, {m_labelAction});
|
||||
|
||||
m_labelAction->setTextColorRole(DPalette::BrightText);
|
||||
m_labelAction->setText(m_device->alias());
|
||||
updateDeviceState(m_device->state());
|
||||
updateIconTheme(DGuiApplicationHelper::instance()->themeType());
|
||||
|
@ -45,6 +45,9 @@ SettingLabel::SettingLabel(QString text, QWidget *parent)
|
||||
, m_label(new DLabel(text, this))
|
||||
, m_layout(new QHBoxLayout(this))
|
||||
{
|
||||
QPalette palette;
|
||||
palette.setColor(QPalette::WindowText, QPalette::BrightText);
|
||||
m_label->setPalette(palette);
|
||||
setAccessibleName("BluetoothSettingLabel");
|
||||
setContentsMargins(0, 0, 0, 0);
|
||||
m_layout->setMargin(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user