mirror of
http://git.xinwangdao.com/cnnc-embedded-parts-detect/detect-gui.git
synced 2025-06-24 05:04:12 +08:00
fixed
This commit is contained in:
parent
bdbb712f28
commit
106ed2fb0a
2
main.py
2
main.py
@ -5,7 +5,7 @@ from PyQt5.QtCore import Qt, QDate, QThread, QSize
|
||||
from PyQt5.QtGui import QPixmap, QFontDatabase, QFont, QPainter, \
|
||||
QLinearGradient, QColor, QIcon
|
||||
from PyQt5.QtWidgets import QApplication, QMainWindow, QWidget, QHBoxLayout, QVBoxLayout, QLabel, QStackedWidget, \
|
||||
QFrame, QSpacerItem, QSizePolicy, QProgressBar, QRadioButton, QPushButton
|
||||
QFrame, QSpacerItem, QSizePolicy, QProgressBar, QRadioButton, QPushButton, QMessageBox
|
||||
|
||||
from core.edge_context import EdgeContext
|
||||
from core.logging import logger
|
||||
|
@ -244,4 +244,44 @@ EmbedDetail QPushButton {
|
||||
padding: 5px;
|
||||
font-size: 16px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
QMessageBox {
|
||||
background-color: #161B3B; /* QMessageBox背景颜色 */
|
||||
}
|
||||
|
||||
QMessageBox QLabel#qt_msgbox_label { /* textLabel */
|
||||
color: #FFFFFF;
|
||||
font-size: 16px;
|
||||
background-color: transparent;
|
||||
min-width: 240px; /* textLabel设置最小宽度可以相应的改变QMessageBox的最小宽度 */
|
||||
min-height: 40px; /* textLabel和iconLabel高度保持一致 */
|
||||
}
|
||||
|
||||
QMessageBox QLabel#qt_msgboxex_icon_label { /* iconLabel */
|
||||
width: 40px;
|
||||
height: 40px; /* textLabel和iconLabel高度保持一致 */
|
||||
}
|
||||
|
||||
QMessageBox QPushButton { /* QMessageBox中的QPushButton样式 */
|
||||
border: 1px solid #3A36DB;
|
||||
border-radius: 8px;
|
||||
background-color: #3A36DB;
|
||||
color: #FFFFFF;
|
||||
font-size: 16px;
|
||||
min-width: 70px;
|
||||
min-height: 30px;
|
||||
}
|
||||
|
||||
QMessageBox QPushButton:hover {
|
||||
background-color: #298DFF;
|
||||
color: #F2F2F2;
|
||||
}
|
||||
|
||||
QMessageBox QPushButton:pressed {
|
||||
background-color: #257FE6;
|
||||
}
|
||||
|
||||
QMessageBox QDialogButtonBox#qt_msgbox_buttonbox { /* buttonBox */
|
||||
button-layout: 0; /* 设置QPushButton布局好像没啥作用 */
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user