# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\logForm.ui' # # Created by: PyQt6 UI code generator 6.7.1 # # 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_logForm(object): def setupUi(self, logForm): logForm.setObjectName("logForm") logForm.resize(560, 819) logForm.setStyleSheet("background-color: rgba(255, 255, 255, 0);") self.verticalLayout_2 = QtWidgets.QVBoxLayout(logForm) self.verticalLayout_2.setContentsMargins(4, 12, 10, 10) self.verticalLayout_2.setObjectName("verticalLayout_2") self.lgWidget = QtWidgets.QWidget(parent=logForm) self.lgWidget.setStyleSheet(" QWidget {\n" " \n" " background-color: white; /* 子部件的样式 */\n" " border-radius: 9px;\n" " } \n" " QWidget QPushButton {\n" " subcontrol-origin: content; /* 设置子部件的原点为content */\n" " border-radius: 2px;\n" " }\n" "QWidget QPushButton:hover {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 鼠标悬停时的背景颜色为红色 */\n" " border-radius: 2px; /* 鼠标悬停时的边框为红色实线 */\n" "}\n" " QWidget QPushButton:pressed {\n" " subcontrol-origin: content;\n" " background-color: rgb(240, 240, 240); /* 按钮按下时的背景颜色为红色 */\n" " border-radius: 2px; /* 按钮按下时的边框为红色实线 */\n" "}\n" "QToolTip {\n" " background-color: #FFFFE0;\n" " color: black;\n" " border: 1px solid black;\n" " padding: 5px;\n" " border-radius: 3px;\n" " opacity: 200;\n" "}\n" "QComboBox {\n" " color: #000000\n" "}\n" "QComboBox::drop-down {\n" " border: none\n" "}\n" "QComboBox::down-arrow {\n" " image: url(:/resource/dropdown.svg);\n" " width: 18px;\n" " height: 18px;\n" "}") self.lgWidget.setObjectName("lgWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.lgWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 10) self.verticalLayout.setSpacing(0) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setContentsMargins(20, 18, 20, 16) self.horizontalLayout_7.setSpacing(15) self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_7 = QtWidgets.QLabel(parent=self.lgWidget) font = QtGui.QFont() font.setFamily("黑体") font.setPointSize(18) font.setBold(True) font.setWeight(75) self.label_7.setFont(font) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum) self.horizontalLayout_7.addItem(spacerItem) self.pbOpen = QtWidgets.QPushButton(parent=self.lgWidget) self.pbOpen.setMinimumSize(QtCore.QSize(21, 21)) self.pbOpen.setMaximumSize(QtCore.QSize(21, 21)) self.pbOpen.setText("") icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/resource/dir.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbOpen.setIcon(icon) self.pbOpen.setIconSize(QtCore.QSize(21, 21)) self.pbOpen.setObjectName("pbOpen") self.horizontalLayout_7.addWidget(self.pbOpen) self.pbClear = QtWidgets.QPushButton(parent=self.lgWidget) self.pbClear.setMinimumSize(QtCore.QSize(21, 21)) self.pbClear.setMaximumSize(QtCore.QSize(21, 21)) self.pbClear.setText("") icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/resource/clear.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbClear.setIcon(icon1) self.pbClear.setIconSize(QtCore.QSize(21, 21)) self.pbClear.setObjectName("pbClear") self.horizontalLayout_7.addWidget(self.pbClear) self.pbLock = QtWidgets.QPushButton(parent=self.lgWidget) self.pbLock.setMinimumSize(QtCore.QSize(21, 21)) self.pbLock.setMaximumSize(QtCore.QSize(21, 21)) self.pbLock.setToolTip("") self.pbLock.setText("") icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/resource/lock.svg"), QtGui.QIcon.Mode.Normal, QtGui.QIcon.State.Off) self.pbLock.setIcon(icon2) self.pbLock.setIconSize(QtCore.QSize(21, 21)) self.pbLock.setObjectName("pbLock") self.horizontalLayout_7.addWidget(self.pbLock) self.cbLevel = QtWidgets.QComboBox(parent=self.lgWidget) self.cbLevel.setStyleSheet("color: rgb(0, 0, 0);") self.cbLevel.setObjectName("cbLevel") self.cbLevel.addItem("") self.cbLevel.addItem("") self.cbLevel.addItem("") self.cbLevel.addItem("") self.horizontalLayout_7.addWidget(self.cbLevel) self.cbTag = QtWidgets.QComboBox(parent=self.lgWidget) self.cbTag.setMinimumSize(QtCore.QSize(150, 0)) self.cbTag.setStyleSheet("color: rgb(0, 0, 0);") self.cbTag.setObjectName("cbTag") self.cbTag.addItem("") self.horizontalLayout_7.addWidget(self.cbTag) self.verticalLayout.addLayout(self.horizontalLayout_7) self.plainTextEdit = QtWidgets.QPlainTextEdit(parent=self.lgWidget) self.plainTextEdit.setStyleSheet("QScrollBar:vertical {\n" " background: transparent; /* 滚动条背景透明[1,2](@ref) */\n" " width: 8px; /* 默认宽度 */\n" " border: none; /* 去除边框[2](@ref) */\n" " margin: 0px 0px 0px 0px; /* 边距清零 */\n" "}\n" "\n" "/* 水平滚动条 */\n" "QScrollBar:horizontal {\n" " background: transparent;\n" " height: 8px;\n" " border: none;\n" " margin: 0px 0px 0px 0px;\n" "}\n" "\n" "/* 滑块通用样式 */\n" "QScrollBar::handle:vertical,\n" "QScrollBar::handle:horizontal {\n" " background: #DDDDDD; /* 浅灰色滑块[1](@ref) */\n" " border-radius: 4px; /* 圆角效果[2](@ref) */\n" " min-height: 20px; /* 最小高度 */\n" " min-width: 20px; /* 最小宽度 */\n" " margin: 2px; /* 边距留白 */\n" "}\n" "\n" "/* 悬停时滑块样式 */\n" "QScrollBar::handle:vertical:hover,\n" "QScrollBar::handle:horizontal:hover {\n" " background: #AAAAAA; /* 加深颜色[1](@ref) */\n" "}\n" "\n" "/* 隐藏上下箭头 */\n" "QScrollBar::sub-line,\n" "QScrollBar::add-line {\n" " width: 0; /* 通过宽度清零隐藏箭头[1](@ref) */\n" " height: 0;\n" " border: none;\n" "}\n" "\n" "/* 滚动条背景区域样式 */\n" "QScrollBar::add-page:vertical,\n" "QScrollBar::sub-page:vertical,\n" "QScrollBar::add-page:horizontal,\n" "QScrollBar::sub-page:horizontal {\n" " background: rgba(0,0,0,0); /* 完全透明背景[3](@ref) */\n" "}") self.plainTextEdit.setMaximumBlockCount(10) self.plainTextEdit.setObjectName("plainTextEdit") self.verticalLayout.addWidget(self.plainTextEdit) self.verticalLayout_2.addWidget(self.lgWidget) self.retranslateUi(logForm) QtCore.QMetaObject.connectSlotsByName(logForm) def retranslateUi(self, logForm): _translate = QtCore.QCoreApplication.translate logForm.setWindowTitle(_translate("logForm", "Form")) self.label_7.setText(_translate("logForm", "日志")) self.pbOpen.setToolTip(_translate("logForm", "打开目录")) self.pbClear.setToolTip(_translate("logForm", "清空日志")) self.cbLevel.setItemText(0, _translate("logForm", "DEBUG")) self.cbLevel.setItemText(1, _translate("logForm", "INFO")) self.cbLevel.setItemText(2, _translate("logForm", "WARNING")) self.cbLevel.setItemText(3, _translate("logForm", "ERROR")) self.cbTag.setItemText(0, _translate("logForm", "ALL"))