# Form implementation generated from reading ui file 'src/ui/main.ui'
#
# Created by: PyQt6 UI code generator 6.9.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(543, 400)
        icon = QtGui.QIcon.fromTheme("thinkfan-ui")
        MainWindow.setWindowIcon(icon)
        self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.cpuTempGroup = QtWidgets.QGroupBox(parent=self.centralwidget)
        self.cpuTempGroup.setObjectName("cpuTempGroup")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.cpuTempGroup)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.tempGridLayout = QtWidgets.QGridLayout()
        self.tempGridLayout.setObjectName("tempGridLayout")
        self.verticalLayout_2.addLayout(self.tempGridLayout)
        self.verticalLayout.addWidget(self.cpuTempGroup)
        self.fanInfoGroup = QtWidgets.QGroupBox(parent=self.centralwidget)
        self.fanInfoGroup.setObjectName("fanInfoGroup")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.fanInfoGroup)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.fanGridLayout = QtWidgets.QGridLayout()
        self.fanGridLayout.setObjectName("fanGridLayout")
        self.verticalLayout_3.addLayout(self.fanGridLayout)
        self.verticalLayout.addWidget(self.fanInfoGroup)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.slider = QtWidgets.QSlider(parent=self.centralwidget)
        self.slider.setMaximum(7)
        self.slider.setPageStep(1)
        self.slider.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.slider.setObjectName("slider")
        self.horizontalLayout.addWidget(self.slider)
        self.slider_value = QtWidgets.QLabel(parent=self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(20)
        self.slider_value.setFont(font)
        self.slider_value.setObjectName("slider_value")
        self.horizontalLayout.addWidget(self.slider_value)
        self.button_set = QtWidgets.QPushButton(parent=self.centralwidget)
        self.button_set.setObjectName("button_set")
        self.horizontalLayout.addWidget(self.button_set)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.button_auto = QtWidgets.QPushButton(parent=self.centralwidget)
        self.button_auto.setObjectName("button_auto")
        self.horizontalLayout_2.addWidget(self.button_auto)
        self.button_full = QtWidgets.QPushButton(parent=self.centralwidget)
        self.button_full.setObjectName("button_full")
        self.horizontalLayout_2.addWidget(self.button_full)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.versionLabel = QtWidgets.QLabel(parent=self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(8)
        self.versionLabel.setFont(font)
        self.versionLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.versionLabel.setObjectName("versionLabel")
        self.verticalLayout.addWidget(self.versionLabel)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(parent=MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 543, 22))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(parent=self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuAbout = QtWidgets.QMenu(parent=self.menubar)
        self.menuAbout.setObjectName("menuAbout")
        MainWindow.setMenuBar(self.menubar)
        self.actionClose = QtGui.QAction(parent=MainWindow)
        self.actionClose.setObjectName("actionClose")
        self.actionExit = QtGui.QAction(parent=MainWindow)
        self.actionExit.setObjectName("actionExit")
        self.actionGitHub = QtGui.QAction(parent=MainWindow)
        self.actionGitHub.setObjectName("actionGitHub")
        self.actionAbout_Qt = QtGui.QAction(parent=MainWindow)
        self.actionAbout_Qt.setObjectName("actionAbout_Qt")
        self.actionAbout = QtGui.QAction(parent=MainWindow)
        self.actionAbout.setObjectName("actionAbout")
        self.menuFile.addAction(self.actionClose)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuAbout.addAction(self.actionGitHub)
        self.menuAbout.addSeparator()
        self.menuAbout.addAction(self.actionAbout_Qt)
        self.menuAbout.addAction(self.actionAbout)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuAbout.menuAction())

        self.retranslateUi(MainWindow)
        self.slider.valueChanged['int'].connect(self.slider_value.setNum) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "ThinkFan UI"))
        self.cpuTempGroup.setTitle(_translate("MainWindow", "CPU Temp Info"))
        self.fanInfoGroup.setTitle(_translate("MainWindow", "FAN Info"))
        self.slider_value.setText(_translate("MainWindow", "0"))
        self.button_set.setText(_translate("MainWindow", "set"))
        self.button_auto.setText(_translate("MainWindow", "auto (recommended)"))
        self.button_full.setText(_translate("MainWindow", "FULL THROTTLE"))
        self.versionLabel.setText(_translate("MainWindow", "TextLabel"))
        self.menuFile.setTitle(_translate("MainWindow", "File"))
        self.menuAbout.setTitle(_translate("MainWindow", "About"))
        self.actionClose.setText(_translate("MainWindow", "Close"))
        self.actionExit.setText(_translate("MainWindow", "Exit"))
        self.actionGitHub.setText(_translate("MainWindow", "GitHub"))
        self.actionAbout_Qt.setText(_translate("MainWindow", "About Qt"))
        self.actionAbout.setText(_translate("MainWindow", "About"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    MainWindow = QtWidgets.QMainWindow()
    ui = Ui_MainWindow()
    ui.setupUi(MainWindow)
    MainWindow.show()
    sys.exit(app.exec())
