Skip to content

Commit 6e4aa2f

Browse files
committed
style: adjust bluetooth adapter item layout margins
1. Set contents margins to 0 for myDeviceLayout to remove extra spacing 2. Reduced spacing between myDeviceWidget and otherDeviceListView from 5 to 4 pixels 3. These changes improve visual consistency and reduce unnecessary whitespace 4. Maintains proper spacing while optimizing the UI layout style: 调整蓝牙适配器项布局边距 1. 将 myDeviceLayout 的内容边距设置为 0 以移除额外间距 2. 将 myDeviceWidget 和 otherDeviceListView 之间的间距从 5 像素减少到 4 像素 3. 这些更改提高了视觉一致性并减少了不必要的空白 4. 在优化 UI 布局的同时保持适当的间距 Pms: BUG-311109
1 parent 731064d commit 6e4aa2f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/dde-dock/bluetooth/componments/bluetoothadapteritem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ void BluetoothAdapterItem::initUi()
360360
m_myDeviceListView->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
361361
QVBoxLayout *myDeviceLayout = new QVBoxLayout(m_myDeviceWidget);
362362
myDeviceLayout->setSpacing(0);
363+
myDeviceLayout->setContentsMargins(0, 0, 0, 0);
363364
m_myDeviceLabel->setContentsMargins(10, 0, 0, 2);
364365
DFontSizeManager::instance()->bind(m_myDeviceLabel, DFontSizeManager::T10);
365366
myDeviceLayout->addWidget(m_myDeviceLabel);
@@ -381,7 +382,7 @@ void BluetoothAdapterItem::initUi()
381382

382383
mainLayout->addLayout(m_adapterLayout);
383384
mainLayout->addWidget(m_myDeviceWidget);
384-
mainLayout->addSpacing(5);
385+
mainLayout->addSpacing(4);
385386
mainLayout->addWidget(m_otherDeviceListView);
386387
mainLayout->addStretch();
387388

0 commit comments

Comments
 (0)