Skip to content

Commit b07caaa

Browse files
committed
feat(ui): 更新登录界面UI样式和图片
Signed-off-by: LiggMax <wenzhouli06@gmail.com>
1 parent d0e79a0 commit b07caaa

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

FBver/FB_win.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1+
import asyncio
12
import os
23
import sys
3-
import asyncio
4+
45
import aiohttp
5-
from PyQt5.QtWidgets import (QApplication, QWidget, QVBoxLayout, QHBoxLayout,
6-
QLineEdit, QPushButton, QLabel, QTextEdit, QComboBox,
7-
QMessageBox, QCheckBox, QStackedWidget, QFrame, QSizePolicy)
8-
from PyQt5.QtGui import QFont, QPalette, QColor, QIcon, QPixmap
96
from PyQt5.QtCore import Qt, QTimer
10-
from qasync import QEventLoop, asyncClose, asyncSlot
7+
from PyQt5.QtGui import QFont, QPalette, QColor, QIcon, QPixmap
8+
from PyQt5.QtWidgets import (QApplication, QWidget, QVBoxLayout, QHBoxLayout,
9+
QLineEdit, QPushButton, QLabel, QMessageBox, QCheckBox, QStackedWidget, QFrame,
10+
QSizePolicy)
11+
from qasync import QEventLoop, asyncSlot
12+
1113
from FB_middle import main
1214

1315

@@ -79,7 +81,7 @@ def initUI(self):
7981

8082
# 创建轮播图
8183
self.slider = ImageSlider()
82-
self.slider.add_image(resource_path("image/slide4.png"))
84+
self.slider.add_image(resource_path("image/loginBackground.png"))
8385
left_layout.addWidget(self.slider)
8486

8587
# 左侧底部文本
@@ -145,13 +147,13 @@ def initUI(self):
145147
right_layout.addLayout(title_bar)
146148
login_title0 = QLabel("Facebook自動化腳本")
147149
login_title0.setFont(QFont("微軟雅黑", 10, QFont.Bold))
148-
login_title0.setStyleSheet("margin-top: 3px; margin-bottom: 2px;color: #6e6e70;font-weight: bold;")
150+
login_title0.setStyleSheet("margin-top: 3px; margin-bottom: 2px;color: #8ac5ec;font-weight: bold;")
149151
login_title0.setAlignment(Qt.AlignCenter)
150152
right_layout.addWidget(login_title0)
151153
# 添加登录表单标题
152154
login_title = QLabel("用戶登錄")
153155
login_title.setFont(QFont("微軟雅黑", 16, QFont.Bold))
154-
login_title.setStyleSheet("margin-top: 10px; margin-bottom: 20px;color: #1e5eff;font-weight: bold;")
156+
login_title.setStyleSheet("margin-top: 10px; margin-bottom: 20px;color: #8ac5ec;font-weight: bold;")
155157
login_title.setAlignment(Qt.AlignCenter)
156158
right_layout.addWidget(login_title)
157159

@@ -255,17 +257,17 @@ def initUI(self):
255257
self.button.setStyleSheet("""
256258
QPushButton {
257259
border-radius: 8px;
258-
background-color: #1e5eff;
260+
background-color: #7bbfe6;
259261
color: white;
260262
font-size: 12px;
261263
font-weight: bold;
262264
margin-top: 10px;
263265
}
264266
QPushButton:hover {
265-
background-color: #40a9ff;
267+
background-color: #6BB5D7;
266268
}
267269
QPushButton:pressed {
268-
background-color: #096dd9;
270+
background-color: #7bbfe6;
269271
}
270272
""")
271273
right_layout.addWidget(self.button)

FBver/image/loginBackground.png

97.5 KB
Loading

0 commit comments

Comments
 (0)