12 changed files with 2652 additions and 44 deletions
-
4.vscode/settings.json
-
2CMakeLists.txt
-
33README.md
-
4libzqt/logger.cpp
-
56mainwindow.cpp
-
5mainwindow.h
-
577mainwindow.ui
-
496qcss/style1
-
559qcss/style2
-
954qcss/style3
-
2src/main.cpp
-
2src/version.h
@ -1,9 +1,30 @@ |
|||||
``` |
``` |
||||
TODO: |
|
||||
1. 显示FPGA版本号 |
|
||||
2. 显示STM32版本号 |
|
||||
3. 显示PC软件版本号 |
|
||||
4. 修改窗口名称 |
|
||||
QT打包 |
|
||||
|
QT打包: |
||||
|
参考教程 |
||||
https://blog.csdn.net/ColinFhz/article/details/107879769 |
https://blog.csdn.net/ColinFhz/article/details/107879769 |
||||
|
|
||||
|
V4: |
||||
|
1.修改样式 |
||||
|
2.优化打包体积 |
||||
|
|
||||
|
modbus |
||||
|
|
||||
|
设备地址: |
||||
|
波特率 : |
||||
|
|
||||
|
|
||||
|
读取配置 |
||||
|
写入配置 |
||||
|
校验配置 |
||||
|
|
||||
|
配置中有部分配置是只读的,部分配置不需要校验, |
||||
|
|
||||
|
1.协议文件 |
||||
|
名称,地址,读写特性,备注信息,是否属于配置(如果该配置项是只读的,则只校验配置) |
||||
|
|
||||
|
2.配置 |
||||
|
地址,数值 |
||||
|
地址,数值 |
||||
|
|
||||
|
|
||||
``` |
``` |
@ -0,0 +1,496 @@ |
|||||
|
/* |
||||
|
Ubuntu Style Sheet for QT Applications |
||||
|
Author: Jaime A. Quiroga P. |
||||
|
Company: GTRONICK |
||||
|
Last updated: 01/10/2021 (dd/mm/yyyy), 15:18. |
||||
|
Available at: https://github.com/GTRONICK/QSS/blob/master/Ubuntu.qss |
||||
|
*/ |
||||
|
QMainWindow { |
||||
|
background-color:#f0f0f0; |
||||
|
} |
||||
|
QCheckBox { |
||||
|
padding:2px; |
||||
|
} |
||||
|
QCheckBox:hover { |
||||
|
border:1px solid rgb(255,150,60); |
||||
|
border-radius:4px; |
||||
|
padding: 1px; |
||||
|
background-color:qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(190, 90, 50, 50), stop:1 rgba(250, 130, 40, 50)); |
||||
|
} |
||||
|
QCheckBox::indicator:checked { |
||||
|
border:1px solid rgb(246, 134, 86); |
||||
|
border-radius:4px; |
||||
|
background-color:rgb(246, 134, 86) |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked { |
||||
|
border-width:1px solid rgb(246, 134, 86); |
||||
|
border-radius:4px; |
||||
|
background-color:rgb(255,255,255); |
||||
|
} |
||||
|
QColorDialog { |
||||
|
background-color:#f0f0f0; |
||||
|
} |
||||
|
QComboBox { |
||||
|
color:rgb(81,72,65); |
||||
|
background: #ffffff; |
||||
|
} |
||||
|
QComboBox:editable { |
||||
|
selection-color:rgb(81,72,65); |
||||
|
selection-background-color: #ffffff; |
||||
|
} |
||||
|
QComboBox QAbstractItemView { |
||||
|
selection-color: #ffffff; |
||||
|
selection-background-color: rgb(246, 134, 86); |
||||
|
} |
||||
|
QComboBox:!editable:on, QComboBox::drop-down:editable:on { |
||||
|
color: #1e1d23; |
||||
|
} |
||||
|
QDateTimeEdit, QDateEdit, QDoubleSpinBox, QFontComboBox { |
||||
|
color:rgb(81,72,65); |
||||
|
background-color: #ffffff; |
||||
|
} |
||||
|
|
||||
|
QDialog { |
||||
|
background-color:#f0f0f0; |
||||
|
} |
||||
|
|
||||
|
QLabel,QLineEdit { |
||||
|
color:rgb(17,17,17); |
||||
|
} |
||||
|
QLineEdit { |
||||
|
background-color:rgb(255,255,255); |
||||
|
selection-background-color:rgb(236,116,64); |
||||
|
} |
||||
|
QMenuBar { |
||||
|
color:rgb(223,219,210); |
||||
|
background-color:rgb(65,64,59); |
||||
|
} |
||||
|
QMenuBar::item { |
||||
|
padding-top:4px; |
||||
|
padding-left:4px; |
||||
|
padding-right:4px; |
||||
|
color:rgb(223,219,210); |
||||
|
background-color:rgb(65,64,59); |
||||
|
} |
||||
|
QMenuBar::item:selected { |
||||
|
color:rgb(255,255,255); |
||||
|
padding-top:2px; |
||||
|
padding-left:2px; |
||||
|
padding-right:2px; |
||||
|
border-top-width:2px; |
||||
|
border-left-width:2px; |
||||
|
border-right-width:2px; |
||||
|
border-top-right-radius:4px; |
||||
|
border-top-left-radius:4px; |
||||
|
border-style:solid; |
||||
|
background-color:rgb(65,64,59); |
||||
|
border-top-color: rgb(47,47,44); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:0, stop:0 rgba(90, 87, 78, 255), stop:1 rgba(47,47,44, 255)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:1, y1:0, x2:0, y2:0, stop:0 rgba(90, 87, 78, 255), stop:1 rgba(47,47,44, 255)); |
||||
|
} |
||||
|
QMenu { |
||||
|
color:rgb(223,219,210); |
||||
|
background-color:rgb(65,64,59); |
||||
|
} |
||||
|
QMenu::item { |
||||
|
color:rgb(223,219,210); |
||||
|
padding:4px 10px 4px 20px; |
||||
|
} |
||||
|
QMenu::item:selected { |
||||
|
color:rgb(255,255,255); |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(225, 108, 54, 255), stop:1 rgba(246, 134, 86, 255)); |
||||
|
border-style:solid; |
||||
|
border-width:3px; |
||||
|
padding:4px 7px 4px 17px; |
||||
|
border-bottom-color:qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(175,85,48,255), stop:1 rgba(236,114,67, 255)); |
||||
|
border-top-color:qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
border-right-color:qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
border-left-color:qlineargradient(spread:pad, x1:1, y1:0.5, x2:0, y2:0.5, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
} |
||||
|
QPlainTextEdit { |
||||
|
border: 1px solid transparent; |
||||
|
color:rgb(17,17,17); |
||||
|
selection-background-color:rgb(236,116,64); |
||||
|
background-color: #FFFFFF; |
||||
|
} |
||||
|
QProgressBar { |
||||
|
text-align: center; |
||||
|
color: rgb(0, 0, 0); |
||||
|
border: 1px inset rgb(150,150,150); |
||||
|
border-radius: 10px; |
||||
|
background-color:rgb(221,221,219); |
||||
|
} |
||||
|
QProgressBar::chunk:horizontal { |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(225, 108, 54, 255), stop:1 rgba(246, 134, 86, 255)); |
||||
|
border:1px solid; |
||||
|
border-radius:8px; |
||||
|
border-bottom-color:qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(175,85,48,255), stop:1 rgba(236,114,67, 255)); |
||||
|
border-top-color:qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
border-right-color:qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
border-left-color:qlineargradient(spread:pad, x1:1, y1:0.5, x2:0, y2:0.5, stop:0 rgba(253,156,113,255), stop:1 rgba(205,90,46, 255)); |
||||
|
} |
||||
|
QPushButton{ |
||||
|
color:rgb(17,17,17); |
||||
|
border-width: 1px; |
||||
|
border-radius: 6px; |
||||
|
border-bottom-color: rgb(150,150,150); |
||||
|
border-right-color: rgb(165,165,165); |
||||
|
border-left-color: rgb(165,165,165); |
||||
|
border-top-color: rgb(180,180,180); |
||||
|
border-style: solid; |
||||
|
padding: 4px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(220, 220, 220, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QPushButton:hover{ |
||||
|
color:rgb(17,17,17); |
||||
|
border-width: 1px; |
||||
|
border-radius:6px; |
||||
|
border-top-color: rgb(255,150,60); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 255)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:1, y1:0, x2:0, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 255)); |
||||
|
border-bottom-color: rgb(200,70,20); |
||||
|
border-style: solid; |
||||
|
padding: 2px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(220, 220, 220, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QPushButton:default{ |
||||
|
color:rgb(17,17,17); |
||||
|
border-width: 1px; |
||||
|
border-radius:6px; |
||||
|
border-top-color: rgb(255,150,60); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 255)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:1, y1:0, x2:0, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 255)); |
||||
|
border-bottom-color: rgb(200,70,20); |
||||
|
border-style: solid; |
||||
|
padding: 2px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(220, 220, 220, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QPushButton:pressed{ |
||||
|
color:rgb(17,17,17); |
||||
|
border-width: 1px; |
||||
|
border-radius: 6px; |
||||
|
border-width: 1px; |
||||
|
border-top-color: rgba(255,150,60,200); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:1, x2:1, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 200)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:1, y1:0, x2:0, y2:0, stop:0 rgba(200, 70, 20, 255), stop:1 rgba(255,150,60, 200)); |
||||
|
border-bottom-color: rgba(200,70,20,200); |
||||
|
border-style: solid; |
||||
|
padding: 2px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:0, x2:0.5, y2:1, stop:0 rgba(220, 220, 220, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QPushButton:disabled{ |
||||
|
color:rgb(174,167,159); |
||||
|
border-width: 1px; |
||||
|
border-radius: 6px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(200, 200, 200, 255), stop:1 rgba(230, 230, 230, 255)); |
||||
|
} |
||||
|
QRadioButton { |
||||
|
padding: 1px; |
||||
|
} |
||||
|
QRadioButton::indicator:checked { |
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-radius:5px; |
||||
|
border-width: 1px; |
||||
|
border-color: rgba(246, 134, 86, 255); |
||||
|
color: #a9b7c6; |
||||
|
background-color:rgba(246, 134, 86, 255); |
||||
|
} |
||||
|
QRadioButton::indicator:!checked { |
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-radius:5px; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(246, 134, 86); |
||||
|
color: #a9b7c6; |
||||
|
background-color: transparent; |
||||
|
} |
||||
|
QScrollArea { |
||||
|
color: white; |
||||
|
background-color:#f0f0f0; |
||||
|
} |
||||
|
QSlider::groove { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
} |
||||
|
QSlider::groove:horizontal { |
||||
|
height: 5px; |
||||
|
background: rgb(246, 134, 86); |
||||
|
} |
||||
|
QSlider::groove:vertical { |
||||
|
width: 5px; |
||||
|
background: rgb(246, 134, 86); |
||||
|
} |
||||
|
QSlider::handle:horizontal { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
width: 12px; |
||||
|
margin: -5px 0; |
||||
|
border-radius: 7px; |
||||
|
} |
||||
|
QSlider::handle:vertical { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
height: 12px; |
||||
|
margin: 0 -5px; |
||||
|
border-radius: 7px; |
||||
|
} |
||||
|
QSlider::add-page:horizontal, QSlider::add-page:vertical { |
||||
|
background: white; |
||||
|
} |
||||
|
QSlider::sub-page:horizontal, QSlider::sub-page:vertical { |
||||
|
background: rgb(246, 134, 86); |
||||
|
} |
||||
|
QStatusBar, QSpinBox { |
||||
|
color:rgb(81,72,65); |
||||
|
} |
||||
|
QSpinBox { |
||||
|
background-color: #ffffff; |
||||
|
} |
||||
|
QScrollBar:horizontal { |
||||
|
max-height: 20px; |
||||
|
border: 1px transparent; |
||||
|
margin: 0px 20px 0px 20px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal { |
||||
|
background: rgb(253,253,253); |
||||
|
border: 1px solid rgb(207,207,207); |
||||
|
border-radius: 7px; |
||||
|
min-width: 25px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal:hover { |
||||
|
background: rgb(253,253,253); |
||||
|
border: 1px solid rgb(255,150,60); |
||||
|
border-radius: 7px; |
||||
|
min-width: 25px; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal { |
||||
|
border: 1px solid rgb(207,207,207); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: right; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal:hover { |
||||
|
border: 1px solid rgb(255,150,60); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: right; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal:pressed { |
||||
|
border: 1px solid grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-top-right-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgb(231,231,231); |
||||
|
width: 20px; |
||||
|
subcontrol-position: right; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal { |
||||
|
border: 1px solid rgb(207,207,207); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: left; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal:hover { |
||||
|
border: 1px solid rgb(255,150,60); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: left; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal:pressed { |
||||
|
border: 1px solid grey; |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(231,231,231); |
||||
|
width: 20px; |
||||
|
subcontrol-position: left; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::left-arrow:horizontal { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-left-radius: 3px; |
||||
|
border-bottom-left-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: rgb(230,230,230); |
||||
|
} |
||||
|
QScrollBar::right-arrow:horizontal { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-right-radius: 3px; |
||||
|
border-bottom-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: rgb(230,230,230); |
||||
|
} |
||||
|
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { |
||||
|
background: none; |
||||
|
} |
||||
|
QScrollBar:vertical { |
||||
|
max-width: 20px; |
||||
|
border: 1px transparent grey; |
||||
|
margin: 20px 0px 20px 0px; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical { |
||||
|
border: 1px solid; |
||||
|
border-color: rgb(207,207,207); |
||||
|
border-bottom-right-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: bottom; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical:hover { |
||||
|
border: 1px solid; |
||||
|
border-color: rgb(255,150,60); |
||||
|
border-bottom-right-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: bottom; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical:pressed { |
||||
|
border: 1px solid grey; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
background: rgb(231,231,231); |
||||
|
height: 20px; |
||||
|
subcontrol-position: bottom; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical { |
||||
|
border: 1px solid rgb(207,207,207); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: top; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical:hover { |
||||
|
border: 1px solid rgb(255,150,60); |
||||
|
border-top-right-radius: 7px; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(255, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: top; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical:pressed { |
||||
|
border: 1px solid grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-top-right-radius: 7px; |
||||
|
background: rgb(231,231,231); |
||||
|
height: 20px; |
||||
|
subcontrol-position: top; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::handle:vertical { |
||||
|
background: rgb(253,253,253); |
||||
|
border: 1px solid rgb(207,207,207); |
||||
|
border-radius: 7px; |
||||
|
min-height: 25px; |
||||
|
} |
||||
|
QScrollBar::handle:vertical:hover { |
||||
|
background: rgb(253,253,253); |
||||
|
border: 1px solid rgb(255,150,60); |
||||
|
border-radius: 7px; |
||||
|
min-height: 25px; |
||||
|
} |
||||
|
QScrollBar::up-arrow:vertical { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-left-radius: 3px; |
||||
|
border-top-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: rgb(230,230,230); |
||||
|
} |
||||
|
QScrollBar::down-arrow:vertical { |
||||
|
border: 1px transparent grey; |
||||
|
border-bottom-left-radius: 3px; |
||||
|
border-bottom-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: rgb(230,230,230); |
||||
|
} |
||||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { |
||||
|
background: none; |
||||
|
} |
||||
|
QTabWidget { |
||||
|
color:rgb(0,0,0); |
||||
|
background-color:rgb(247,246,246); |
||||
|
} |
||||
|
QTabWidget::pane { |
||||
|
border-color: rgb(180,180,180); |
||||
|
background-color:rgb(247,246,246); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-radius: 6px; |
||||
|
} |
||||
|
QTabBar::tab { |
||||
|
padding-left:4px; |
||||
|
padding-right:4px; |
||||
|
padding-bottom:2px; |
||||
|
padding-top:2px; |
||||
|
color:rgb(81,72,65); |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(221,218,217,255), stop:1 rgba(240,239,238,255)); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-top-right-radius:4px; |
||||
|
border-top-left-radius:4px; |
||||
|
border-top-color: rgb(180,180,180); |
||||
|
border-left-color: rgb(180,180,180); |
||||
|
border-right-color: rgb(180,180,180); |
||||
|
border-bottom-color: transparent; |
||||
|
} |
||||
|
QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover { |
||||
|
background-color:rgb(247,246,246); |
||||
|
margin-left: 0px; |
||||
|
margin-right: 1px; |
||||
|
} |
||||
|
QTabBar::tab:!selected { |
||||
|
margin-top: 1px; |
||||
|
margin-right: 1px; |
||||
|
} |
||||
|
QTextEdit { |
||||
|
border-width: 1px; |
||||
|
border-style: solid; |
||||
|
border-color:transparent; |
||||
|
color:rgb(17,17,17); |
||||
|
selection-background-color:rgb(236,116,64); |
||||
|
} |
||||
|
QTimeEdit, QToolBox, QToolBox::tab, QToolBox::tab:selected { |
||||
|
color:rgb(81,72,65); |
||||
|
background-color: #ffffff; |
||||
|
} |
@ -0,0 +1,559 @@ |
|||||
|
/* |
||||
|
Aqua Style Sheet for QT Applications |
||||
|
Author: Jaime A. Quiroga P. |
||||
|
Company: GTRONICK |
||||
|
Last updated: 22/01/2019, 07:55. |
||||
|
Available at: https://github.com/GTRONICK/QSS/blob/master/Aqua.qss |
||||
|
*/ |
||||
|
QMainWindow { |
||||
|
background-color:#ececec; |
||||
|
} |
||||
|
QTextEdit { |
||||
|
border-width: 1px; |
||||
|
border-style: solid; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QPlainTextEdit { |
||||
|
border-width: 1px; |
||||
|
border-style: solid; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QToolButton { |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(255,255,255); |
||||
|
} |
||||
|
QToolButton:hover{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(197, 197, 197), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(197, 197, 197)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(255,255,255); |
||||
|
} |
||||
|
QToolButton:pressed{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(142,142,142); |
||||
|
} |
||||
|
QPushButton{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(255,255,255); |
||||
|
} |
||||
|
QPushButton::default{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(255,255,255); |
||||
|
} |
||||
|
QPushButton:hover{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(197, 197, 197), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(197, 197, 197)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(195, 195, 195), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(255,255,255); |
||||
|
} |
||||
|
QPushButton:pressed{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: rgb(0,0,0); |
||||
|
padding: 2px; |
||||
|
background-color: rgb(142,142,142); |
||||
|
} |
||||
|
QPushButton:disabled{ |
||||
|
border-style: solid; |
||||
|
border-top-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(217, 217, 217), stop:1 rgb(227, 227, 227)); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0, y1:0.5, x2:1, y2:0.5, stop:0 rgb(227, 227, 227), stop:1 rgb(217, 217, 217)); |
||||
|
border-bottom-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgb(215, 215, 215), stop:1 rgb(222, 222, 222)); |
||||
|
border-width: 1px; |
||||
|
border-radius: 5px; |
||||
|
color: #808086; |
||||
|
padding: 2px; |
||||
|
background-color: rgb(142,142,142); |
||||
|
} |
||||
|
QLineEdit { |
||||
|
border-width: 1px; border-radius: 4px; |
||||
|
border-style: solid; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QLabel { |
||||
|
color: #000000; |
||||
|
} |
||||
|
QLCDNumber { |
||||
|
color: rgb(0, 113, 255, 255); |
||||
|
} |
||||
|
QProgressBar { |
||||
|
text-align: center; |
||||
|
color: rgb(240, 240, 240); |
||||
|
border-width: 1px; |
||||
|
border-radius: 10px; |
||||
|
border-color: rgb(230, 230, 230); |
||||
|
border-style: solid; |
||||
|
background-color:rgb(207,207,207); |
||||
|
} |
||||
|
QProgressBar::chunk { |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255)); |
||||
|
border-radius: 10px; |
||||
|
} |
||||
|
QMenuBar { |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(207, 209, 207, 255), stop:1 rgba(230, 229, 230, 255)); |
||||
|
} |
||||
|
QMenuBar::item { |
||||
|
color: #000000; |
||||
|
spacing: 3px; |
||||
|
padding: 1px 4px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(207, 209, 207, 255), stop:1 rgba(230, 229, 230, 255)); |
||||
|
} |
||||
|
|
||||
|
QMenuBar::item:selected { |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
color: #FFFFFF; |
||||
|
} |
||||
|
QMenu::item:selected { |
||||
|
border-style: solid; |
||||
|
border-top-color: transparent; |
||||
|
border-right-color: transparent; |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
border-bottom-color: transparent; |
||||
|
border-left-width: 2px; |
||||
|
color: #000000; |
||||
|
padding-left:15px; |
||||
|
padding-top:4px; |
||||
|
padding-bottom:4px; |
||||
|
padding-right:7px; |
||||
|
} |
||||
|
QMenu::item { |
||||
|
border-style: solid; |
||||
|
border-top-color: transparent; |
||||
|
border-right-color: transparent; |
||||
|
border-left-color: transparent; |
||||
|
border-bottom-color: transparent; |
||||
|
border-bottom-width: 1px; |
||||
|
color: #000000; |
||||
|
padding-left:17px; |
||||
|
padding-top:4px; |
||||
|
padding-bottom:4px; |
||||
|
padding-right:7px; |
||||
|
} |
||||
|
QTabWidget { |
||||
|
color:rgb(0,0,0); |
||||
|
background-color:#000000; |
||||
|
} |
||||
|
QTabWidget::pane { |
||||
|
border-color: rgb(223,223,223); |
||||
|
background-color:rgb(226,226,226); |
||||
|
border-style: solid; |
||||
|
border-width: 2px; |
||||
|
border-radius: 6px; |
||||
|
} |
||||
|
QTabBar::tab:first { |
||||
|
border-style: solid; |
||||
|
border-left-width:1px; |
||||
|
border-right-width:0px; |
||||
|
border-top-width:1px; |
||||
|
border-bottom-width:1px; |
||||
|
border-top-color: rgb(209,209,209); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-bottom-color: rgb(229,229,229); |
||||
|
border-top-left-radius: 4px; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
color: #000000; |
||||
|
padding: 3px; |
||||
|
margin-left:0px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QTabBar::tab:last { |
||||
|
border-style: solid; |
||||
|
border-width:1px; |
||||
|
border-top-color: rgb(209,209,209); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-right-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-bottom-color: rgb(229,229,229); |
||||
|
border-top-right-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
color: #000000; |
||||
|
padding: 3px; |
||||
|
margin-left:0px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QTabBar::tab { |
||||
|
border-style: solid; |
||||
|
border-top-width:1px; |
||||
|
border-bottom-width:1px; |
||||
|
border-left-width:1px; |
||||
|
border-top-color: rgb(209,209,209); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-bottom-color: rgb(229,229,229); |
||||
|
color: #000000; |
||||
|
padding: 3px; |
||||
|
margin-left:0px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(247, 247, 247, 255), stop:1 rgba(255, 255, 255, 255)); |
||||
|
} |
||||
|
QTabBar::tab:selected, QTabBar::tab:last:selected, QTabBar::tab:hover { |
||||
|
border-style: solid; |
||||
|
border-left-width:1px; |
||||
|
border-right-color: transparent; |
||||
|
border-top-color: rgb(209,209,209); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-bottom-color: rgb(229,229,229); |
||||
|
color: #FFFFFF; |
||||
|
padding: 3px; |
||||
|
margin-left:0px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
|
||||
|
QTabBar::tab:selected, QTabBar::tab:first:selected, QTabBar::tab:hover { |
||||
|
border-style: solid; |
||||
|
border-left-width:1px; |
||||
|
border-bottom-width:1px; |
||||
|
border-top-width:1px; |
||||
|
border-right-color: transparent; |
||||
|
border-top-color: rgb(209,209,209); |
||||
|
border-left-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(209, 209, 209, 209), stop:1 rgba(229, 229, 229, 229)); |
||||
|
border-bottom-color: rgb(229,229,229); |
||||
|
color: #FFFFFF; |
||||
|
padding: 3px; |
||||
|
margin-left:0px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
|
||||
|
QCheckBox { |
||||
|
color: #000000; |
||||
|
padding: 2px; |
||||
|
} |
||||
|
QCheckBox:disabled { |
||||
|
color: #808086; |
||||
|
padding: 2px; |
||||
|
} |
||||
|
|
||||
|
QCheckBox:hover { |
||||
|
border-radius:4px; |
||||
|
border-style:solid; |
||||
|
padding-left: 1px; |
||||
|
padding-right: 1px; |
||||
|
padding-bottom: 1px; |
||||
|
padding-top: 1px; |
||||
|
border-width:1px; |
||||
|
border-color: transparent; |
||||
|
} |
||||
|
QCheckBox::indicator:checked { |
||||
|
|
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
color: #000000; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked { |
||||
|
|
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
color: #000000; |
||||
|
} |
||||
|
QRadioButton { |
||||
|
color: 000000; |
||||
|
padding: 1px; |
||||
|
} |
||||
|
QRadioButton::indicator:checked { |
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-radius:5px; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
color: #a9b7c6; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QRadioButton::indicator:!checked { |
||||
|
height: 10px; |
||||
|
width: 10px; |
||||
|
border-style:solid; |
||||
|
border-radius:5px; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
color: #a9b7c6; |
||||
|
background-color: transparent; |
||||
|
} |
||||
|
QStatusBar { |
||||
|
color:#027f7f; |
||||
|
} |
||||
|
QSpinBox { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QDoubleSpinBox { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QTimeEdit { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QDateTimeEdit { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
QDateEdit { |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(0, 113, 255, 255), stop:1 rgba(91, 171, 252, 255)); |
||||
|
} |
||||
|
|
||||
|
QToolBox { |
||||
|
color: #a9b7c6; |
||||
|
background-color:#000000; |
||||
|
} |
||||
|
QToolBox::tab { |
||||
|
color: #a9b7c6; |
||||
|
background-color:#000000; |
||||
|
} |
||||
|
QToolBox::tab:selected { |
||||
|
color: #FFFFFF; |
||||
|
background-color:#000000; |
||||
|
} |
||||
|
QScrollArea { |
||||
|
color: #FFFFFF; |
||||
|
background-color:#000000; |
||||
|
} |
||||
|
QSlider::groove:horizontal { |
||||
|
height: 5px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255)); |
||||
|
} |
||||
|
QSlider::groove:vertical { |
||||
|
width: 5px; |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255)); |
||||
|
} |
||||
|
QSlider::handle:horizontal { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
width: 12px; |
||||
|
margin: -5px 0; |
||||
|
border-radius: 7px; |
||||
|
} |
||||
|
QSlider::handle:vertical { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
height: 12px; |
||||
|
margin: 0 -5px; |
||||
|
border-radius: 7px; |
||||
|
} |
||||
|
QSlider::add-page:horizontal { |
||||
|
background: rgb(181,181,181); |
||||
|
} |
||||
|
QSlider::add-page:vertical { |
||||
|
background: rgb(181,181,181); |
||||
|
} |
||||
|
QSlider::sub-page:horizontal { |
||||
|
background-color: qlineargradient(spread:pad, x1:0.5, y1:1, x2:0.5, y2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255)); |
||||
|
} |
||||
|
QSlider::sub-page:vertical { |
||||
|
background-color: qlineargradient(spread:pad, y1:0.5, x1:1, y2:0.5, x2:0, stop:0 rgba(49, 147, 250, 255), stop:1 rgba(34, 142, 255, 255)); |
||||
|
} |
||||
|
QScrollBar:horizontal { |
||||
|
max-height: 20px; |
||||
|
border: 1px transparent grey; |
||||
|
margin: 0px 20px 0px 20px; |
||||
|
} |
||||
|
QScrollBar:vertical { |
||||
|
max-width: 20px; |
||||
|
border: 1px transparent grey; |
||||
|
margin: 20px 0px 20px 0px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
border-radius: 7px; |
||||
|
min-width: 25px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal:hover { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(147, 200, 200); |
||||
|
border-radius: 7px; |
||||
|
min-width: 25px; |
||||
|
} |
||||
|
QScrollBar::handle:vertical { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(207,207,207); |
||||
|
border-radius: 7px; |
||||
|
min-height: 25px; |
||||
|
} |
||||
|
QScrollBar::handle:vertical:hover { |
||||
|
background: rgb(253,253,253); |
||||
|
border-style: solid; |
||||
|
border-width: 1px; |
||||
|
border-color: rgb(147, 200, 200); |
||||
|
border-radius: 7px; |
||||
|
min-height: 25px; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-right-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgba(34, 142, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: right; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal:pressed { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-right-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgb(181,181,181); |
||||
|
width: 20px; |
||||
|
subcontrol-position: right; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical { |
||||
|
border: 2px transparent grey; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgba(34, 142, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: bottom; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical:pressed { |
||||
|
border: 2px transparent grey; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
border-bottom-right-radius: 7px; |
||||
|
background: rgb(181,181,181); |
||||
|
height: 20px; |
||||
|
subcontrol-position: bottom; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgba(34, 142, 255, 255); |
||||
|
width: 20px; |
||||
|
subcontrol-position: left; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal:pressed { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-bottom-left-radius: 7px; |
||||
|
background: rgb(181,181,181); |
||||
|
width: 20px; |
||||
|
subcontrol-position: left; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-top-right-radius: 7px; |
||||
|
background: rgba(34, 142, 255, 255); |
||||
|
height: 20px; |
||||
|
subcontrol-position: top; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical:pressed { |
||||
|
border: 2px transparent grey; |
||||
|
border-top-left-radius: 7px; |
||||
|
border-top-right-radius: 7px; |
||||
|
background: rgb(181,181,181); |
||||
|
height: 20px; |
||||
|
subcontrol-position: top; |
||||
|
subcontrol-origin: margin; |
||||
|
} |
||||
|
QScrollBar::left-arrow:horizontal { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-left-radius: 3px; |
||||
|
border-bottom-left-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: white; |
||||
|
} |
||||
|
QScrollBar::right-arrow:horizontal { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-right-radius: 3px; |
||||
|
border-bottom-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: white; |
||||
|
} |
||||
|
QScrollBar::up-arrow:vertical { |
||||
|
border: 1px transparent grey; |
||||
|
border-top-left-radius: 3px; |
||||
|
border-top-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: white; |
||||
|
} |
||||
|
QScrollBar::down-arrow:vertical { |
||||
|
border: 1px transparent grey; |
||||
|
border-bottom-left-radius: 3px; |
||||
|
border-bottom-right-radius: 3px; |
||||
|
width: 6px; |
||||
|
height: 6px; |
||||
|
background: white; |
||||
|
} |
||||
|
QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal { |
||||
|
background: none; |
||||
|
} |
||||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { |
||||
|
background: none; |
||||
|
} |
@ -0,0 +1,954 @@ |
|||||
|
/* |
||||
|
* The MIT License (MIT) |
||||
|
* |
||||
|
* Copyright : http://blog.csdn.net/liang19890820 |
||||
|
* |
||||
|
* Author : ?????? |
||||
|
* |
||||
|
* Date : 2016/07/22 |
||||
|
* |
||||
|
* Description : ???? |
||||
|
* |
||||
|
*/ |
||||
|
|
||||
|
/**********?????**********/ |
||||
|
QWidget#customWidget { |
||||
|
background: rgb(173, 202, 232); |
||||
|
} |
||||
|
|
||||
|
/**********???????**********/ |
||||
|
QWidget#centerWidget { |
||||
|
background: rgb(232, 241, 252); |
||||
|
} |
||||
|
|
||||
|
/**********?????**********/ |
||||
|
QWidget#mainWindow { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: rgb(232, 241, 252); |
||||
|
} |
||||
|
|
||||
|
QWidget#messageWidget { |
||||
|
background: rgba(173, 202, 232, 50%); |
||||
|
} |
||||
|
|
||||
|
QWidget#loadingWidget { |
||||
|
border: none; |
||||
|
border-radius: 5px; |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
|
||||
|
QWidget#remoteWidget { |
||||
|
border-top-right-radius: 10px; |
||||
|
border-bottom-right-radius: 10px; |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
border-left: none; |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
StyledWidget { |
||||
|
qproperty-normalColor: rgb(65, 65, 65); |
||||
|
qproperty-disableColor: rgb(180, 180, 180); |
||||
|
qproperty-highlightColor: rgb(0, 160, 230); |
||||
|
qproperty-errorColor: red; |
||||
|
} |
||||
|
|
||||
|
QProgressIndicator { |
||||
|
qproperty-color: rgb(2, 65, 132); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QToolTip{ |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QMenuBar { |
||||
|
background: rgb(187, 212, 238); |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
border-left: none; |
||||
|
border-right: none; |
||||
|
} |
||||
|
QMenuBar::item { |
||||
|
border: 1px solid transparent; |
||||
|
padding: 5px 10px 5px 10px; |
||||
|
background: transparent; |
||||
|
} |
||||
|
QMenuBar::item:enabled { |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
QMenuBar::item:!enabled { |
||||
|
color: rgb(155, 155, 155); |
||||
|
} |
||||
|
QMenuBar::item:enabled:selected { |
||||
|
border-top-color: rgb(111, 156, 207); |
||||
|
border-bottom-color: rgb(111, 156, 207); |
||||
|
background: rgb(198, 224, 252); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QMenu { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: rgb(232, 241, 250); |
||||
|
} |
||||
|
QMenu::item { |
||||
|
height: 22px; |
||||
|
padding: 0px 25px 0px 20px; |
||||
|
} |
||||
|
QMenu::item:enabled { |
||||
|
color: rgb(84, 84, 84); |
||||
|
} |
||||
|
QMenu::item:!enabled { |
||||
|
color: rgb(155, 155, 155); |
||||
|
} |
||||
|
QMenu::item:enabled:selected { |
||||
|
color: rgb(2, 65, 132); |
||||
|
background: rgba(255, 255, 255, 200); |
||||
|
} |
||||
|
QMenu::separator { |
||||
|
height: 1px; |
||||
|
background: rgb(111, 156, 207); |
||||
|
} |
||||
|
QMenu::indicator { |
||||
|
width: 13px; |
||||
|
height: 13px; |
||||
|
} |
||||
|
QMenu::icon { |
||||
|
padding-left: 2px; |
||||
|
padding-right: 2px; |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QStatusBar { |
||||
|
background: rgb(187, 212, 238); |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
border-left: none; |
||||
|
border-right: none; |
||||
|
border-bottom: none; |
||||
|
} |
||||
|
QStatusBar::item { |
||||
|
border: none; |
||||
|
border-right: 1px solid rgb(111, 156, 207); |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QGroupBox { |
||||
|
font-size: 15px; |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
border-radius: 4px; |
||||
|
margin-top: 10px; |
||||
|
} |
||||
|
QGroupBox::title { |
||||
|
color: rgb(56, 99, 154); |
||||
|
top: -12px; |
||||
|
left: 10px; |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QTabWidget::pane { |
||||
|
border: none; |
||||
|
border-top: 3px solid rgb(0, 78, 161); |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
QTabWidget::tab-bar { |
||||
|
border: none; |
||||
|
} |
||||
|
QTabBar::tab { |
||||
|
border: none; |
||||
|
border-top-left-radius: 4px; |
||||
|
border-top-right-radius: 4px; |
||||
|
color: white; |
||||
|
background: rgb(120, 170, 220); |
||||
|
height: 28px; |
||||
|
min-width: 85px; |
||||
|
margin-right: 5px; |
||||
|
padding-left: 5px; |
||||
|
padding-right: 5px; |
||||
|
} |
||||
|
QTabBar::tab:hover { |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
QTabBar::tab:selected { |
||||
|
color: white; |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
|
||||
|
QTabWidget#tabWidget::pane { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: rgb(232, 241, 252); |
||||
|
margin-top: -1px; |
||||
|
} |
||||
|
|
||||
|
QTabBar#tabBar::tab { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
border-bottom: none; |
||||
|
color: rgb(70, 71, 73); |
||||
|
background: transparent; |
||||
|
} |
||||
|
QTabBar#tabBar::tab:hover { |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
QTabBar#tabBar::tab:selected { |
||||
|
color: rgb(2, 65, 132); |
||||
|
background: rgb(232, 241, 252); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QHeaderView{ |
||||
|
border: none; |
||||
|
border-bottom: 3px solid rgb(0, 78, 161); |
||||
|
background: transparent; |
||||
|
min-height: 30px; |
||||
|
} |
||||
|
QHeaderView::section:horizontal { |
||||
|
border: none; |
||||
|
color: rgb(2, 65, 132); |
||||
|
background: transparent; |
||||
|
padding-left: 5px; |
||||
|
} |
||||
|
QHeaderView::section:horizontal:hover { |
||||
|
color: white; |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
QHeaderView::section:horizontal:pressed { |
||||
|
color: white; |
||||
|
background: rgb(6, 94, 187); |
||||
|
} |
||||
|
QHeaderView::up-arrow { |
||||
|
width: 13px; |
||||
|
height: 11px; |
||||
|
padding-right: 5px; |
||||
|
image: url(:/White/topArrow); |
||||
|
subcontrol-position: center right; |
||||
|
} |
||||
|
QHeaderView::up-arrow:hover, QHeaderView::up-arrow:pressed { |
||||
|
image: url(:/White/topArrowHover); |
||||
|
} |
||||
|
QHeaderView::down-arrow { |
||||
|
width: 13px; |
||||
|
height: 11px; |
||||
|
padding-right: 5px; |
||||
|
image: url(:/White/bottomArrow); |
||||
|
subcontrol-position: center right; |
||||
|
} |
||||
|
QHeaderView::down-arrow:hover, QHeaderView::down-arrow:pressed { |
||||
|
image: url(:/White/bottomArrowHover); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QTableView { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: rgb(224, 238, 255); |
||||
|
gridline-color: rgb(111, 156, 207); |
||||
|
} |
||||
|
QTableView::item { |
||||
|
padding-left: 5px; |
||||
|
padding-right: 5px; |
||||
|
border: none; |
||||
|
background: white; |
||||
|
border-right: 1px solid rgb(111, 156, 207); |
||||
|
border-bottom: 1px solid rgb(111, 156, 207); |
||||
|
} |
||||
|
QTableView::item:selected { |
||||
|
background: rgba(255, 255, 255, 100); |
||||
|
} |
||||
|
QTableView::item:selected:!active { |
||||
|
color: rgb(65, 65, 65); |
||||
|
} |
||||
|
QTableView::indicator { |
||||
|
width: 20px; |
||||
|
height: 20px; |
||||
|
} |
||||
|
QTableView::indicator:enabled:unchecked { |
||||
|
image: url(:/White/checkBox); |
||||
|
} |
||||
|
QTableView::indicator:enabled:unchecked:hover { |
||||
|
image: url(:/White/checkBoxHover); |
||||
|
} |
||||
|
QTableView::indicator:enabled:unchecked:pressed { |
||||
|
image: url(:/White/checkBoxPressed); |
||||
|
} |
||||
|
QTableView::indicator:enabled:checked { |
||||
|
image: url(:/White/checkBoxChecked); |
||||
|
} |
||||
|
QTableView::indicator:enabled:checked:hover { |
||||
|
image: url(:/White/checkBoxCheckedHover); |
||||
|
} |
||||
|
QTableView::indicator:enabled:checked:pressed { |
||||
|
image: url(:/White/checkBoxCheckedPressed); |
||||
|
} |
||||
|
QTableView::indicator:enabled:indeterminate { |
||||
|
image: url(:/White/checkBoxIndeterminate); |
||||
|
} |
||||
|
QTableView::indicator:enabled:indeterminate:hover { |
||||
|
image: url(:/White/checkBoxIndeterminateHover); |
||||
|
} |
||||
|
QTableView::indicator:enabled:indeterminate:pressed { |
||||
|
image: url(:/White/checkBoxIndeterminatePressed); |
||||
|
} |
||||
|
|
||||
|
/**********???-??**********/ |
||||
|
QScrollBar:horizontal { |
||||
|
height: 20px; |
||||
|
background: transparent; |
||||
|
margin-top: 3px; |
||||
|
margin-bottom: 3px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal { |
||||
|
height: 20px; |
||||
|
min-width: 30px; |
||||
|
background: rgb(170, 200, 230); |
||||
|
margin-left: 15px; |
||||
|
margin-right: 15px; |
||||
|
} |
||||
|
QScrollBar::handle:horizontal:hover { |
||||
|
background: rgb(165, 195, 225); |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal { |
||||
|
width: 15px; |
||||
|
background: transparent; |
||||
|
image: url(:/White/arrowLeft); |
||||
|
subcontrol-position: left; |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal { |
||||
|
width: 15px; |
||||
|
background: transparent; |
||||
|
image: url(:/White/arrowRight); |
||||
|
subcontrol-position: right; |
||||
|
} |
||||
|
QScrollBar::sub-line:horizontal:hover { |
||||
|
background: rgb(170, 200, 230); |
||||
|
} |
||||
|
QScrollBar::add-line:horizontal:hover { |
||||
|
background: rgb(170, 200, 230); |
||||
|
} |
||||
|
QScrollBar::add-page:horizontal,QScrollBar::sub-page:horizontal { |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
/**********???-??**********/ |
||||
|
QScrollBar:vertical { |
||||
|
width: 20px; |
||||
|
background: transparent; |
||||
|
margin-left: 3px; |
||||
|
margin-right: 3px; |
||||
|
} |
||||
|
QScrollBar::handle:vertical { |
||||
|
width: 20px; |
||||
|
min-height: 30px; |
||||
|
background: rgb(170, 200, 230); |
||||
|
margin-top: 15px; |
||||
|
margin-bottom: 15px; |
||||
|
} |
||||
|
QScrollBar::handle:vertical:hover { |
||||
|
background: rgb(165, 195, 225); |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical { |
||||
|
height: 15px; |
||||
|
background: transparent; |
||||
|
image: url(:/White/topArrow); |
||||
|
subcontrol-position: top; |
||||
|
} |
||||
|
QScrollBar::add-line:vertical { |
||||
|
height: 15px; |
||||
|
background: transparent; |
||||
|
image: url(:/White/bottomArrow); |
||||
|
subcontrol-position: bottom; |
||||
|
} |
||||
|
QScrollBar::sub-line:vertical:hover { |
||||
|
background: rgb(170, 200, 230); |
||||
|
} |
||||
|
QScrollBar::add-line:vertical:hover { |
||||
|
background: rgb(170, 200, 230); |
||||
|
} |
||||
|
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
QScrollBar#verticalScrollBar:vertical { |
||||
|
margin-top: 30px; |
||||
|
} |
||||
|
|
||||
|
/**********????**********/ |
||||
|
QComboBox { |
||||
|
height: 25px; |
||||
|
border-radius: 4px; |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
} |
||||
|
QComboBox:enabled { |
||||
|
color: rgb(84, 84, 84); |
||||
|
} |
||||
|
QComboBox:!enabled { |
||||
|
color: rgb(80, 80, 80); |
||||
|
} |
||||
|
QComboBox:enabled:hover, QComboBox:enabled:focus { |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
QComboBox::drop-down { |
||||
|
width: 20px; |
||||
|
border: none; |
||||
|
background: transparent; |
||||
|
} |
||||
|
QComboBox::drop-down:hover { |
||||
|
background: rgba(255, 255, 255, 30); |
||||
|
} |
||||
|
QComboBox::down-arrow { |
||||
|
image: url(:/White/arrowBottom); |
||||
|
} |
||||
|
QComboBox::down-arrow:on { |
||||
|
/**top: 1px;**/ |
||||
|
} |
||||
|
QComboBox QAbstractItemView { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
outline: none; |
||||
|
} |
||||
|
QComboBox QAbstractItemView::item { |
||||
|
height: 25px; |
||||
|
color: rgb(73, 73, 73); |
||||
|
} |
||||
|
QComboBox QAbstractItemView::item:selected { |
||||
|
background: rgb(232, 241, 250); |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QProgressBar{ |
||||
|
border: none; |
||||
|
text-align: center; |
||||
|
color: white; |
||||
|
background: rgb(173, 202, 232); |
||||
|
} |
||||
|
QProgressBar::chunk { |
||||
|
background: rgb(16, 135, 209); |
||||
|
} |
||||
|
|
||||
|
QProgressBar#progressBar { |
||||
|
border: none; |
||||
|
text-align: center; |
||||
|
color: white; |
||||
|
background-color: transparent; |
||||
|
background-image: url(":/White/progressBar"); |
||||
|
background-repeat: repeat-x; |
||||
|
} |
||||
|
QProgressBar#progressBar::chunk { |
||||
|
border: none; |
||||
|
background-color: transparent; |
||||
|
background-image: url(":/White/progressBarChunk"); |
||||
|
background-repeat: repeat-x; |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QCheckBox{ |
||||
|
spacing: 5px; |
||||
|
} |
||||
|
QCheckBox:enabled:checked{ |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
QCheckBox:enabled:!checked{ |
||||
|
color: rgb(70, 71, 73); |
||||
|
} |
||||
|
QCheckBox:enabled:hover{ |
||||
|
color: rgb(0, 78, 161); |
||||
|
} |
||||
|
QCheckBox:!enabled{ |
||||
|
color: rgb(80, 80, 80); |
||||
|
} |
||||
|
QCheckBox::indicator { |
||||
|
width: 20px; |
||||
|
height: 20px; |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked { |
||||
|
image: url(:/White/checkBox); |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked:hover { |
||||
|
image: url(:/White/checkBoxHover); |
||||
|
} |
||||
|
QCheckBox::indicator:unchecked:pressed { |
||||
|
image: url(:/White/checkBoxPressed); |
||||
|
} |
||||
|
QCheckBox::indicator:checked { |
||||
|
image: url(:/White/checkBoxChecked); |
||||
|
} |
||||
|
QCheckBox::indicator:checked:hover { |
||||
|
image: url(:/White/checkBoxCheckedHover); |
||||
|
} |
||||
|
QCheckBox::indicator:checked:pressed { |
||||
|
image: url(:/White/checkBoxCheckedPressed); |
||||
|
} |
||||
|
QCheckBox::indicator:indeterminate { |
||||
|
image: url(:/White/checkBoxIndeterminate); |
||||
|
} |
||||
|
QCheckBox::indicator:indeterminate:hover { |
||||
|
image: url(:/White/checkBoxIndeterminateHover); |
||||
|
} |
||||
|
QCheckBox::indicator:indeterminate:pressed { |
||||
|
image: url(:/White/checkBoxIndeterminatePressed); |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QRadioButton{ |
||||
|
spacing: 5px; |
||||
|
} |
||||
|
QRadioButton:enabled:checked{ |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
QRadioButton:enabled:!checked{ |
||||
|
color: rgb(70, 71, 73); |
||||
|
} |
||||
|
QRadioButton:enabled:hover{ |
||||
|
color: rgb(0, 78, 161); |
||||
|
} |
||||
|
QRadioButton:!enabled{ |
||||
|
color: rgb(80, 80, 80); |
||||
|
} |
||||
|
QRadioButton::indicator { |
||||
|
width: 20px; |
||||
|
height: 20px; |
||||
|
} |
||||
|
QRadioButton::indicator:unchecked { |
||||
|
image: url(:/White/radioButton); |
||||
|
} |
||||
|
QRadioButton::indicator:unchecked:hover { |
||||
|
image: url(:/White/radioButtonHover); |
||||
|
} |
||||
|
QRadioButton::indicator:unchecked:pressed { |
||||
|
image: url(:/White/radioButtonPressed); |
||||
|
} |
||||
|
QRadioButton::indicator:checked { |
||||
|
image: url(:/White/radioButtonChecked); |
||||
|
} |
||||
|
QRadioButton::indicator:checked:hover { |
||||
|
image: url(:/White/radioButtonCheckedHover); |
||||
|
} |
||||
|
QRadioButton::indicator:checked:pressed { |
||||
|
image: url(:/White/radioButtonCheckedPressed); |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QLineEdit { |
||||
|
border-radius: 4px; |
||||
|
height: 25px; |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
} |
||||
|
QLineEdit:enabled { |
||||
|
color: rgb(84, 84, 84); |
||||
|
} |
||||
|
QLineEdit:enabled:hover, QLineEdit:enabled:focus { |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
QLineEdit:!enabled { |
||||
|
color: rgb(80, 80, 80); |
||||
|
} |
||||
|
|
||||
|
/**********?????**********/ |
||||
|
QTextEdit { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
color: rgb(70, 71, 73); |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
|
||||
|
/**********????**********/ |
||||
|
QScrollArea { |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
|
||||
|
/**********????**********/ |
||||
|
QWidget#transparentWidget { |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
/**********???**********/ |
||||
|
QSpinBox { |
||||
|
border-radius: 4px; |
||||
|
height: 24px; |
||||
|
min-width: 40px; |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
} |
||||
|
QSpinBox:enabled { |
||||
|
color: rgb(60, 60, 60); |
||||
|
} |
||||
|
QSpinBox:enabled:hover, QSpinBox:enabled:focus { |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
QSpinBox:!enabled { |
||||
|
color: rgb(210, 210, 210); |
||||
|
background: transparent; |
||||
|
} |
||||
|
QSpinBox::up-button { |
||||
|
border-left: 1px solid rgb(111, 156, 207); |
||||
|
width: 18px; |
||||
|
height: 12px; |
||||
|
border-top-right-radius: 4px; |
||||
|
image: url(:/White/upButton); |
||||
|
} |
||||
|
QSpinBox::up-button:!enabled { |
||||
|
background: transparent; |
||||
|
} |
||||
|
QSpinBox::up-button:enabled:hover { |
||||
|
background: rgb(255, 255, 255, 30); |
||||
|
} |
||||
|
QSpinBox::down-button { |
||||
|
border-left: 1px solid rgb(111, 156, 207); |
||||
|
width: 18px; |
||||
|
height: 12px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
image: url(:/White/downButton); |
||||
|
} |
||||
|
QSpinBox::down-button:!enabled { |
||||
|
background: transparent; |
||||
|
} |
||||
|
QSpinBox::down-button:hover { |
||||
|
background: rgb(255, 255, 255, 30); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QLabel#grayLabel { |
||||
|
color: rgb(70, 71, 73); |
||||
|
} |
||||
|
|
||||
|
QLabel#highlightLabel { |
||||
|
color: rgb(2, 65, 132); |
||||
|
} |
||||
|
|
||||
|
QLabel#redLabel { |
||||
|
color: red; |
||||
|
} |
||||
|
|
||||
|
QLabel#grayYaHeiLabel { |
||||
|
color: rgb(175, 175, 175); |
||||
|
font-size: 16px; |
||||
|
} |
||||
|
|
||||
|
QLabel#blueLabel { |
||||
|
color: rgb(0, 160, 230); |
||||
|
} |
||||
|
|
||||
|
QLabel#listLabel { |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
|
||||
|
QLabel#lineBlueLabel { |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
|
||||
|
QLabel#graySeperateLabel { |
||||
|
background: rgb(200, 220, 230); |
||||
|
} |
||||
|
|
||||
|
QLabel#seperateLabel { |
||||
|
background: rgb(112, 153, 194); |
||||
|
} |
||||
|
|
||||
|
QLabel#radiusBlueLabel { |
||||
|
border-radius: 15px; |
||||
|
color: white; |
||||
|
font-size: 16px; |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
|
||||
|
QLabel#skinLabel[colorProperty="normal"] { |
||||
|
color: rgb(56, 99, 154); |
||||
|
} |
||||
|
QLabel#skinLabel[colorProperty="highlight"] { |
||||
|
color: rgb(0, 160, 230); |
||||
|
} |
||||
|
|
||||
|
QLabel#informationLabel { |
||||
|
qproperty-pixmap: url(:/White/information); |
||||
|
} |
||||
|
|
||||
|
QLabel#errorLabel { |
||||
|
qproperty-pixmap: url(:/White/error); |
||||
|
} |
||||
|
|
||||
|
QLabel#successLabel { |
||||
|
qproperty-pixmap: url(:/White/success); |
||||
|
} |
||||
|
|
||||
|
QLabel#questionLabel { |
||||
|
qproperty-pixmap: url(:/White/question); |
||||
|
} |
||||
|
|
||||
|
QLabel#warningLabel { |
||||
|
qproperty-pixmap: url(:/White/warning); |
||||
|
} |
||||
|
|
||||
|
QLabel#groupLabel { |
||||
|
color: rgb(56, 99, 154); |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
font-size: 15px; |
||||
|
border-top-color: transparent; |
||||
|
border-right-color: transparent; |
||||
|
border-left-color: transparent; |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QToolButton#nsccButton { |
||||
|
border: none; |
||||
|
color: rgb(2, 65, 132); |
||||
|
background: transparent; |
||||
|
padding: 10px; |
||||
|
qproperty-icon: url(:/White/nscc); |
||||
|
qproperty-iconSize: 32px 32px; |
||||
|
qproperty-toolButtonStyle: ToolButtonTextUnderIcon; |
||||
|
} |
||||
|
QToolButton#nsccButton:hover { |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
|
||||
|
QToolButton#transferButton { |
||||
|
border: none; |
||||
|
color: rgb(2, 65, 132); |
||||
|
background: transparent; |
||||
|
padding: 10px; |
||||
|
qproperty-icon: url(:/White/transfer); |
||||
|
qproperty-iconSize: 32px 32px; |
||||
|
qproperty-toolButtonStyle: ToolButtonTextUnderIcon; |
||||
|
} |
||||
|
QToolButton#transferButton:hover { |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
|
||||
|
/**********??**********/ |
||||
|
QPushButton{ |
||||
|
border-radius: 4px; |
||||
|
border: none; |
||||
|
width: 75px; |
||||
|
height: 25px; |
||||
|
} |
||||
|
QPushButton:enabled { |
||||
|
background: rgb(120, 170, 220); |
||||
|
color: white; |
||||
|
} |
||||
|
QPushButton:!enabled { |
||||
|
background: rgb(180, 180, 180); |
||||
|
color: white; |
||||
|
} |
||||
|
QPushButton:enabled:hover{ |
||||
|
background: rgb(100, 160, 220); |
||||
|
} |
||||
|
QPushButton:enabled:pressed{ |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
|
||||
|
QPushButton#blueButton { |
||||
|
color: white; |
||||
|
} |
||||
|
QPushButton#blueButton:enabled { |
||||
|
background: rgb(0, 78, 161); |
||||
|
color: white; |
||||
|
} |
||||
|
QPushButton:!enabled { |
||||
|
background: rgb(180, 180, 180); |
||||
|
color: white; |
||||
|
} |
||||
|
QPushButton#blueButton:enabled:hover { |
||||
|
background: rgb(2, 65, 132); |
||||
|
} |
||||
|
QPushButton#blueButton:enabled:pressed { |
||||
|
background: rgb(6, 94, 187); |
||||
|
} |
||||
|
|
||||
|
QPushButton#selectButton { |
||||
|
border: none; |
||||
|
border-radius: none; |
||||
|
border-left: 1px solid rgb(111, 156, 207); |
||||
|
background: transparent; |
||||
|
image: url(:/White/scan); |
||||
|
color: rgb(51, 51, 51); |
||||
|
} |
||||
|
QPushButton#selectButton:enabled:hover{ |
||||
|
background: rgb(187, 212, 238); |
||||
|
} |
||||
|
QPushButton#selectButton:enabled:pressed{ |
||||
|
background: rgb(120, 170, 220); |
||||
|
} |
||||
|
|
||||
|
QPushButton#linkButton { |
||||
|
background: transparent; |
||||
|
color: rgb(0, 160, 230); |
||||
|
text-align:left; |
||||
|
} |
||||
|
QPushButton#linkButton:hover { |
||||
|
color: rgb(20, 185, 255); |
||||
|
text-decoration: underline; |
||||
|
} |
||||
|
QPushButton#linkButton:pressed { |
||||
|
color: rgb(0, 160, 230); |
||||
|
} |
||||
|
|
||||
|
QPushButton#transparentButton { |
||||
|
background: transparent; |
||||
|
} |
||||
|
|
||||
|
/*****************?????*******************/ |
||||
|
QPushButton#minimizeButton { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/minimizeHover); |
||||
|
} |
||||
|
QPushButton#minimizeButton:hover { |
||||
|
image: url(:/White/minimize); |
||||
|
} |
||||
|
QPushButton#minimizeButton:pressed { |
||||
|
image: url(:/White/minimizePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#maximizeButton[maximizeProperty="maximize"] { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/maximizeHover); |
||||
|
} |
||||
|
QPushButton#maximizeButton[maximizeProperty="maximize"]:hover { |
||||
|
image: url(:/White/maximize); |
||||
|
} |
||||
|
QPushButton#maximizeButton[maximizeProperty="maximize"]:pressed { |
||||
|
image: url(:/White/maximizePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#maximizeButton[maximizeProperty="restore"] { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/restoreHover); |
||||
|
} |
||||
|
QPushButton#maximizeButton[maximizeProperty="restore"]:hover { |
||||
|
image: url(:/White/restore); |
||||
|
} |
||||
|
QPushButton#maximizeButton[maximizeProperty="restore"]:pressed { |
||||
|
image: url(:/White/restorePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#closeButton { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/closeHover); |
||||
|
} |
||||
|
QPushButton#closeButton:hover { |
||||
|
image: url(:/White/close); |
||||
|
} |
||||
|
QPushButton#closeButton:pressed { |
||||
|
image: url(:/White/closePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#skinButton { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/skinHover); |
||||
|
} |
||||
|
QPushButton#skinButton:hover { |
||||
|
image: url(:/White/skin); |
||||
|
} |
||||
|
QPushButton#skinButton:pressed { |
||||
|
image: url(:/White/skinPressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#feedbackButton { |
||||
|
border-radius: none; |
||||
|
border-bottom-left-radius: 4px; |
||||
|
border-bottom-right-radius: 4px; |
||||
|
background: rgb(120, 170, 220); |
||||
|
image: url(:/White/feedbackHover); |
||||
|
} |
||||
|
QPushButton#feedbackButton:hover { |
||||
|
image: url(:/White/feedback); |
||||
|
} |
||||
|
QPushButton#feedbackButton:pressed { |
||||
|
image: url(:/White/feedbackPressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#closeTipButton { |
||||
|
border-radius: none; |
||||
|
border-image: url(:/White/close); |
||||
|
background: transparent; |
||||
|
} |
||||
|
QPushButton#closeTipButton:hover { |
||||
|
border-image: url(:/White/closeHover); |
||||
|
} |
||||
|
QPushButton#closeTipButton:pressed { |
||||
|
border-image: url(:/White/closePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#changeSkinButton{ |
||||
|
border-radius: 4px; |
||||
|
border: 2px solid rgb(111, 156, 207); |
||||
|
background: rgb(204, 227, 252); |
||||
|
} |
||||
|
QPushButton#changeSkinButton:hover{ |
||||
|
border-color: rgb(60, 150, 200); |
||||
|
} |
||||
|
QPushButton#changeSkinButton:pressed, QPushButton#changeSkinButton:checked{ |
||||
|
border-color: rgb(0, 160, 230); |
||||
|
} |
||||
|
|
||||
|
QPushButton#transferButton { |
||||
|
padding-left: 5px; |
||||
|
padding-right: 5px; |
||||
|
color: white; |
||||
|
background: rgb(0, 78, 161); |
||||
|
} |
||||
|
QPushButton#transferButton:hover { |
||||
|
background: rgb(2, 65, 132); |
||||
|
} |
||||
|
QPushButton#transferButton:pressed { |
||||
|
background: rgb(6, 94, 187); |
||||
|
} |
||||
|
QPushButton#transferButton[iconProperty="left"] { |
||||
|
qproperty-icon: url(:/White/left); |
||||
|
} |
||||
|
QPushButton#transferButton[iconProperty="right"] { |
||||
|
qproperty-icon: url(:/White/right); |
||||
|
} |
||||
|
|
||||
|
QPushButton#openButton { |
||||
|
border-radius: none; |
||||
|
image: url(:/White/open); |
||||
|
background: transparent; |
||||
|
} |
||||
|
QPushButton#openButton:hover { |
||||
|
image: url(:/White/openHover); |
||||
|
} |
||||
|
QPushButton#openButton:pressed { |
||||
|
image: url(:/White/openPressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#deleteButton { |
||||
|
border-radius: none; |
||||
|
image: url(:/White/delete); |
||||
|
background: transparent; |
||||
|
} |
||||
|
QPushButton#deleteButton:hover { |
||||
|
image: url(:/White/deleteHover); |
||||
|
} |
||||
|
QPushButton#deleteButton:pressed { |
||||
|
image: url(:/White/deletePressed); |
||||
|
} |
||||
|
|
||||
|
QPushButton#menuButton { |
||||
|
text-align: left center; |
||||
|
padding-left: 3px; |
||||
|
color: rgb(84, 84, 84); |
||||
|
border: 1px solid rgb(111, 156, 207); |
||||
|
background: white; |
||||
|
} |
||||
|
QPushButton#menuButton::menu-indicator{ |
||||
|
subcontrol-position: right center; |
||||
|
subcontrol-origin: padding; |
||||
|
image: url(:/White/arrowBottom); |
||||
|
padding-right: 3px; |
||||
|
} |
@ -1,4 +1,4 @@ |
|||||
#pragma once |
#pragma once |
||||
|
|
||||
#define VERSION 3 |
|
||||
|
#define VERSION 4 |
||||
#define MAUFACTURER "iflytop" |
#define MAUFACTURER "iflytop" |
Write
Preview
Loading…
Cancel
Save
Reference in new issue