|
| 1 | +import asyncio |
1 | 2 | import os |
2 | 3 | import sys |
3 | | -import asyncio |
| 4 | + |
4 | 5 | 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 |
9 | 6 | 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 | + |
11 | 13 | from FB_middle import main |
12 | 14 |
|
13 | 15 |
|
@@ -79,7 +81,7 @@ def initUI(self): |
79 | 81 |
|
80 | 82 | # 创建轮播图 |
81 | 83 | self.slider = ImageSlider() |
82 | | - self.slider.add_image(resource_path("image/slide4.png")) |
| 84 | + self.slider.add_image(resource_path("image/loginBackground.png")) |
83 | 85 | left_layout.addWidget(self.slider) |
84 | 86 |
|
85 | 87 | # 左侧底部文本 |
@@ -145,13 +147,13 @@ def initUI(self): |
145 | 147 | right_layout.addLayout(title_bar) |
146 | 148 | login_title0 = QLabel("Facebook自動化腳本") |
147 | 149 | 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;") |
149 | 151 | login_title0.setAlignment(Qt.AlignCenter) |
150 | 152 | right_layout.addWidget(login_title0) |
151 | 153 | # 添加登录表单标题 |
152 | 154 | login_title = QLabel("用戶登錄") |
153 | 155 | 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;") |
155 | 157 | login_title.setAlignment(Qt.AlignCenter) |
156 | 158 | right_layout.addWidget(login_title) |
157 | 159 |
|
@@ -255,17 +257,17 @@ def initUI(self): |
255 | 257 | self.button.setStyleSheet(""" |
256 | 258 | QPushButton { |
257 | 259 | border-radius: 8px; |
258 | | - background-color: #1e5eff; |
| 260 | + background-color: #7bbfe6; |
259 | 261 | color: white; |
260 | 262 | font-size: 12px; |
261 | 263 | font-weight: bold; |
262 | 264 | margin-top: 10px; |
263 | 265 | } |
264 | 266 | QPushButton:hover { |
265 | | - background-color: #40a9ff; |
| 267 | + background-color: #6BB5D7; |
266 | 268 | } |
267 | 269 | QPushButton:pressed { |
268 | | - background-color: #096dd9; |
| 270 | + background-color: #7bbfe6; |
269 | 271 | } |
270 | 272 | """) |
271 | 273 | right_layout.addWidget(self.button) |
|
0 commit comments