from gettext import gettext as _

from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_PageAbout(object):
    def setupUi(self, PageAbout):
        PageAbout.setObjectName("PageAbout")
        PageAbout.resize(693, 620)
        PageAbout.setWindowTitle("")
        PageAbout.setStyleSheet("QPushButton{\\n}\n"
"QPushButton:pressed{\\n}")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(PageAbout)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.frame = QtWidgets.QFrame(parent=PageAbout)
        self.frame.setMinimumSize(QtCore.QSize(550, 0))
        self.frame.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Shadow.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setSpacing(9)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label = QtWidgets.QLabel(parent=self.frame)
        font = QtGui.QFont()
        font.setPointSize(11)
        font.setBold(True)
        self.label.setFont(font)
        self.label.setObjectName("label")
        self.verticalLayout_2.addWidget(self.label)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.desc_app = QtWidgets.QLabel(parent=self.frame)
        self.desc_app.setStyleSheet("font: 16pt;")
        self.desc_app.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.desc_app.setObjectName("desc_app")
        self.gridLayout.addWidget(self.desc_app, 2, 0, 1, 1)
        self.version_app = QtWidgets.QLabel(parent=self.frame)
        self.version_app.setStyleSheet("font: 16pt;")
        self.version_app.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.version_app.setObjectName("version_app")
        self.gridLayout.addWidget(self.version_app, 3, 0, 1, 1)
        self.name_app = QtWidgets.QLabel(parent=self.frame)
        font = QtGui.QFont()
        font.setFamily("13")
        font.setPointSize(18)
        font.setBold(False)
        font.setItalic(False)
        self.name_app.setFont(font)
        self.name_app.setStyleSheet("font: 18pt bold;")
        self.name_app.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.name_app.setObjectName("name_app")
        self.gridLayout.addWidget(self.name_app, 1, 0, 1, 1)
        self.icon = QtWidgets.QPushButton(parent=self.frame)
        self.icon.setMinimumSize(QtCore.QSize(92, 92))
        self.icon.setMaximumSize(QtCore.QSize(16777215, 16777215))
        self.icon.setStyleSheet("background-color: transparent;\n"
"border-color: transparent;")
        self.icon.setText("")
        self.icon.setIconSize(QtCore.QSize(92, 92))
        self.icon.setCheckable(False)
        self.icon.setDefault(False)
        self.icon.setFlat(True)
        self.icon.setObjectName("icon")
        self.gridLayout.addWidget(self.icon, 0, 0, 1, 1)
        self.verticalLayout_2.addLayout(self.gridLayout)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_2.addItem(spacerItem1)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.btnLeanMore = QtWidgets.QPushButton(parent=self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnLeanMore.sizePolicy().hasHeightForWidth())
        self.btnLeanMore.setSizePolicy(sizePolicy)
        self.btnLeanMore.setObjectName("btnLeanMore")
        self.horizontalLayout_2.addWidget(self.btnLeanMore)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem2)
        self.btnReportIssue = QtWidgets.QPushButton(parent=self.frame)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.btnReportIssue.sizePolicy().hasHeightForWidth())
        self.btnReportIssue.setSizePolicy(sizePolicy)
        self.btnReportIssue.setObjectName("btnReportIssue")
        self.horizontalLayout_2.addWidget(self.btnReportIssue)
        self.verticalLayout_2.addLayout(self.horizontalLayout_2)
        self.horizontalLayout.addWidget(self.frame)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout.addItem(spacerItem3)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        spacerItem4 = QtWidgets.QSpacerItem(20, 295, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout_3.addItem(spacerItem4)

        self.retranslateUi(PageAbout)
        QtCore.QMetaObject.connectSlotsByName(PageAbout)

    def retranslateUi(self, PageAbout):
        
        self.label.setText(_("About"))
        self.desc_app.setText(_("WhatsApp Web for Linux"))
        self.version_app.setText(_("Version {id} ({version_type}) - {package}"))
        self.name_app.setText(_("ZapZap"))
        self.btnLeanMore.setText(_("Learn more"))
        self.btnReportIssue.setText(_("Report issue"))


if __name__ == "__main__":
    import sys
    app = QtWidgets.QApplication(sys.argv)
    PageAbout = QtWidgets.QWidget()
    ui = Ui_PageAbout()
    ui.setupUi(PageAbout)
    PageAbout.show()
    sys.exit(app.exec())
