修改部分ui

This commit is contained in:
shuaikangzhou
2024-01-25 22:28:31 +08:00
parent ed38ad7728
commit 3ae6d4e6f2
5 changed files with 120 additions and 160 deletions

View File

@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'chatUi.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@@ -33,15 +33,7 @@ class Ui_Form(object):
self.lineEdit = QtWidgets.QLineEdit(Form)
self.lineEdit.setMinimumSize(QtCore.QSize(200, 30))
self.lineEdit.setMaximumSize(QtCore.QSize(200, 16777215))
self.lineEdit.setStyleSheet("background:transparent;\n"
" border-radius:5px;\n"
" border-top: 0px solid #b2e281;\n"
" border-bottom: 0px solid #b2e281;\n"
" border-right: 0px solid #b2e281;\n"
" border-left: 0px solid #b2e281;\n"
" border-style:outset;\n"
" background-color:rgb(248,249,252);\n"
" ")
self.lineEdit.setStyleSheet("")
self.lineEdit.setCursorMoveStyle(QtCore.Qt.VisualMoveStyle)
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout.addWidget(self.lineEdit)

View File

@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'contactUi.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
# Created by: PyQt5 UI code generator 5.15.10
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@@ -32,15 +32,7 @@ class Ui_Form(object):
self.lineEdit = QtWidgets.QLineEdit(Form)
self.lineEdit.setMinimumSize(QtCore.QSize(200, 30))
self.lineEdit.setMaximumSize(QtCore.QSize(200, 16777215))
self.lineEdit.setStyleSheet("background:transparent;\n"
" border-radius:5px;\n"
" border-top: 0px solid #b2e281;\n"
" border-bottom: 0px solid #b2e281;\n"
" border-right: 0px solid #b2e281;\n"
" border-left: 0px solid #b2e281;\n"
" border-style:outset;\n"
" background-color:rgb(248,249,252);\n"
" ")
self.lineEdit.setStyleSheet("")
self.lineEdit.setCursorMoveStyle(QtCore.Qt.VisualMoveStyle)
self.lineEdit.setObjectName("lineEdit")
self.horizontalLayout.addWidget(self.lineEdit)

View File

@@ -35,6 +35,15 @@ except ModuleNotFoundError:
raise ValueError('Python版本错误:Python>=3.10,仅支持3.10、3.11、3.12')
# 美化样式表
Stylesheet = """
QMessageBox QPushButton{
background-color: rgb(250,252,253);
border-radius: 5px;
padding: 8px;
border-right: 2px solid #888888; /* 按钮边框2px宽白色 */
border-bottom: 2px solid #888888; /* 按钮边框2px宽白色 */
border-left: 1px solid #ffffff; /* 按钮边框2px宽白色 */
border-top: 1px solid #ffffff; /* 按钮边框2px宽白色 */
}
QPushButton{
background-color: rgb(238,244,249);
border-radius: 5px;
@@ -187,6 +196,21 @@ QComboBox::down-arrow:on
height: 16px;
image: url(:/icons/icons/up.svg);
}
QLineEdit
{
background:transparent;
border-radius:15px;
border-top: 0px solid #b2e281;
border-bottom: 1px solid rgb(227,228,222);
border-right: 1px solid rgb(227,228,222);
border-left: 0px solid #b2e281;
border-style:outset;
background-color:rgb(247,248,252);
}
QLineEdit:hover
{
background-color:rgb(238,241,248);
}
"""
'''
@@ -214,14 +238,15 @@ QComboBox QAbstractItemView
/*选中每一项高度*/
QComboBox QAbstractItemView::item
{
height: 25px;
height: 25px;
}
/*选中每一项的字体颜色和背景颜色*/
QComboBox QAbstractItemView::item:selected
{
color: rgb(31,163,246);
background-color: rgb(90,90,90);
background-color: rgb(90,90,90);
}
'''