595 @type bool |
595 @type bool |
596 @param annotationSample reference to the annotation sample widget |
596 @param annotationSample reference to the annotation sample widget |
597 @type QLineEdit |
597 @type QLineEdit |
598 """ |
598 """ |
599 bgColorStr = f"Annotations{annotationType}Background" |
599 bgColorStr = f"Annotations{annotationType}Background" |
600 fgColorStr =f"Annotations{annotationType}Foreground" |
600 fgColorStr = f"Annotations{annotationType}Foreground" |
601 |
601 |
602 color = QColorDialog.getColor( |
602 color = QColorDialog.getColor( |
603 self.editorColours[bgColorStr] |
603 self.editorColours[bgColorStr] |
604 if isBackground |
604 if isBackground |
605 else self.editorColours[fgColorStr] |
605 else self.editorColours[fgColorStr] |