mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
use class name over object name for formatting
This commit is contained in:
parent
bf48d9e804
commit
8a9d815278
2 changed files with 15 additions and 10 deletions
|
|
@ -740,22 +740,22 @@ OverlayMessageWidget QWidget {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Hinted Line Edit */
|
/* Hinted Line Edit */
|
||||||
#HintedLineEditInput {
|
HintedLineEditInput {
|
||||||
border-radius: 0.2em;
|
border-radius: 0.2em;
|
||||||
border-top-right-radius: 0px;
|
border-top-right-radius: 0px;
|
||||||
border-bottom-right-radius: 0px;
|
border-bottom-right-radius: 0px;
|
||||||
border: 1px solid {color:border};
|
border: 1px solid {color:border};
|
||||||
}
|
}
|
||||||
#HintedLineEditInput:hover {
|
HintedLineEditInput:hover {
|
||||||
border-color: {color:border-hover};
|
border-color: {color:border-hover};
|
||||||
}
|
}
|
||||||
#HintedLineEditInput:focus{
|
HintedLineEditInput:focus{
|
||||||
border-color: {color:border-focus};
|
border-color: {color:border-focus};
|
||||||
}
|
}
|
||||||
#HintedLineEditInput:disabled {
|
HintedLineEditInput:disabled {
|
||||||
background: {color:bg-inputs-disabled};
|
background: {color:bg-inputs-disabled};
|
||||||
}
|
}
|
||||||
#HintedLineEditButton {
|
HintedLineEditButton {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0.2em;
|
border-radius: 0.2em;
|
||||||
border-bottom-left-radius: 0px;
|
border-bottom-left-radius: 0px;
|
||||||
|
|
|
||||||
|
|
@ -121,6 +121,14 @@ def get_down_arrow_icon() -> QtGui.QIcon:
|
||||||
return icon
|
return icon
|
||||||
|
|
||||||
|
|
||||||
|
class HintedLineEditInput(PlaceholderLineEdit):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
class HintedLineEditButton(QtWidgets.QPushButton):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class HintedLineEdit(QtWidgets.QWidget):
|
class HintedLineEdit(QtWidgets.QWidget):
|
||||||
SEPARATORS: Set[str] = {"---", "---separator---"}
|
SEPARATORS: Set[str] = {"---", "---separator---"}
|
||||||
returnPressed = QtCore.Signal()
|
returnPressed = QtCore.Signal()
|
||||||
|
|
@ -134,11 +142,8 @@ class HintedLineEdit(QtWidgets.QWidget):
|
||||||
):
|
):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
|
|
||||||
text_input = PlaceholderLineEdit(self)
|
text_input = HintedLineEditInput(self)
|
||||||
options_button = QtWidgets.QPushButton(self)
|
options_button = HintedLineEditButton(self)
|
||||||
|
|
||||||
text_input.setObjectName("HintedLineEditInput")
|
|
||||||
options_button.setObjectName("HintedLineEditButton")
|
|
||||||
options_button.setIcon(get_down_arrow_icon())
|
options_button.setIcon(get_down_arrow_icon())
|
||||||
|
|
||||||
main_layout = QtWidgets.QHBoxLayout(self)
|
main_layout = QtWidgets.QHBoxLayout(self)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue