diff --git a/screens/setting/bluetooth_screen.py b/screens/setting/bluetooth_screen.py index 6978764..4ef8e27 100644 --- a/screens/setting/bluetooth_screen.py +++ b/screens/setting/bluetooth_screen.py @@ -69,7 +69,8 @@ class BluetoothDeviceCard(QFrame): # Кнопка удаления (крестик) self.remove_btn = QPushButton("✕") self.remove_btn.setObjectName("BluetoothRemoveBtn") - self.remove_btn.setFixedSize(36, 36) + self.remove_btn.setToolTip("Удалить устройство") + self.remove_btn.setFixedSize(40, 40) self.remove_btn.setCursor(Qt.PointingHandCursor) self.remove_btn.clicked.connect(self._on_remove) @@ -154,15 +155,18 @@ class BluetoothScreen(QWidget): self.btn_refresh.clicked.connect(self.refresh_list) self.btn_refresh.setVisible(False) # скрываем, обновляемся автоматически + # Кнопки подключить/отключить скрыты — управление через клик по карточке self.btn_connect = QPushButton("Подключить") self.btn_connect.setObjectName("BluetoothActionBtnPrimary") self.btn_connect.setMinimumHeight(56) self.btn_connect.clicked.connect(self._connect_last_selected) + self.btn_connect.setVisible(False) self.btn_disconnect = QPushButton("Отключить") self.btn_disconnect.setObjectName("BluetoothActionBtn") self.btn_disconnect.setMinimumHeight(56) self.btn_disconnect.clicked.connect(self._disconnect_last_selected) + self.btn_disconnect.setVisible(False) actions.addWidget(self.btn_visible, 1) actions.addWidget(self.btn_refresh, 1) diff --git a/themes/day.py b/themes/day.py index 71cb1f4..37d11ee 100644 --- a/themes/day.py +++ b/themes/day.py @@ -155,15 +155,15 @@ QScrollArea > QWidget > QWidget { background: transparent; } #BluetoothDeviceStatus { color: rgba(107,114,128,0.95); } #BluetoothStatusIndicator { background: transparent; } #BluetoothRemoveBtn { - background: transparent; - color: rgba(107,114,128,0.95); - border-radius: 18px; - font-size: 18px; + background: #fef2f2; + color: #dc2626; + border-radius: 20px; + font-size: 20px; font-weight: 700; } #BluetoothRemoveBtn:hover { - background: #FEE2E2; - color: #DC2626; + background: #dc2626; + color: #fef2f2; } #BluetoothActionBtn { background: #FFFFFF; diff --git a/themes/night.py b/themes/night.py index 44d083b..d0889e4 100644 --- a/themes/night.py +++ b/themes/night.py @@ -144,15 +144,15 @@ QScrollArea > QWidget > QWidget { background: transparent; } #BluetoothDeviceStatus { color: rgba(138,147,166,0.95); } #BluetoothStatusIndicator { background: transparent; } #BluetoothRemoveBtn { - background: transparent; - color: rgba(138,147,166,0.95); - border-radius: 18px; - font-size: 18px; + background: #3f1818; + color: #f87171; + border-radius: 20px; + font-size: 20px; font-weight: 700; } #BluetoothRemoveBtn:hover { - background: #B91C1C; - color: #FEE2E2; + background: #dc2626; + color: #fef2f2; } #BluetoothActionBtn { background: #141A22;