mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 10:52:18 +08:00
修改部分UI
This commit is contained in:
parent
576981e7b2
commit
52b52abf05
@ -4,23 +4,19 @@
|
|||||||
<option name="autoReloadType" value="SELECTIVE" />
|
<option name="autoReloadType" value="SELECTIVE" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="84e65474-7da9-466d-baf3-cc88dde3ffdd" name="变更" comment="加快打开速度">
|
<list default="true" id="84e65474-7da9-466d-baf3-cc88dde3ffdd" name="变更" comment="修改导入路径,方便打包成exe">
|
||||||
<change afterPath="$PROJECT_DIR$/app/DataBase/database.py" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/DataBase/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/DataBase/__init__.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/ImageBox/ui.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/ImageBox/ui.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/DataBase/data.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/DataBase/data.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/Icon.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/Icon.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/DataBase/output.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/DataBase/output.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/MyComponents/Button_Contact.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/MyComponents/Button_Contact.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/ICON.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/Icon.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/chat/chatUi.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/chat/chatUi.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/__init__.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/chat/chatUi.ui" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/chat/chatUi.ui" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/chat/chat.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/chat/chat.py" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contact.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contact.py" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contactInfo.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contactInfo.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contactInfo.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contactInfo.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/contact/userinfo/userinfo.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/userinfo/userinfo.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contactUi.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contactUi.py" afterDir="false" />
|
||||||
|
<change beforePath="$PROJECT_DIR$/app/Ui/contact/contactUi.ui" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/contact/contactUi.ui" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/Ui/mainview.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainview.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/mainview.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainview.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/__init__.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/__init__.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/mainwindow.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainwindow.py" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/app/person.py" beforeDir="false" afterPath="$PROJECT_DIR$/app/person.py" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/app/Ui/mainwindow.ui" beforeDir="false" afterPath="$PROJECT_DIR$/app/Ui/mainwindow.ui" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/main.py" beforeDir="false" afterPath="$PROJECT_DIR$/main.py" afterDir="false" />
|
|
||||||
<change beforePath="$PROJECT_DIR$/main.spec" beforeDir="false" afterPath="$PROJECT_DIR$/main.spec" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -529,7 +525,14 @@
|
|||||||
<option name="project" value="LOCAL" />
|
<option name="project" value="LOCAL" />
|
||||||
<updated>1699367814847</updated>
|
<updated>1699367814847</updated>
|
||||||
</task>
|
</task>
|
||||||
<option name="localTasksCounter" value="46" />
|
<task id="LOCAL-00046" summary="修改导入路径,方便打包成exe">
|
||||||
|
<created>1699373594568</created>
|
||||||
|
<option name="number" value="00046" />
|
||||||
|
<option name="presentableId" value="LOCAL-00046" />
|
||||||
|
<option name="project" value="LOCAL" />
|
||||||
|
<updated>1699373594568</updated>
|
||||||
|
</task>
|
||||||
|
<option name="localTasksCounter" value="47" />
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
<component name="UnknownFeatures">
|
<component name="UnknownFeatures">
|
||||||
@ -565,7 +568,6 @@
|
|||||||
</option>
|
</option>
|
||||||
</component>
|
</component>
|
||||||
<component name="VcsManagerConfiguration">
|
<component name="VcsManagerConfiguration">
|
||||||
<MESSAGE value="update1" />
|
|
||||||
<MESSAGE value="导出word文档" />
|
<MESSAGE value="导出word文档" />
|
||||||
<MESSAGE value="聊天统计" />
|
<MESSAGE value="聊天统计" />
|
||||||
<MESSAGE value="优化加载页面" />
|
<MESSAGE value="优化加载页面" />
|
||||||
@ -590,7 +592,8 @@
|
|||||||
<MESSAGE value="修改联系人视图架构" />
|
<MESSAGE value="修改联系人视图架构" />
|
||||||
<MESSAGE value="修改部分UI" />
|
<MESSAGE value="修改部分UI" />
|
||||||
<MESSAGE value="加快打开速度" />
|
<MESSAGE value="加快打开速度" />
|
||||||
<option name="LAST_COMMIT_MESSAGE" value="加快打开速度" />
|
<MESSAGE value="修改导入路径,方便打包成exe" />
|
||||||
|
<option name="LAST_COMMIT_MESSAGE" value="修改导入路径,方便打包成exe" />
|
||||||
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" />
|
<option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="true" />
|
||||||
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
<option name="REFORMAT_BEFORE_PROJECT_COMMIT" value="true" />
|
||||||
</component>
|
</component>
|
||||||
@ -604,7 +607,7 @@
|
|||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
||||||
<url>file://$PROJECT_DIR$/main.py</url>
|
<url>file://$PROJECT_DIR$/main.py</url>
|
||||||
<line>23</line>
|
<line>22</line>
|
||||||
<option name="timeStamp" value="8" />
|
<option name="timeStamp" value="8" />
|
||||||
</line-breakpoint>
|
</line-breakpoint>
|
||||||
</breakpoints>
|
</breakpoints>
|
||||||
|
@ -31,7 +31,7 @@ class ImageBox(QWidget):
|
|||||||
# print(img_size)
|
# print(img_size)
|
||||||
img_size = self.scaled_img.size()
|
img_size = self.scaled_img.size()
|
||||||
x = min(500, max((1000 - img_size.width()) // 2, 0))
|
x = min(500, max((1000 - img_size.width()) // 2, 0))
|
||||||
y = min(300, max((600 - img_size.height()) // 2-60, 0))
|
y = min(300, max((600 - img_size.height()) // 2 - 60, 0))
|
||||||
# print(x,y)
|
# print(x,y)
|
||||||
self.point = QPoint(x, y)
|
self.point = QPoint(x, y)
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ class MainDemo(QWidget):
|
|||||||
|
|
||||||
self.setWindowTitle("Image Viewer")
|
self.setWindowTitle("Image Viewer")
|
||||||
self.setFixedSize(1000, 600)
|
self.setFixedSize(1000, 600)
|
||||||
self.setWindowIcon(QIcon('./app/data/icon.png'))
|
self.setWindowIcon(QIcon('./app/data/icons/logo.svg'))
|
||||||
self.zoom_in = QPushButton("")
|
self.zoom_in = QPushButton("")
|
||||||
self.zoom_in.clicked.connect(self.large_click)
|
self.zoom_in.clicked.connect(self.large_click)
|
||||||
self.zoom_in.setFixedSize(30, 30)
|
self.zoom_in.setFixedSize(30, 30)
|
||||||
|
@ -7,3 +7,6 @@ class Icon:
|
|||||||
Default_avatar = QIcon(Default_avatar_path)
|
Default_avatar = QIcon(Default_avatar_path)
|
||||||
Output = QIcon('./app/data/icons/output.svg')
|
Output = QIcon('./app/data/icons/output.svg')
|
||||||
Back = QIcon('./app/data/icons/back.svg')
|
Back = QIcon('./app/data/icons/back.svg')
|
||||||
|
ToDocx = QIcon('app/data/icons/word.svg')
|
||||||
|
ToCSV = QIcon('app/data/icons/csv.svg')
|
||||||
|
ToHTML = QIcon('app/data/icons/html.svg')
|
||||||
|
@ -48,6 +48,7 @@ class ContactUi(QtWidgets.QPushButton):
|
|||||||
self.gridLayout1.setObjectName("gridLayout1")
|
self.gridLayout1.setObjectName("gridLayout1")
|
||||||
self.label_time = QtWidgets.QLabel(self.layoutWidget)
|
self.label_time = QtWidgets.QLabel(self.layoutWidget)
|
||||||
font = QtGui.QFont()
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
font.setPointSize(8)
|
font.setPointSize(8)
|
||||||
self.label_time.setFont(font)
|
self.label_time.setFont(font)
|
||||||
self.label_time.setLayoutDirection(QtCore.Qt.RightToLeft)
|
self.label_time.setLayoutDirection(QtCore.Qt.RightToLeft)
|
||||||
@ -56,13 +57,15 @@ class ContactUi(QtWidgets.QPushButton):
|
|||||||
self.gridLayout1.addWidget(self.label_time, 0, 2, 1, 1)
|
self.gridLayout1.addWidget(self.label_time, 0, 2, 1, 1)
|
||||||
self.label_remark = QtWidgets.QLabel(self.layoutWidget)
|
self.label_remark = QtWidgets.QLabel(self.layoutWidget)
|
||||||
font = QtGui.QFont()
|
font = QtGui.QFont()
|
||||||
font.setFamily("Adobe 黑体 Std R")
|
font.setFamily("微软雅黑")
|
||||||
font.setPointSize(10)
|
font.setPointSize(10)
|
||||||
|
font.setBold(True)
|
||||||
self.label_remark.setFont(font)
|
self.label_remark.setFont(font)
|
||||||
self.label_remark.setObjectName("label_remark")
|
self.label_remark.setObjectName("label_remark")
|
||||||
self.gridLayout1.addWidget(self.label_remark, 0, 1, 1, 1)
|
self.gridLayout1.addWidget(self.label_remark, 0, 1, 1, 1)
|
||||||
self.label_msg = QtWidgets.QLabel(self.layoutWidget)
|
self.label_msg = QtWidgets.QLabel(self.layoutWidget)
|
||||||
font = QtGui.QFont()
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
font.setPointSize(8)
|
font.setPointSize(8)
|
||||||
self.label_msg.setFont(font)
|
self.label_msg.setFont(font)
|
||||||
self.label_msg.setObjectName("label_msg")
|
self.label_msg.setObjectName("label_msg")
|
||||||
|
@ -23,7 +23,7 @@ class Ui_Form(object):
|
|||||||
self.scrollArea_2.setEnabled(True)
|
self.scrollArea_2.setEnabled(True)
|
||||||
self.scrollArea_2.setMaximumSize(QtCore.QSize(325, 150000))
|
self.scrollArea_2.setMaximumSize(QtCore.QSize(325, 150000))
|
||||||
self.scrollArea_2.setAutoFillBackground(False)
|
self.scrollArea_2.setAutoFillBackground(False)
|
||||||
self.scrollArea_2.setFrameShape(QtWidgets.QFrame.WinPanel)
|
self.scrollArea_2.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||||
self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Raised)
|
self.scrollArea_2.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||||
self.scrollArea_2.setMidLineWidth(0)
|
self.scrollArea_2.setMidLineWidth(0)
|
||||||
self.scrollArea_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
self.scrollArea_2.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
||||||
@ -151,5 +151,7 @@ class Ui_Form(object):
|
|||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'SimSun\'; font-size:15pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'SimSun\'; font-size:15pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p></body></html>"))
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p>\n"
|
||||||
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"> </p></body></html>"))
|
||||||
self.btn_sendMsg_2.setText(_translate("Form", "发送"))
|
self.btn_sendMsg_2.setText(_translate("Form", "发送"))
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::WinPanel</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
@ -235,6 +235,8 @@
|
|||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
|
||||||
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p>
|
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p>
|
||||||
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
|
||||||
|
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p>
|
||||||
|
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px;
|
||||||
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p></body></html>
|
margin-right:0px; -qt-block-indent:0; text-indent:0px;"> </p></body></html>
|
||||||
</string>
|
</string>
|
||||||
</property>
|
</property>
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
from PyQt5.QtCore import *
|
from PyQt5.QtCore import *
|
||||||
from PyQt5.QtGui import *
|
|
||||||
from PyQt5.QtWidgets import *
|
from PyQt5.QtWidgets import *
|
||||||
|
|
||||||
from app import person
|
from app import person
|
||||||
@ -39,9 +38,9 @@ class ContactInfo(QWidget, Ui_Form):
|
|||||||
self.stackedWidget.addWidget(self.view_emotion)
|
self.stackedWidget.addWidget(self.view_emotion)
|
||||||
self.stackedWidget.setCurrentWidget(self.view_userinfo)
|
self.stackedWidget.setCurrentWidget(self.view_userinfo)
|
||||||
menu = QMenu(self)
|
menu = QMenu(self)
|
||||||
self.toDocxAct = QAction(QIcon('app/data/icons/word.svg'), '导出Docx', self)
|
self.toDocxAct = QAction(Icon.ToDocx, '导出Docx', self)
|
||||||
self.toCSVAct = QAction(QIcon('app/data/icons/csv.svg'), '导出CSV', self)
|
self.toCSVAct = QAction(Icon.ToCSV, '导出CSV', self)
|
||||||
self.toHtmlAct = QAction(QIcon('app/data/icons/html.svg'), '导出HTML', self)
|
self.toHtmlAct = QAction(Icon.ToHTML, '导出HTML', self)
|
||||||
self.toolButton_output.setPopupMode(QToolButton.MenuButtonPopup)
|
self.toolButton_output.setPopupMode(QToolButton.MenuButtonPopup)
|
||||||
self.toolButton_output.clicked.connect(self.toolButton_show)
|
self.toolButton_output.clicked.connect(self.toolButton_show)
|
||||||
menu.addAction(self.toDocxAct)
|
menu.addAction(self.toDocxAct)
|
||||||
|
@ -39,12 +39,7 @@ class Ui_Form(object):
|
|||||||
self.label_remark.setObjectName("label_remark")
|
self.label_remark.setObjectName("label_remark")
|
||||||
self.horizontalLayout_3.addWidget(self.label_remark)
|
self.horizontalLayout_3.addWidget(self.label_remark)
|
||||||
self.btn_analysis = QtWidgets.QPushButton(self.frame)
|
self.btn_analysis = QtWidgets.QPushButton(self.frame)
|
||||||
self.btn_analysis.setStyleSheet("QPushButton:hover {\n"
|
self.btn_analysis.setStyleSheet("")
|
||||||
" background-color: rgb(240, 240, 240);\n"
|
|
||||||
"}\n"
|
|
||||||
"QPushButton{\n"
|
|
||||||
" background-color:transparent;\n"
|
|
||||||
"}")
|
|
||||||
self.btn_analysis.setFlat(True)
|
self.btn_analysis.setFlat(True)
|
||||||
self.btn_analysis.setObjectName("btn_analysis")
|
self.btn_analysis.setObjectName("btn_analysis")
|
||||||
self.horizontalLayout_3.addWidget(self.btn_analysis)
|
self.horizontalLayout_3.addWidget(self.btn_analysis)
|
||||||
|
@ -79,13 +79,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="btn_analysis">
|
<widget class="QPushButton" name="btn_analysis">
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton:hover {
|
<string notr="true"/>
|
||||||
background-color: rgb(240, 240, 240);
|
|
||||||
}
|
|
||||||
QPushButton{
|
|
||||||
background-color:transparent;
|
|
||||||
}
|
|
||||||
</string>
|
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>统计信息</string>
|
<string>统计信息</string>
|
||||||
|
@ -34,7 +34,7 @@ class Ui_Dialog(object):
|
|||||||
self.scrollArea.setMinimumSize(QtCore.QSize(325, 0))
|
self.scrollArea.setMinimumSize(QtCore.QSize(325, 0))
|
||||||
self.scrollArea.setMaximumSize(QtCore.QSize(325, 150000))
|
self.scrollArea.setMaximumSize(QtCore.QSize(325, 150000))
|
||||||
self.scrollArea.setAutoFillBackground(False)
|
self.scrollArea.setAutoFillBackground(False)
|
||||||
self.scrollArea.setFrameShape(QtWidgets.QFrame.WinPanel)
|
self.scrollArea.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||||
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Raised)
|
self.scrollArea.setFrameShadow(QtWidgets.QFrame.Raised)
|
||||||
self.scrollArea.setMidLineWidth(0)
|
self.scrollArea.setMidLineWidth(0)
|
||||||
self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
self.scrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
|
||||||
|
@ -80,7 +80,7 @@
|
|||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::WinPanel</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Raised</enum>
|
<enum>QFrame::Raised</enum>
|
||||||
|
@ -52,6 +52,11 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
self.lastView = None
|
self.lastView = None
|
||||||
self.show_avatar()
|
self.show_avatar()
|
||||||
self.init_ui()
|
self.init_ui()
|
||||||
|
# self.state_lable = QLabel(self)
|
||||||
|
# self.state_lable.raise_()
|
||||||
|
# pixmap = QPixmap('./app/data/icons/default_avatar.svg').scaled(32, 32) # 按指定路径找到图片
|
||||||
|
# self.state_lable.setPixmap(pixmap)
|
||||||
|
# self.state_lable.setText("T")
|
||||||
# 创建右键菜单函数
|
# 创建右键菜单函数
|
||||||
|
|
||||||
def init_ui(self):
|
def init_ui(self):
|
||||||
@ -90,6 +95,7 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
self.last_btn.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}"
|
self.last_btn.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}"
|
||||||
"QPushButton:hover{background-color: rgb(209,209,209);}\n")
|
"QPushButton:hover{background-color: rgb(209,209,209);}\n")
|
||||||
self.last_btn = self.btn_chat
|
self.last_btn = self.btn_chat
|
||||||
|
# self.state_lable.setGeometry(20, 300, 32, 32)
|
||||||
self.stackedWidget.setCurrentIndex(0)
|
self.stackedWidget.setCurrentIndex(0)
|
||||||
self.chatView.showChat()
|
self.chatView.showChat()
|
||||||
|
|
||||||
@ -104,6 +110,8 @@ class MainWinController(QMainWindow, mainwindow.Ui_MainWindow):
|
|||||||
self.last_btn.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}"
|
self.last_btn.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}"
|
||||||
"QPushButton:hover{background-color: rgb(209,209,209);}\n")
|
"QPushButton:hover{background-color: rgb(209,209,209);}\n")
|
||||||
self.last_btn = self.btn_contact
|
self.last_btn = self.btn_contact
|
||||||
|
# geometry = self.btn_chat.geometry()
|
||||||
|
# self.state_lable.setGeometry(geometry)
|
||||||
self.stackedWidget.setCurrentIndex(1)
|
self.stackedWidget.setCurrentIndex(1)
|
||||||
|
|
||||||
def myInfo(self):
|
def myInfo(self):
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
# run again. Do not edit this file unless you know what you are doing.
|
# run again. Do not edit this file unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
from PyQt5 import QtCore, QtWidgets
|
from PyQt5 import QtCore, QtGui, QtWidgets
|
||||||
|
|
||||||
|
|
||||||
class Ui_MainWindow(object):
|
class Ui_MainWindow(object):
|
||||||
@ -25,8 +25,8 @@ class Ui_MainWindow(object):
|
|||||||
self.frame_info.setMinimumSize(QtCore.QSize(80, 500))
|
self.frame_info.setMinimumSize(QtCore.QSize(80, 500))
|
||||||
self.frame_info.setMaximumSize(QtCore.QSize(80, 16777215))
|
self.frame_info.setMaximumSize(QtCore.QSize(80, 16777215))
|
||||||
self.frame_info.setStyleSheet("background-color:rgb(240,240,240)")
|
self.frame_info.setStyleSheet("background-color:rgb(240,240,240)")
|
||||||
self.frame_info.setFrameShape(QtWidgets.QFrame.StyledPanel)
|
self.frame_info.setFrameShape(QtWidgets.QFrame.NoFrame)
|
||||||
self.frame_info.setFrameShadow(QtWidgets.QFrame.Sunken)
|
self.frame_info.setFrameShadow(QtWidgets.QFrame.Plain)
|
||||||
self.frame_info.setObjectName("frame_info")
|
self.frame_info.setObjectName("frame_info")
|
||||||
self.verticalLayoutWidget = QtWidgets.QWidget(self.frame_info)
|
self.verticalLayoutWidget = QtWidgets.QWidget(self.frame_info)
|
||||||
self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 190, 77, 271))
|
self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 190, 77, 271))
|
||||||
@ -37,30 +37,46 @@ class Ui_MainWindow(object):
|
|||||||
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
self.verticalLayout_2.setObjectName("verticalLayout_2")
|
||||||
self.btn_chat = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
self.btn_chat = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
||||||
self.btn_chat.setMinimumSize(QtCore.QSize(0, 60))
|
self.btn_chat.setMinimumSize(QtCore.QSize(0, 60))
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
self.btn_chat.setFont(font)
|
||||||
self.btn_chat.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
self.btn_chat.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
||||||
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
||||||
" ")
|
" ")
|
||||||
|
self.btn_chat.setFlat(True)
|
||||||
self.btn_chat.setObjectName("btn_chat")
|
self.btn_chat.setObjectName("btn_chat")
|
||||||
self.verticalLayout_2.addWidget(self.btn_chat)
|
self.verticalLayout_2.addWidget(self.btn_chat)
|
||||||
self.btn_contact = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
self.btn_contact = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
||||||
self.btn_contact.setMinimumSize(QtCore.QSize(0, 60))
|
self.btn_contact.setMinimumSize(QtCore.QSize(0, 60))
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
self.btn_contact.setFont(font)
|
||||||
self.btn_contact.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
self.btn_contact.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
||||||
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
||||||
" ")
|
" ")
|
||||||
|
self.btn_contact.setFlat(True)
|
||||||
self.btn_contact.setObjectName("btn_contact")
|
self.btn_contact.setObjectName("btn_contact")
|
||||||
self.verticalLayout_2.addWidget(self.btn_contact)
|
self.verticalLayout_2.addWidget(self.btn_contact)
|
||||||
self.btn_myinfo = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
self.btn_myinfo = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
||||||
self.btn_myinfo.setMinimumSize(QtCore.QSize(60, 60))
|
self.btn_myinfo.setMinimumSize(QtCore.QSize(60, 60))
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
self.btn_myinfo.setFont(font)
|
||||||
self.btn_myinfo.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
self.btn_myinfo.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
||||||
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
||||||
" ")
|
" ")
|
||||||
|
self.btn_myinfo.setFlat(True)
|
||||||
self.btn_myinfo.setObjectName("btn_myinfo")
|
self.btn_myinfo.setObjectName("btn_myinfo")
|
||||||
self.verticalLayout_2.addWidget(self.btn_myinfo)
|
self.verticalLayout_2.addWidget(self.btn_myinfo)
|
||||||
self.btn_about = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
self.btn_about = QtWidgets.QPushButton(self.verticalLayoutWidget)
|
||||||
self.btn_about.setMinimumSize(QtCore.QSize(60, 60))
|
self.btn_about.setMinimumSize(QtCore.QSize(60, 60))
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
self.btn_about.setFont(font)
|
||||||
self.btn_about.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
self.btn_about.setStyleSheet("QPushButton {background-color: rgb(240,240,240);}\n"
|
||||||
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
" QPushButton:hover{background-color: rgb(209,209,209);}\n"
|
||||||
" ")
|
" ")
|
||||||
|
self.btn_about.setFlat(True)
|
||||||
self.btn_about.setObjectName("btn_about")
|
self.btn_about.setObjectName("btn_about")
|
||||||
self.verticalLayout_2.addWidget(self.btn_about)
|
self.verticalLayout_2.addWidget(self.btn_about)
|
||||||
self.verticalLayout_2.setStretch(0, 1)
|
self.verticalLayout_2.setStretch(0, 1)
|
||||||
@ -72,6 +88,11 @@ class Ui_MainWindow(object):
|
|||||||
self.myavatar.setObjectName("myavatar")
|
self.myavatar.setObjectName("myavatar")
|
||||||
self.horizontalLayout.addWidget(self.frame_info)
|
self.horizontalLayout.addWidget(self.frame_info)
|
||||||
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
|
self.stackedWidget = QtWidgets.QStackedWidget(self.centralwidget)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
font.setBold(False)
|
||||||
|
font.setWeight(50)
|
||||||
|
self.stackedWidget.setFont(font)
|
||||||
self.stackedWidget.setObjectName("stackedWidget")
|
self.stackedWidget.setObjectName("stackedWidget")
|
||||||
self.page_chat = QtWidgets.QWidget()
|
self.page_chat = QtWidgets.QWidget()
|
||||||
self.page_chat.setObjectName("page_chat")
|
self.page_chat.setObjectName("page_chat")
|
||||||
@ -93,6 +114,9 @@ class Ui_MainWindow(object):
|
|||||||
self.menu_F = QtWidgets.QMenu(self.menubar)
|
self.menu_F = QtWidgets.QMenu(self.menubar)
|
||||||
self.menu_F.setObjectName("menu_F")
|
self.menu_F.setObjectName("menu_F")
|
||||||
self.menu = QtWidgets.QMenu(self.menubar)
|
self.menu = QtWidgets.QMenu(self.menubar)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("微软雅黑")
|
||||||
|
self.menu.setFont(font)
|
||||||
self.menu.setObjectName("menu")
|
self.menu.setObjectName("menu")
|
||||||
self.menu_2 = QtWidgets.QMenu(self.menubar)
|
self.menu_2 = QtWidgets.QMenu(self.menubar)
|
||||||
self.menu_2.setObjectName("menu_2")
|
self.menu_2.setObjectName("menu_2")
|
||||||
@ -105,6 +129,9 @@ class Ui_MainWindow(object):
|
|||||||
self.action_4 = QtWidgets.QAction(MainWindow)
|
self.action_4 = QtWidgets.QAction(MainWindow)
|
||||||
self.action_4.setObjectName("action_4")
|
self.action_4.setObjectName("action_4")
|
||||||
self.action = QtWidgets.QAction(MainWindow)
|
self.action = QtWidgets.QAction(MainWindow)
|
||||||
|
font = QtGui.QFont()
|
||||||
|
font.setFamily("Microsoft YaHei UI")
|
||||||
|
self.action.setFont(font)
|
||||||
self.action.setObjectName("action")
|
self.action.setObjectName("action")
|
||||||
self.menu_F.addSeparator()
|
self.menu_F.addSeparator()
|
||||||
self.menu_F.addSeparator()
|
self.menu_F.addSeparator()
|
||||||
|
@ -48,10 +48,10 @@
|
|||||||
<string notr="true">background-color:rgb(240,240,240)</string>
|
<string notr="true">background-color:rgb(240,240,240)</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShape">
|
<property name="frameShape">
|
||||||
<enum>QFrame::StyledPanel</enum>
|
<enum>QFrame::NoFrame</enum>
|
||||||
</property>
|
</property>
|
||||||
<property name="frameShadow">
|
<property name="frameShadow">
|
||||||
<enum>QFrame::Sunken</enum>
|
<enum>QFrame::Plain</enum>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="verticalLayoutWidget">
|
<widget class="QWidget" name="verticalLayoutWidget">
|
||||||
<property name="geometry">
|
<property name="geometry">
|
||||||
@ -74,6 +74,11 @@
|
|||||||
<height>60</height>
|
<height>60</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
||||||
QPushButton:hover{background-color: rgb(209,209,209);}
|
QPushButton:hover{background-color: rgb(209,209,209);}
|
||||||
@ -82,6 +87,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>聊天</string>
|
<string>聊天</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -92,6 +100,11 @@
|
|||||||
<height>60</height>
|
<height>60</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
||||||
QPushButton:hover{background-color: rgb(209,209,209);}
|
QPushButton:hover{background-color: rgb(209,209,209);}
|
||||||
@ -100,6 +113,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>联系人</string>
|
<string>联系人</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -110,6 +126,11 @@
|
|||||||
<height>60</height>
|
<height>60</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
||||||
QPushButton:hover{background-color: rgb(209,209,209);}
|
QPushButton:hover{background-color: rgb(209,209,209);}
|
||||||
@ -118,6 +139,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>我的</string>
|
<string>我的</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
@ -128,6 +152,11 @@
|
|||||||
<height>60</height>
|
<height>60</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="styleSheet">
|
<property name="styleSheet">
|
||||||
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
<string notr="true">QPushButton {background-color: rgb(240,240,240);}
|
||||||
QPushButton:hover{background-color: rgb(209,209,209);}
|
QPushButton:hover{background-color: rgb(209,209,209);}
|
||||||
@ -136,6 +165,9 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>关于</string>
|
<string>关于</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="flat">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
@ -157,6 +189,13 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QStackedWidget" name="stackedWidget">
|
<widget class="QStackedWidget" name="stackedWidget">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
<weight>50</weight>
|
||||||
|
<bold>false</bold>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="page_chat"/>
|
<widget class="QWidget" name="page_chat"/>
|
||||||
<widget class="QWidget" name="page_contact"/>
|
<widget class="QWidget" name="page_contact"/>
|
||||||
<widget class="QWidget" name="page_myinfo"/>
|
<widget class="QWidget" name="page_myinfo"/>
|
||||||
@ -184,6 +223,11 @@
|
|||||||
<addaction name="action_4"/>
|
<addaction name="action_4"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menu">
|
<widget class="QMenu" name="menu">
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>微软雅黑</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>编辑</string>
|
<string>编辑</string>
|
||||||
</property>
|
</property>
|
||||||
@ -213,6 +257,11 @@
|
|||||||
<property name="text">
|
<property name="text">
|
||||||
<string>关于</string>
|
<string>关于</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="font">
|
||||||
|
<font>
|
||||||
|
<family>Microsoft YaHei UI</family>
|
||||||
|
</font>
|
||||||
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
Loading…
Reference in New Issue
Block a user