Clean up and fix minor issues with GUI extensions

This commit is contained in:
Veronica Berglyd Olsen
2023-11-29 22:21:56 +01:00
parent 78a75d5719
commit a6d346fcb6
7 changed files with 15 additions and 35 deletions
+1 -4
View File
@@ -65,10 +65,7 @@ class NPagedSideBar(QToolBar):
def setLabelColor(self, color: list | QColor) -> None:
"""Set the text color for the labels."""
if isinstance(color, list):
self._labelCol = QColor(*color)
elif isinstance(color, QColor):
self._labelCol = color
self._labelCol = color if isinstance(color, QColor) else QColor(*color)
return
def addSeparator(self) -> None: