use object name for separator color instead of hardcoded color in code

This commit is contained in:
iLLiCiTiT 2021-06-02 12:14:41 +02:00
parent deb77e8b00
commit cf10f50229
2 changed files with 6 additions and 1 deletions

View file

@ -481,6 +481,11 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
background: none;
}
/* Globally used names */
#Separator {
background: {color:bg-menu-separator};
}
#IconBtn {}
/* Project Manager stylesheets */

View file

@ -295,7 +295,7 @@ class PypeInfoSubWidget(QtWidgets.QWidget):
def _create_separator(self):
separator_widget = QtWidgets.QWidget(self)
separator_widget.setStyleSheet("background: #222222;")
separator_widget.setObjectName("Separator")
separator_widget.setMinimumHeight(2)
separator_widget.setMaximumHeight(2)
return separator_widget