style the input to look like disabled

This commit is contained in:
iLLiCiTiT 2021-12-01 11:02:01 +01:00
parent 4306aa0184
commit 3bd94db78a
2 changed files with 15 additions and 0 deletions

View file

@ -1194,3 +1194,17 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
#ImageButton:disabled {
background: {color:bg-buttons-disabled};
}
/* Input field that looks like disabled
- QAbstractSpinBox, QLineEdit, QPlainTextEdit, QTextEdit
- usage: QLineEdit that is not editable but has selectable color
*/
#LikeDisabledInput {
background: {color:bg-inputs-disabled};
}
#LikeDisabledInput:hover {
border-color: {color:border};
}
#LikeDisabledInput:focus {
border-color: {color:border};
}

View file

@ -64,6 +64,7 @@ class AppVariantWidget(QtWidgets.QWidget):
for item in studio_executables:
path_widget = QtWidgets.QLineEdit(content_widget)
path_widget.setObjectName("LikeDisabledInput")
path_widget.setText(item.value)
path_widget.setReadOnly(True)
content_layout.addWidget(path_widget)