66 @param checked state of the button |
66 @param checked state of the button |
67 @type bool |
67 @type bool |
68 """ |
68 """ |
69 self.__inverted = checked |
69 self.__inverted = checked |
70 |
70 |
|
71 # TODO: change to use style sheets |
71 palette = self.iconView.palette() |
72 palette = self.iconView.palette() |
72 if self.__inverted: |
73 if self.__inverted: |
73 palette.setBrush(QPalette.ColorRole.Base, self.__textBrush) |
74 palette.setBrush(QPalette.ColorRole.Base, self.__textBrush) |
74 palette.setBrush(QPalette.ColorRole.Text, self.__baseBrush) |
75 palette.setBrush(QPalette.ColorRole.Text, self.__baseBrush) |
75 else: |
76 else: |