38 if parent is not None and isinstance(parent, QAbstractScrollArea): |
38 if parent is not None and isinstance(parent, QAbstractScrollArea): |
39 self.setMaster(parent) |
39 self.setMaster(parent) |
40 |
40 |
41 def __setSliderColor(self): |
41 def __setSliderColor(self): |
42 """ |
42 """ |
43 Set the slider color depending upon the background color. |
43 Private method to set the slider color depending upon the background |
|
44 color. |
44 """ |
45 """ |
45 if self.__backgroundColor.toHsv().value() < 128: |
46 if self.__backgroundColor.toHsv().value() < 128: |
46 # dark background, use white slider |
47 # dark background, use white slider |
47 self.__sliderColor = Qt.white |
48 self.__sliderColor = Qt.white |
48 else: |
49 else: |