315 @pyqtSlot() |
315 @pyqtSlot() |
316 def on_iconBarButton_clicked(self): |
316 def on_iconBarButton_clicked(self): |
317 """ |
317 """ |
318 Private slot to select the icon bar color. |
318 Private slot to select the icon bar color. |
319 """ |
319 """ |
320 colDlg = QColorDialog(self) |
320 colDlg = QColorDialog(parent=self) |
321 # Set current colour last to avoid conflicts with alpha channel |
321 # Set current colour last to avoid conflicts with alpha channel |
322 colDlg.setCurrentColor(self.__iconBarColor) |
322 colDlg.setCurrentColor(self.__iconBarColor) |
323 if colDlg.exec() == QDialog.DialogCode.Accepted: |
323 if colDlg.exec() == QDialog.DialogCode.Accepted: |
324 self.__iconBarColor = colDlg.selectedColor() |
324 self.__iconBarColor = colDlg.selectedColor() |
325 self.__setIconBarSamples() |
325 self.__setIconBarSamples() |