201 @pyqtSlot() |
201 @pyqtSlot() |
202 def on_iconBarButton_clicked(self): |
202 def on_iconBarButton_clicked(self): |
203 """ |
203 """ |
204 Private slot to select the icon bar color. |
204 Private slot to select the icon bar color. |
205 """ |
205 """ |
206 colDlg = QColorDialog(self) |
206 colDlg = QColorDialog(parent=self) |
207 # Set current colour last to avoid conflicts with alpha channel |
207 # Set current colour last to avoid conflicts with alpha channel |
208 colDlg.setCurrentColor(self.__iconBarColor) |
208 colDlg.setCurrentColor(self.__iconBarColor) |
209 if colDlg.exec() == QDialog.DialogCode.Accepted: |
209 if colDlg.exec() == QDialog.DialogCode.Accepted: |
210 self.__iconBarColor = colDlg.selectedColor() |
210 self.__iconBarColor = colDlg.selectedColor() |
211 self.__setIconBarSamples() |
211 self.__setIconBarSamples() |