1212更新
parent
5a271dd374
commit
be4f422da7
@ -1,281 +1,243 @@
|
|||||||
|
/* ==================== Area 样式表 ==================== */
|
||||||
|
/* 统一项目样式风格 */
|
||||||
|
|
||||||
|
/* ==================== 按钮样式 ==================== */
|
||||||
|
QPushButton#okBtn {
|
||||||
QPushButton#okBtn, QPushButton#delAreaBtn {
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
font-size: 22px;
|
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 6px 12px;
|
||||||
|
min-height: 28px;
|
||||||
|
background-color: #DDEEFF;
|
||||||
|
color: #2277EF;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#okBtn:hover, QPushButton#delAreaBtn:hover {
|
QPushButton#delAreaBtn {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 22px;
|
font-size: 18px;
|
||||||
|
|
||||||
font: bold;
|
|
||||||
|
|
||||||
border: none;
|
border: none;
|
||||||
|
border-radius: 4px;
|
||||||
margin-bottom: -2px
|
padding: 6px 12px;
|
||||||
|
min-height: 28px;
|
||||||
|
background-color: #FFEEEE;
|
||||||
|
color: #EE1169;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#wirteDIDOforceBtn{
|
QPushButton#okBtn:hover {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 16px;
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
padding-left: 5px;
|
border: none;
|
||||||
|
background-color: #EEFFFF;
|
||||||
padding-right: 5px;
|
color: #2277EF;
|
||||||
|
}
|
||||||
padding-top: 5px;
|
|
||||||
|
|
||||||
padding-bottom: 5px;
|
|
||||||
|
|
||||||
border: 1px solid black;
|
QPushButton#delAreaBtn:hover {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
|
font-weight: bold;
|
||||||
|
border: none;
|
||||||
|
background-color: #FFDDDD;
|
||||||
|
color: #EE1169;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#wirteDIDOforceBtn {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
|
padding: 5px;
|
||||||
|
border: 1px solid #CCCCCC;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
color: #333333;
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#wirteDIDOforceBtn:hover{
|
QPushButton#wirteDIDOforceBtn:hover {
|
||||||
|
font-weight: bold;
|
||||||
font: bold;
|
background-color: #F5F5F5;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
QPushButton#profibusForceBtn {
|
QPushButton#profibusForceBtn {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 22px;
|
font-size: 18px;
|
||||||
|
padding: 5px;
|
||||||
padding-left: 5px;
|
border: 1px solid #CCCCCC;
|
||||||
|
|
||||||
padding-right: 5px;
|
|
||||||
|
|
||||||
padding-top: 6px;
|
|
||||||
|
|
||||||
padding-bottom: 5px;
|
|
||||||
|
|
||||||
border: 1px solid black;
|
|
||||||
|
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
background-color: #FFFFFF;
|
||||||
/* background-color: #328ffc;*/
|
color: #333333;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#profibusForceBtn:hover{
|
QPushButton#profibusForceBtn:hover {
|
||||||
|
font-weight: bold;
|
||||||
|
background-color: #F5F5F5;
|
||||||
font: bold;
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QPushButton#deviceAddButton {
|
||||||
QPushButton#deviceAddButton{
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
color: #2277EF;
|
||||||
color: #328ffc;
|
font-size: 14px;
|
||||||
|
|
||||||
font-size: 20px;
|
|
||||||
|
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
QPushButton#addareabutton {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
color: #2277EF;
|
||||||
QPushButton#addareabutton{
|
font-size: 14px;
|
||||||
|
|
||||||
color: #328ffc;
|
|
||||||
|
|
||||||
font-size: 20px;
|
|
||||||
|
|
||||||
padding-top: 7px;
|
padding-top: 7px;
|
||||||
|
background-color: transparent;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
QPushButton#initAddDeviceButton,
|
||||||
|
QPushButton#initAreaAddButton {
|
||||||
}
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 24px;
|
||||||
QPushButton#initAddDeviceButton, QPushButton#initAreaAddButton{
|
color: #2277EF;
|
||||||
|
|
||||||
font-size: 45px;
|
|
||||||
|
|
||||||
color: #328ffc;
|
|
||||||
|
|
||||||
background-color: rgba(255, 255, 255, 0);
|
background-color: rgba(255, 255, 255, 0);
|
||||||
|
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QPushButton#initAddDeviceButton:hover, QPushButton#initAreaAddButton:hover, QPushButton#deviceAddButton:hover, QPushButton#addareabutton:hover{
|
QPushButton#initAddDeviceButton:hover,
|
||||||
|
QPushButton#initAreaAddButton:hover,
|
||||||
color: #0f8ef0;
|
QPushButton#deviceAddButton:hover,
|
||||||
|
QPushButton#addareabutton:hover {
|
||||||
font: bold;
|
color: #3787F7;
|
||||||
|
font-weight: bold;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
|
background-color: transparent;
|
||||||
margin-bottom: -4px
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==================== 标签样式 ==================== */
|
||||||
|
QLabel#wirteDIDOareaMessLabel,
|
||||||
QLabel#wirteDIDOareaMessLabel, QLabel#wirteDIDOareaValueLabel{
|
QLabel#wirteDIDOareaValueLabel {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
QLabel#wirteDIDOareaValueLabel, QLabel#readDIDOareaValueLabel{
|
|
||||||
|
|
||||||
color: #0160aa;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#areaMessLabel, QLabel#areaValueLabel{
|
QLabel#wirteDIDOareaValueLabel,
|
||||||
|
QLabel#readDIDOareaValueLabel {
|
||||||
font-size: 28px;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
color: #2277EF;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#massesageLabel{
|
QLabel#areaMessLabel,
|
||||||
|
QLabel#areaValueLabel {
|
||||||
font-size: 23px;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#areaValueLabel{
|
QLabel#massesageLabel {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
color: #0160aa;
|
font-size: 16px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#readDIDOareaMessLabel, QLabel#readDIDOareaValueLabel{
|
QLabel#areaValueLabel {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 23px;
|
color: #2277EF;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#dataTypeLabel, QLabel#dataOrderLabel, QLabel#byteLineLabel{
|
QLabel#readDIDOareaMessLabel,
|
||||||
|
QLabel#readDIDOareaValueLabel {
|
||||||
font-size: 24px;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#pvUpperLimit, QLabel#pvLowerLimit, QLabel#pvUnit{
|
QLabel#dataTypeLabel,
|
||||||
|
QLabel#dataOrderLabel,
|
||||||
font-size: 24px;
|
QLabel#byteLineLabel {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QLabel#pvUpperLimit,
|
||||||
QLabel#areaValueLabel{
|
QLabel#pvLowerLimit,
|
||||||
|
QLabel#pvUnit {
|
||||||
color: #0160aa;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLabel#deviceNameLabel, QLabel#pvUpperLimitLabel, QLabel#pvLowerLimitLabel, QLabel#pvUnitLabel{
|
QLabel#deviceNameLabel,
|
||||||
|
QLabel#pvUpperLimitLabel,
|
||||||
font:28px;
|
QLabel#pvLowerLimitLabel,
|
||||||
|
QLabel#pvUnitLabel {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit#byteLineEdit{
|
/* ==================== 输入框样式 ==================== */
|
||||||
|
QLineEdit#byteLineEdit {
|
||||||
font-size: 20px;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
border-bottom: 2px solid #CCCCCC;
|
||||||
border-bottom: 2px solid gary;
|
background-color: transparent;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QLineEdit#areaLineEdit {
|
QLineEdit#areaLineEdit {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 28px;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
QLineEdit#wirteDIDOareaLineEdit {
|
|
||||||
|
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
border-bottom: 2px solid #CCCCCC;
|
||||||
border-bottom: 2px solid gary;
|
background-color: transparent;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit#areaLineEdit {
|
QLineEdit#wirteDIDOareaLineEdit {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
font-size: 28px;
|
font-size: 14px;
|
||||||
|
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
border-bottom: 2px solid #CCCCCC;
|
||||||
border-bottom: 2px solid gary;
|
background-color: transparent;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QLineEdit#deviceName, QLineEdit#pvUpperLimit, QLineEdit#pvLowerLimit, QLineEdit#pvUnit{
|
QLineEdit#deviceName,
|
||||||
|
QLineEdit#pvUpperLimit,
|
||||||
font: 28px;
|
QLineEdit#pvLowerLimit,
|
||||||
|
QLineEdit#pvUnit {
|
||||||
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
border-top: none;
|
border-top: none;
|
||||||
|
|
||||||
border-left: none;
|
border-left: none;
|
||||||
|
|
||||||
border-right: none;
|
border-right: none;
|
||||||
|
border-bottom: 2px solid #CCCCCC;
|
||||||
border-bottom: 2px solid gary;
|
background-color: transparent;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* ==================== 下拉框样式 ==================== */
|
||||||
QComboBox#dataTypeCombox, QComboBox#orderCombox{
|
QComboBox#dataTypeCombox,
|
||||||
|
QComboBox#orderCombox {
|
||||||
font-size: 20px;
|
font-family: "PingFangSC-Regular", "Microsoft YaHei", sans-serif;
|
||||||
|
font-size: 14px;
|
||||||
/* border: 1px solid black;*/
|
border: none;
|
||||||
|
background-color: #FFFFFF;
|
||||||
/* border-radius: 5px;*/
|
height: 35px;
|
||||||
|
padding: 5px 30px 5px 5px;
|
||||||
|
border-radius: 5px;
|
||||||
|
min-height: 35px;
|
||||||
|
max-height: 35px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QComboBox#dataTypeCombox::drop-down,
|
||||||
|
QComboBox#orderCombox::drop-down {
|
||||||
|
image: url(Static/down.png);
|
||||||
|
subcontrol-origin: padding;
|
||||||
|
subcontrol-position: top right;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
width: 20px;
|
||||||
|
border: none;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
QComboBox#dataTypeCombox::item,
|
||||||
|
QComboBox#orderCombox::item {
|
||||||
|
padding: 8px 5px;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue