mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
136 lines
7.9 KiB
C++
136 lines
7.9 KiB
C++
#pragma once
|
|
#include <string>
|
|
|
|
static std::string QSS_BTN_CONFIRM =
|
|
"QPushButton { background-color:rgb(28, 145, 138); border-radius:10px; border: none; color:white; font:bold 18px \"Microsoft YaHei\";}"
|
|
"QPushButton:hover { background-color:rgb(10,125,215);border:2px solid rgb(1,239,255);color:rgb(1,239,255)}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_BTN_CANCEL =
|
|
"QPushButton { background-color:rgb(200, 200, 200);border-radius:10px;border:0px solid rgb(10,120,215);color:white;font:bold 18px \"Microsoft YaHei\";}"
|
|
"QPushButton:hover { background-color:rgb(10,125,215);border:2px solid rgb(1,239,255);color:rgb(1,239,255)}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_COMBOX =
|
|
"QComboBox {border: 1px solid rgb(18, 251, 255); background-color: rgb(5, 47, 77); border-radius: 5px; color:white; font: bold 16px;}"
|
|
"QComboBox QAbstractItemView { border: 1px solid gray; background-color: rgba(8, 54, 91); border-radius: 5px;}"
|
|
"QComboBox::drop-down { border-radius: 5px; width: 30px; }"
|
|
"QComboBox:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_COMBOX_14 =
|
|
"QComboBox {border: 1px solid rgb(18, 251, 255); background-color: rgb(5, 47, 77); border-radius: 5px; color:white; font: bold 14px;}"
|
|
"QComboBox QAbstractItemView { border: 1px solid gray; background-color: rgba(8, 54, 91); border-radius: 5px;}"
|
|
"QComboBox::drop-down { border-radius: 5px; width: 30px; }"
|
|
"QComboBox:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_LINEEDIT =
|
|
"QLineEdit { background-color: rgb(12, 39, 58); border: 1px solid rgb(18, 251, 255); border-radius: 5px; color:white; font: bold 14px;}"
|
|
"QLineEdit:disabled { border: 1px solid gray; color:rgb(150,150,150);}";
|
|
|
|
static std::string STYLE_BTN =
|
|
"QPushButton { background-color:rgb(4, 96, 142);border-radius:10px;border:0px solid rgb(10,120,215);color:white;font:bold 18px \"Microsoft YaHei\";}"
|
|
"QPushButton:hover { background-color:rgb(10,125,215);border:2px solid rgb(1,239,255);color:rgb(1,239,255)}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string STYLE_BTN_ACTIVE =
|
|
"QPushButton { background-color:rgb(4, 96, 142);border-radius:10px;border:2px solid rgb(1,239,255);color:rgb(1,239,255);font:bold 18px \"Microsoft YaHei\";}"
|
|
"QPushButton:hover { background-color:rgb(10,125,215);border:2px solid rgb(1,239,255);color:rgb(1,239,255)}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_LABEL_BKG_1 =
|
|
"QLabel { background-color:rgb(5, 47, 77); border:none; border-radius:5px; }"
|
|
"QLabel:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_LABEL_BKG_2 =
|
|
"QLabel { background-color:rgb(8, 54, 91); border:none; border-radius:5px; }"
|
|
"QLabel:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_BOX =
|
|
"QLabel { background-color:rgba(200,200,200,20); border:0px solid;border-color:rgb(5,255,255);border-radius:2px;font:bold 16px;color:white; }"
|
|
"QLabel:hover {border: 1px solid rgb(1, 183, 209);}"
|
|
"QLabel:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_BOX_ACTIVE =
|
|
"QLabel { background-color:rgb(7, 72, 111); border:2px solid;border-color:rgb(1, 183, 209); border-radius:2px;font:bold 16px;color:white; }"
|
|
"QLabel:hover {border: 1px solid rgb(1, 183, 209);}"
|
|
"QLabel:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string QSS_TITLE =
|
|
"QLabel { background:transparent; color: rgb(99, 196, 216); font: bold 16px; border: none; padding-top: 0px;}"
|
|
"QLabel:disabled { color:rgb(150,150,150);}";
|
|
|
|
static std::string STYLE_TITLE_ICON =
|
|
"padding-top: 0px;"
|
|
"background-color: qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 rgba(0, 71, 105, 255),stop:1 rgba(0, 71, 105, 0));"
|
|
"border-radius: 0px; color:white; font: bold 16px; border-left: 8px solid rgba(33,255,210);";
|
|
|
|
static std::string QSS_UNDERLINE =
|
|
"background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0,stop:0 rgba(9,194,207,200),stop:1 rgba(9,194,207,0));";
|
|
|
|
const std::string QSS_BTN_MGR =
|
|
"QPushButton { background-color:rgb(10, 34, 63); border-radius:5px; border:1px solid rgb(33, 105, 195); color:white; font:bold 18px \"Microsoft YaHei\";}"
|
|
"QPushButton:hover { background-color:rgb(10,125,215); border:2px solid rgb(1,239,255); color:rgb(1,239,255)}"
|
|
//"QPushButton:pressed{border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;border-style:inset; }"
|
|
"QPushButton:disabled{color:rgb(150,150,150);}";
|
|
|
|
const std::string QSS_BTN_MGR_ACTIVE =
|
|
"QPushButton { background-color:rgb(33, 105, 195);border-radius:5px; border:1px solid rgb(68, 167, 252);color:white;font:bold 18px \"Microsoft YaHei\"; }"
|
|
"QPushButton:hover { background-color:rgb(10,125,215); border:2px solid rgb(1,239,255); color:rgb(1,239,255)}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;border-style:inset; }"
|
|
"QPushButton:disabled { color:rgb(150,150,150); }";
|
|
|
|
//"background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 transparent, stop:%1 red, stop:1 blue);"
|
|
|
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
|
/// === 表格
|
|
static const std::string QSS_TABLE =
|
|
"border: 1px solid rgb(28, 121, 122); background-color:rgb(7, 46, 74);";
|
|
|
|
// 表头
|
|
static const std::string QSS_TABLE_HEAD =
|
|
"background-color: rgb(18, 93, 113); color:rgb(255, 255, 255); font:bold 16px;"
|
|
"border-width:1 1 1 1px; border-style:inset solid; border-color:rgb(120, 120, 120);";
|
|
|
|
// 单元格
|
|
static const std::string QSS_TABLE_CELL =
|
|
"background-color:transparent; color:rgb(255,255,255); font:bold 15px;padding-left:1;"
|
|
"border-width:0 0 0 0px; border-style:inset solid; border-color:rgba(180,180,180,200);";
|
|
|
|
static const std::string QSS_TABLE_BTN_VIEW =
|
|
"QPushButton { background-color: rgb(28, 145, 138); color:white; border-radius:2px; border:none; font:bold 14px;}"
|
|
"QPushButton:hover { border: 1px solid white;}"
|
|
"QPushButton:pressed { border-width:3px 0 0 3px;border-style:inset;}"
|
|
"QPushButton:disabled { color:rgb(150,150,150);}";
|
|
|
|
const std::string BTN_NEW = // 78, 149, 143
|
|
"QPushButton{background-color:rgb(38,233,233);color:white;border-radius:5px;border:2px solid rgb(10,120,215);font:bold 18px;}"
|
|
"QPushButton:hover{background-color:rgb(10,125,215);}"
|
|
"QPushButton:pressed{border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled{color:rgb(150,150,150);}";
|
|
|
|
const std::string BTN_EDIT =
|
|
"QPushButton{background-color:rgb(248,147,45);color:white;border-radius:5px;border:2px solid rgb(10,120,215);font:bold 15px;}"
|
|
"QPushButton:hover{background-color:rgb(10,125,215);}"
|
|
"QPushButton:pressed{border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled{color:rgb(150,150,150);}";
|
|
|
|
const std::string BTN_DELETE =
|
|
"QPushButton{background-color:rgb(252,83,83);color:white;border-radius:5px;border:2px solid rgb(10,120,215);font:bold 15px;}"
|
|
"QPushButton:hover{background-color:rgb(10,125,215);}"
|
|
"QPushButton:pressed{border-width:3px 0 0 3px;background-color:rgb(150,150,150);border-style:inset;}"
|
|
"QPushButton:disabled{color:rgb(150,150,150);}";
|
|
|
|
// 表格行的斑马色0
|
|
static const std::string QSS_TABLE_ROW_0 =
|
|
"background-color:rgb(7, 46, 74); border-width:0 0 1 0px; border-style:inset solid; border-color:rgba(120,120,120, 100);";
|
|
// 表格行的斑马色1
|
|
static const std::string QSS_TABLE_ROW_1 =
|
|
"background-color:rgb(7, 46, 74); border-width:0 0 1 0px; border-style:inset solid; border-color:rgba(120,120,120, 100);";
|
|
// 表格行的高亮显示
|
|
static const std::string QSS_TABLE_ROW_HIGHLIGHT =
|
|
"background-color:rgba(14,45,60,200);border:1px solid rgba(255,0,0,100);"; |