Skip to content

Commit caecf09

Browse files
committed
Made custom colors grey-out when the Crazyflie disconnects
1 parent 186dc50 commit caecf09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cfclient/ui/tabs/ColorLEDTab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ def _add_custom_color_button(self):
629629
return
630630

631631
new_btn = QPushButton()
632-
new_btn.setStyleSheet(f"background-color: {color_hex};")
632+
new_btn.setStyleSheet(f"QPushButton {{ background-color: {color_hex}; }} QPushButton:disabled {{ background-color: #777777; }}")
633633
new_btn.setFixedSize(50, 30)
634634
new_btn.clicked.connect(self._on_color_button_clicked)
635635
new_btn.setContextMenuPolicy(Qt.ContextMenuPolicy.CustomContextMenu)

0 commit comments

Comments
 (0)