(self, image_path, toolbar=None)
| 692 | """ |
| 693 | |
| 694 | def __init__(self, image_path, toolbar=None): |
| 695 | super().__init__() |
| 696 | self.image_path = image_path |
| 697 | self.toolbar = toolbar |
| 698 | |
| 699 | def _is_dark_mode(self): |
| 700 | return self.toolbar.palette().color(self.toolbar.backgroundRole()).value() < 128 |