Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Local settings: Copyable studio paths #2349

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions openpype/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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};
}
3 changes: 2 additions & 1 deletion openpype/tools/settings/local_settings/apps_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ def __init__(self, group_label, variant_name, variant_entity, parent):

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):
Expand Down