mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
feat(resolve): update creator input widget
This commit is contained in:
parent
7465d8cb73
commit
ccadf98c50
2 changed files with 19 additions and 2 deletions
|
|
@ -22,10 +22,16 @@ QPushButton:hover {
|
|||
|
||||
QSpinBox {
|
||||
background-color: #ffffff;
|
||||
padding: 5;
|
||||
}
|
||||
|
||||
QLineEdit {
|
||||
background-color: #ffffff;
|
||||
padding: 5;
|
||||
}
|
||||
|
||||
QLabel {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#PypeMenu {
|
||||
|
|
|
|||
|
|
@ -4,13 +4,24 @@ from pype.hosts import resolve
|
|||
from avalon.vendor import qargparse
|
||||
from pype.api import config
|
||||
|
||||
from Qt import QtWidgets
|
||||
from Qt import QtWidgets, QtCore
|
||||
|
||||
|
||||
class Universal_widget(QtWidgets.QDialog):
|
||||
def __init__(self, widgets, parent=None):
|
||||
super(Universal_widget, self).__init__(parent)
|
||||
|
||||
self.setObjectName("PypeCreatorInput")
|
||||
|
||||
self.setWindowFlags(
|
||||
QtCore.Qt.Window
|
||||
| QtCore.Qt.CustomizeWindowHint
|
||||
| QtCore.Qt.WindowTitleHint
|
||||
| QtCore.Qt.WindowCloseButtonHint
|
||||
| QtCore.Qt.WindowStaysOnTopHint
|
||||
)
|
||||
self.setWindowTitle("CreatorInput")
|
||||
|
||||
# Where inputs and labels are set
|
||||
content_widget = QtWidgets.QWidget(self)
|
||||
content_layout = QtWidgets.QFormLayout(content_widget)
|
||||
|
|
@ -48,7 +59,7 @@ class Universal_widget(QtWidgets.QDialog):
|
|||
|
||||
# Main layout of the dialog
|
||||
main_layout = QtWidgets.QVBoxLayout(self)
|
||||
main_layout.setContentsMargins(0, 0, 0, 0)
|
||||
main_layout.setContentsMargins(10, 20, 10, 20)
|
||||
main_layout.setSpacing(0)
|
||||
|
||||
main_layout.addWidget(content_widget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue