disable old button

This commit is contained in:
cheykrym 2026-04-01 00:48:13 +03:00
parent 2b6d0172df
commit 5db98103c0
3 changed files with 17 additions and 13 deletions

View File

@ -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)

View File

@ -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;

View File

@ -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;