608 self.__setSampleStyleSheet( |
608 self.__setSampleStyleSheet( |
609 annotationSample, |
609 annotationSample, |
610 self.editorColours[fgColorStr] if isBackground else color, |
610 self.editorColours[fgColorStr] if isBackground else color, |
611 color if isBackground else self.editorColours[bgColorStr], |
611 color if isBackground else self.editorColours[bgColorStr], |
612 ) |
612 ) |
613 self.editorColours[ |
613 self.editorColours[bgColorStr if isBackground else fgColorStr] = color |
614 bgColorStr if isBackground else fgColorStr |
|
615 ] = color |
|
616 |
614 |
617 @pyqtSlot() |
615 @pyqtSlot() |
618 def on_annotationsWarningFgButton_clicked(self): |
616 def on_annotationsWarningFgButton_clicked(self): |
619 """ |
617 """ |
620 Private slot to set the foreground colour of the warning annotations. |
618 Private slot to set the foreground colour of the warning annotations. |