added style to info label

This commit is contained in:
iLLiCiTiT 2021-12-08 17:27:27 +01:00
parent 703368c5b0
commit 9acdf2e338
3 changed files with 12 additions and 1 deletions

View file

@ -111,7 +111,9 @@
"focus-border": "#839caf",
"image-btn": "#bfccd6",
"image-btn-hover": "#189aea",
"image-btn-disabled": "#bfccd6"
"image-btn-disabled": "#bfccd6",
"version-exists": "#458056",
"version-not-found": "#ffc671"
}
}
}

View file

@ -1158,6 +1158,14 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
border-radius: 5px;
}
#OpenPypeVersionLabel[state="success"] {
color: {color:settings:version-exists};
}
#OpenPypeVersionLabel[state="warning"] {
color: {color:settings:version-not-found};
}
#ShadowWidget {
font-size: 36pt;
}

View file

@ -424,6 +424,7 @@ class OpenPypeVersionText(TextWidget):
def create_ui(self):
super(OpenPypeVersionText, self).create_ui()
info_widget = QtWidgets.QLabel("Latest", self)
info_widget.setObjectName("OpenPypeVersionLabel")
self.content_layout.addWidget(info_widget, 1)
self._info_widget = info_widget