mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix styles
This commit is contained in:
parent
9eb9c62318
commit
5ca7b53c11
2 changed files with 31 additions and 7 deletions
|
|
@ -1027,24 +1027,44 @@ VariantInputsWidget QToolButton {
|
|||
border-left: 1px solid {color:border};
|
||||
}
|
||||
|
||||
#AssetNameInputButton {
|
||||
#AssetNameInputWidget {
|
||||
background: {color:bg-inputs};
|
||||
border: 1px solid {color:border};
|
||||
border-radius: 0.3em;
|
||||
}
|
||||
|
||||
#AssetNameInputWidget QWidget {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
#AssetNameInputButton {
|
||||
border-bottom-left-radius: 0px;
|
||||
border-top-left-radius: 0px;
|
||||
padding: 0px;
|
||||
qproperty-iconSize: 11px 11px;
|
||||
border-left: 1px solid {color:border};
|
||||
border-right: none;
|
||||
border-top: none;
|
||||
border-bottom: none;
|
||||
}
|
||||
#AssetNameInputButton:disabled {
|
||||
background: {color:bg-inputs-disabled};
|
||||
}
|
||||
|
||||
#AssetNameInput {
|
||||
border-bottom-right-radius: 0px;
|
||||
border-top-right-radius: 0px;
|
||||
border-right: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
#TasksCombobox[state="invalid"], #AssetNameInput[state="invalid"], #AssetNameInputButton[state="invalid"] {
|
||||
#AssetNameInputWidget:hover {
|
||||
border-color: {color:border-hover};
|
||||
}
|
||||
#AssetNameInputWidget:focus{
|
||||
border-color: {color:border-focus};
|
||||
}
|
||||
#AssetNameInputWidget:disabled {
|
||||
background: {color:bg-inputs-disabled};
|
||||
}
|
||||
|
||||
#TasksCombobox[state="invalid"], #AssetNameInputWidget[state="invalid"], #AssetNameInputButton[state="invalid"] {
|
||||
border-color: {color:publisher:error};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -345,8 +345,11 @@ class AssetsField(BaseClickableFrame):
|
|||
|
||||
def __init__(self, controller, parent):
|
||||
super(AssetsField, self).__init__(parent)
|
||||
self.setObjectName("AssetNameInputWidget")
|
||||
|
||||
dialog = AssetsDialog(controller, self)
|
||||
# Don't use 'self' for parent!
|
||||
# - this widget has specific styles
|
||||
dialog = AssetsDialog(controller, parent)
|
||||
|
||||
name_input = ClickableLineEdit(self)
|
||||
name_input.setObjectName("AssetNameInput")
|
||||
|
|
@ -363,6 +366,7 @@ class AssetsField(BaseClickableFrame):
|
|||
layout.addWidget(name_input, 1)
|
||||
layout.addWidget(icon_btn, 0)
|
||||
|
||||
# Make sure all widgets are vertically extended to highest widget
|
||||
for widget in (
|
||||
name_input,
|
||||
icon_btn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue