mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
Merge pull request #2349 from pypeclub/feature/OP-2061_Copyable-paths-in-local-settings
Local settings: Copyable studio paths
This commit is contained in:
commit
2aaeda4de2
2 changed files with 16 additions and 1 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,8 +64,9 @@ 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.setEnabled(False)
|
||||
path_widget.setReadOnly(True)
|
||||
content_layout.addWidget(path_widget)
|
||||
|
||||
def update_local_settings(self, value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue