mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
style the input to look like disabled
This commit is contained in:
parent
4306aa0184
commit
3bd94db78a
2 changed files with 15 additions and 0 deletions
|
|
@ -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};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue