1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'settings.ui'
##
## Created by: Qt User Interface Compiler version 6.4.2
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QAbstractButton, QApplication, QComboBox, QDialog,
QDialogButtonBox, QFormLayout, QLabel, QSizePolicy,
QSlider, QVBoxLayout, QWidget)
from . import resources_rc
class Ui_SettingsDialog(object):
def setupUi(self, SettingsDialog):
if not SettingsDialog.objectName():
SettingsDialog.setObjectName(u"SettingsDialog")
SettingsDialog.setWindowModality(Qt.ApplicationModal)
SettingsDialog.resize(452, 156)
sizePolicy = QSizePolicy(QSizePolicy.Expanding, QSizePolicy.Expanding)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(SettingsDialog.sizePolicy().hasHeightForWidth())
SettingsDialog.setSizePolicy(sizePolicy)
icon = QIcon()
icon.addFile(u":/icons/icons/gear.png", QSize(), QIcon.Normal, QIcon.Off)
SettingsDialog.setWindowIcon(icon)
self.verticalLayout = QVBoxLayout(SettingsDialog)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setContentsMargins(9, -1, -1, -1)
self.verticalLayout_2 = QVBoxLayout()
self.verticalLayout_2.setObjectName(u"verticalLayout_2")
self.formLayout = QFormLayout()
self.formLayout.setObjectName(u"formLayout")
self.formLayout.setHorizontalSpacing(30)
self.formLayout.setVerticalSpacing(6)
self.label = QLabel(SettingsDialog)
self.label.setObjectName(u"label")
self.formLayout.setWidget(0, QFormLayout.LabelRole, self.label)
self.label_streamdeck = QLabel(SettingsDialog)
self.label_streamdeck.setObjectName(u"label_streamdeck")
self.formLayout.setWidget(0, QFormLayout.FieldRole, self.label_streamdeck)
self.label_brightness = QLabel(SettingsDialog)
self.label_brightness.setObjectName(u"label_brightness")
self.formLayout.setWidget(1, QFormLayout.LabelRole, self.label_brightness)
self.brightness = QSlider(SettingsDialog)
self.brightness.setObjectName(u"brightness")
self.brightness.setOrientation(Qt.Horizontal)
self.formLayout.setWidget(1, QFormLayout.FieldRole, self.brightness)
self.label_dim = QLabel(SettingsDialog)
self.label_dim.setObjectName(u"label_dim")
self.formLayout.setWidget(2, QFormLayout.LabelRole, self.label_dim)
self.dim = QComboBox(SettingsDialog)
self.dim.setObjectName(u"dim")
self.formLayout.setWidget(2, QFormLayout.FieldRole, self.dim)
self.label_brightness_dimmed = QLabel(SettingsDialog)
self.label_brightness_dimmed.setObjectName(u"label_brightness_dimmed")
self.formLayout.setWidget(3, QFormLayout.LabelRole, self.label_brightness_dimmed)
self.brightness_dimmed = QSlider(SettingsDialog)
self.brightness_dimmed.setObjectName(u"brightness_dimmed")
self.brightness_dimmed.setOrientation(Qt.Horizontal)
self.formLayout.setWidget(3, QFormLayout.FieldRole, self.brightness_dimmed)
self.verticalLayout_2.addLayout(self.formLayout)
self.verticalLayout.addLayout(self.verticalLayout_2)
self.buttonBox = QDialogButtonBox(SettingsDialog)
self.buttonBox.setObjectName(u"buttonBox")
self.buttonBox.setOrientation(Qt.Horizontal)
self.buttonBox.setStandardButtons(QDialogButtonBox.Cancel|QDialogButtonBox.Ok)
self.buttonBox.setCenterButtons(False)
self.verticalLayout.addWidget(self.buttonBox)
self.retranslateUi(SettingsDialog)
self.buttonBox.accepted.connect(SettingsDialog.accept)
self.buttonBox.rejected.connect(SettingsDialog.reject)
QMetaObject.connectSlotsByName(SettingsDialog)
# setupUi
def retranslateUi(self, SettingsDialog):
SettingsDialog.setWindowTitle(QCoreApplication.translate("SettingsDialog", u"Stream Deck Settings", None))
self.label.setText(QCoreApplication.translate("SettingsDialog", u"Stream Deck:", None))
self.label_streamdeck.setText("")
self.label_brightness.setText(QCoreApplication.translate("SettingsDialog", u"Brightness:", None))
self.label_dim.setText(QCoreApplication.translate("SettingsDialog", u"Auto dim after:", None))
self.dim.setCurrentText("")
self.label_brightness_dimmed.setText(QCoreApplication.translate("SettingsDialog", u"Dim to %:", None))
# retranslateUi
|