153 lines
5.2 KiB
Python
153 lines
5.2 KiB
Python
# Form implementation generated from reading ui file 'c:\Qt6Pro\TG-PlatformPlus\ui\taskListForm.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_taskListForm(object):
|
|
def setupUi(self, taskListForm):
|
|
taskListForm.setObjectName("taskListForm")
|
|
taskListForm.resize(511, 373)
|
|
taskListForm.setStyleSheet("/* 垂直滚动条 */\n"
|
|
"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.verticalLayout = QtWidgets.QVBoxLayout(taskListForm)
|
|
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
|
|
self.verticalLayout.setObjectName("verticalLayout")
|
|
self.treeView = QtWidgets.QTreeView(parent=taskListForm)
|
|
font = QtGui.QFont()
|
|
font.setFamily("Arial")
|
|
font.setPointSize(9)
|
|
font.setBold(False)
|
|
font.setItalic(False)
|
|
font.setWeight(50)
|
|
self.treeView.setFont(font)
|
|
self.treeView.setStyleSheet(" QWidget {\n"
|
|
" background-color: white; /* 子部件的样式 */\n"
|
|
" border-radius: 1px;\n"
|
|
" } \n"
|
|
"QTreeView {\n"
|
|
" background-color: #ffffff; /* 设置表格视图的背景颜色为浅灰色 */\n"
|
|
" alternate-background-color: #F8F9FA;\n"
|
|
" selection-color: #262626; /* 设置选中行的文本颜色为白色 */\n"
|
|
"}\n"
|
|
"QTreeView::item:selected {\n"
|
|
" background-color: #D9D9D9;\n"
|
|
" \n"
|
|
"}\n"
|
|
"QHeaderView::section:horizontal {\n"
|
|
" background-color: #F7F7F7; /* 设置表头的背景颜色为浅灰色 */\n"
|
|
" color: #8C8C8C; /* 设置表头的文本颜色为黑色 */\n"
|
|
" border: 0; /* 移除表头的边框 */\n"
|
|
" padding: 4px; /* 设置表头的内边距 */\n"
|
|
"}\n"
|
|
"\n"
|
|
"QHeaderView::section:vertical {\n"
|
|
" border: 0; /* 移除表头的边框 */\n"
|
|
"}\n"
|
|
"/* 垂直滚动条 */\n"
|
|
"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.treeView.setObjectName("treeView")
|
|
self.verticalLayout.addWidget(self.treeView)
|
|
|
|
self.retranslateUi(taskListForm)
|
|
QtCore.QMetaObject.connectSlotsByName(taskListForm)
|
|
|
|
def retranslateUi(self, taskListForm):
|
|
_translate = QtCore.QCoreApplication.translate
|
|
taskListForm.setWindowTitle(_translate("taskListForm", "Form"))
|