From a82fcb39e2d0239749b8f90772d5a18be0bb44d6 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Wed, 1 Apr 2026 01:25:06 +0300 Subject: [PATCH] update design bl --- screens/setting/bluetooth_screen.py | 3 ++- themes/day.py | 8 ++++++-- themes/night.py | 8 ++++++-- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/screens/setting/bluetooth_screen.py b/screens/setting/bluetooth_screen.py index 4802031..520c59d 100644 --- a/screens/setting/bluetooth_screen.py +++ b/screens/setting/bluetooth_screen.py @@ -141,7 +141,8 @@ class BluetoothScreen(QWidget): self.list = QListWidget() self.list.setObjectName("BluetoothList") self.list.setSpacing(8) - self.list.setSelectionMode(QListWidget.NoSelection) # убираем выделение, т.к. карточки кликабельны + self.list.setSelectionMode(QListWidget.NoSelection) + self.list.setFocusPolicy(Qt.NoFocus) QScroller.scroller(self.list.viewport()).grabGesture( self.list.viewport(), diff --git a/themes/day.py b/themes/day.py index 490e485..19a212f 100644 --- a/themes/day.py +++ b/themes/day.py @@ -138,14 +138,18 @@ QScrollArea > QWidget > QWidget { background: transparent; } border: 1px solid #E5E7EB; border-radius: 12px; padding: 6px; + outline: 0; } #BluetoothList::item { padding: 0; border-radius: 10px; background: transparent; + border: 0; + outline: 0; } -#BluetoothList::item:hover { background: transparent; } -#BluetoothList::item:selected { background: transparent; } +#BluetoothList::item:hover { background: transparent; border: 0; outline: 0; } +#BluetoothList::item:selected { background: transparent; border: 0; outline: 0; } +#BluetoothList::item:focus { background: transparent; border: 0; outline: 0; } #BluetoothDeviceCard { background: #FFFFFF; border-radius: 14px; diff --git a/themes/night.py b/themes/night.py index 0e470ca..a7be749 100644 --- a/themes/night.py +++ b/themes/night.py @@ -128,14 +128,18 @@ QScrollArea > QWidget > QWidget { background: transparent; } border: 1px solid #1B2330; border-radius: 12px; padding: 6px; + outline: 0; } #BluetoothList::item { padding: 0; border-radius: 10px; background: transparent; + border: 0; + outline: 0; } -#BluetoothList::item:hover { background: transparent; } -#BluetoothList::item:selected { background: transparent; } +#BluetoothList::item:hover { background: transparent; border: 0; outline: 0; } +#BluetoothList::item:selected { background: transparent; border: 0; outline: 0; } +#BluetoothList::item:focus { background: transparent; border: 0; outline: 0; } #BluetoothDeviceCard { background: #141A22; border-radius: 14px;