1 Star 2 Fork 0

Zz_er / transaction_manager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
qssstyle.cpp 54.09 KB
一键复制 编辑 原始数据 按行查看 历史
Zz_er 提交于 2022-05-14 14:17 . 修改样式表
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461
#include "qssstyle.h"
qssStyle::qssStyle():
_style_black("/* === Shared === */"
"QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox, "
"QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog {"
" background-color: #222222;"
" color: #BBBBBB;"
" font-family: 'Segoe UI';"
"}"
" "
"/* === QWidget === */"
"QWidget:window {"
" background: #222222;"
" color: #BBBBBB;"
" font-family: 'Segoe UI';"
"}"
" "
"/* === QToolTip === */"
"QToolTip {"
" background-color: #000000;"
" border: 2px solid #333333;"
" color: yellow;"
"}"
" "
"/* === QPushButton === */"
"QPushButton {"
" border: 1px solid #333333;"
" padding: 4px;"
" min-width: 65px;"
" min-height: 12px;"
"}"
" "
"QPushButton:hover {"
" background-color: #333333;"
" border-color: #444444;"
"}"
" "
"QPushButton:pressed {"
" background-color: #111111;"
" border-color: #333333;"
" color: yellow;"
"}"
" "
"QPushButton:disabled {"
" color: #333333;"
"}"
" "
"/* === Checkable items === */"
"QCheckBox::indicator, QRadioButton::indicator, QTreeView::indicator {"
" width: 16px;"
" height: 16px;"
" background-color: #111111;"
" border: 1px solid #333333;"
"}"
" "
"QRadioButton::indicator {"
" border-radius: 8px;"
"}"
" "
"QCheckBox::indicator::checked, QRadioButton::indicator::checked, QTreeView::indicator::checked {"
" background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #111111);"
"}"
" "
"QCheckBox::indicator:disabled, QRadioButton::indicator:disabled, QTreeView::indicator:disabled {"
" background-color: #444444;"
"}"
" "
"QCheckBox::indicator::checked:disabled, QRadioButton::indicator::checked:disabled, QTreeView::indicator::checked:disabled {"
" background-color: qradialgradient(cx:0.5, cy:0.5, fx:0.25, fy:0.15, radius:0.3, stop:0 #BBBBBB, stop:1 #444444);"
"}"
" "
"/* === QComboBox === */"
"QComboBox {"
" background-color: black;"
" border: 1px solid #333333;"
" color: white;"
" padding:1px 2em 1px 3px;"
"}"
" "
"QComboBox::drop-down {"
" subcontrol-origin: padding;"
" subcontrol-position: top right;"
" border-left: 1px solid #333333;"
"}"
" "
"QComboBox::down-arrow {"
" border: 2px solid #333333;"
" width: 6px;"
" height: 6px;"
" background: #5f5f5f;"
"}"
" "
"/* === QGroupBox === */"
"QGroupBox {"
" border: 2px solid #333333;"
" margin-top: 2ex;"
"}"
" "
"QGroupBox::title {"
" color: yellow;"
" subcontrol-origin: margin;"
" subcontrol-position: top left;"
" margin-left: 5px;"
"}"
" "
"/* === QTabWidget === */"
"QTabWidget::pane {"
" background: #222222;"
" border: 2px solid #333333;"
"}"
" "
"/* === QTabBar === */"
"QTabBar::tab {"
" background: transparent;"
" border: 1px solid #333333;"
" border-bottom: none;"
" color: #BBBBBB;"
" padding-left: 5px;"
" padding-right: 10px;"
" padding-top: 3px;"
" padding-bottom: 3px;"
"}"
" "
"QTabBar::tab:hover {"
" background-color: #333333;"
" border: 1px solid #444444;"
" border-bottom: none;"
"}"
" "
"QTabBar::tab:selected {"
" background-color: #111111;"
" border: 1px solid #333333;"
" border-top: 1px solid yellow;"
" border-bottom: none;"
" color: yellow"
"}"
" "
"/* === QToolBar === */"
"QToolBar {"
" background-color: #222222;"
" border: none;"
" padding: 1px;"
"}"
" "
"QToolBar:handle {"
" background: #222222;"
" border-left: 1px dotted yellow;"
" color: #BBBBBB;"
"}"
" "
"QToolBar::separator {"
" width: 6px;"
" background-color: #222222;"
"}"
" "
"/* === QToolButton === */"
"QToolButton {"
" border: 1px solid #333333;"
" margin: 1px;"
"}"
" "
"QToolButton:hover {"
" background-color: #333333;"
" border: 1px solid #444444;"
"}"
" "
"QToolButton[popupMode='1'] { /* only for MenuButtonPopup */"
" padding-right: 20px; /* make way for the popup button */"
"}"
" "
"QToolButton::menu-button {"
" border-left: 1px solid #333333;"
" background: transparent;"
" width: 16px;"
"}"
" "
"QToolButton::menu-button:hover {"
" border-left: 1px solid #444444;"
" background: transparent;"
" width: 16px;"
"}"
" "
"QToolButton:checked, QToolButton:pressed {"
" background-color: #111111;"
" color: yellow;"
"}"
" "
"/* === QMenu === */"
"QMenu {"
" background-color: black;"
" border: 1px solid gray;"
" color: white;"
" padding: 1px;"
"}"
" "
"QMenu::item {"
" padding: 2px 25px 2px 20px;"
" border: 1px solid transparent;"
"}"
" "
"QMenu::item:disabled {"
" color: #666666;"
"}"
" "
"QMenu::item:selected {"
" border-color: gray;"
" background: #222222;"
"}"
" "
"QMenu::icon:checked {"
" "
"}"
" "
"QMenu::separator {"
" height: 1px;"
" background: #222222;"
" margin-left: 10px;"
" margin-right: 10px;"
" margin-top: 1px;"
" margin-bottom: 1px;"
"}"
" "
"QMenu::indicator {"
" width: 13px;"
" height: 13px;"
"}"
" "
"/* === QMenuBar === */"
"QMenuBar {"
" background-color: black;"
" color: white;"
"}"
" "
"QMenuBar::item {"
" background: transparent;"
"}"
" "
"QMenuBar::item:disabled {"
" color: gray;"
"}"
" "
"QMenuBar::item:selected {"
" background: #222222;"
"}"
" "
"QMenuBar::item:pressed {"
" background: #444444;"
"}"
" "
"/* === QScrollBar:vertical === */"
"QScrollBar:vertical {"
" background: #111111;"
" width: 16px;"
" margin: 16px 0 16px 0;"
"}"
" "
"QScrollBar::handle:vertical {"
" background: #555555;"
" min-height: 16px;"
"}"
" "
"QScrollBar::add-line:vertical {"
" background: #444444;"
" height: 16px;"
" subcontrol-position: bottom;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::sub-line:vertical {"
" background: #444444;"
" height: 16px;"
" subcontrol-position: top;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {"
" background: none;"
"}"
" "
"QScrollBar:up-arrow:vertical, QScrollBar:down-arrow:vertical {"
" border: 2px solid #333333;"
" width: 6px;"
" height: 6px;"
" background: #5f5f5f;"
"}"
" "
"/* === QScrollBar:horizontal === */"
"QScrollBar:horizontal {"
" background: #111111;"
" height: 16px;"
" margin: 0 16px 0 16px;"
"}"
" "
"QScrollBar::handle:horizontal {"
" background: #555555;"
" min-width: 16px;"
"}"
" "
"QScrollBar::add-line:horizontal {"
" background: #444444;"
" width: 16px;"
" subcontrol-position: right;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::sub-line:horizontal {"
" background: #444444;"
" width: 16px;"
" subcontrol-position: left;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {"
" background: none;"
"}"
" "
"QScrollBar:left-arrow:horizontal, QScrollBar:right-arrow:horizontal {"
" border: 2px solid #333333;"
" width: 6px;"
" height: 6px;"
" background: #5f5f5f;"
"}"
" "
"/* =================== */"
"QLineEdit, QListView, QTreeView, QTableView, QAbstractSpinBox {"
" background-color: black;"
" color: #BBBBBB;"
" border: 1px solid #333333;"
"}"
" "
"QAbstractScrollArea, QLineEdit, QTextEdit, QAbstractSpinBox, QComboBox {"
" border-color: #333333;"
" border: 1px solid #333333;"
" "
"}"
" "
"/* === QHeaderView === */"
"QHeaderView::section {"
" background: #222222;"
" border: 0;"
" color: #BBBBBB;"
" padding: 3px 0 3px 4px;"
"}"
" "
"/* === QListView === */"
"QListView::item:hover {"
" background: #333333;"
"}"
" "
"QListView::item:selected {"
" background: #111111;"
" color: yellow;"
"}"
" "
"/* === QTableView === */"
"QTableView::item:hover {"
" background: #333333;"
"}"
" "
"QTableView::item:hover {"
" background: #111111;"
" color: yellow;"
"}"
" "
"/* === QTreeView === */"
"QTreeView::item {"
" background: black;"
"}"
" "
"QTreeView::item:hover {"
" background: #333333;"
"}"
" "
"QTreeView::item:selected {"
" background: #111111;"
" color: yellow;"
"}"
" "
"QTreeView::branch {"
" "
"}"
" "
"QTreeView::branch:has-siblings:adjoins-item {"
" "
"}"
" "
"QTreeView::branch:has-siblings:!adjoins-item {"
" "
"}"
" "
"QTreeView::branch:closed:has-children:has-siblings {"
" "
"}"
" "
"QTreeView::branch:has-children:!has-siblings:closed {"
" "
"}"
" "
"QTreeView::branch:!has-children:!has-siblings:adjoins-item {"
" "
"}"
" "
"QTreeView::branch:open:has-children:has-siblings {"
" "
"}"
" "
"QTreeView::branch:open:has-children:!has-siblings {"
" "
"}"
" "
"/* === Customizations === */"
"QFrame#infoLabel {"
" border: 1px inset #333333;"
"}"
"2."
" "
".QWidget {"
" background-color: beige;"
"}"
" "
"QToolBar {"
" background-color: beige;"
"}"
" "
"QDialog, QFileDialog {"
" background-color: beige;"
"}"
" "
"QTabWidget::pane { /* The tab widget frame */"
" border-top: 2px solid #C2C7CB;"
"}"
" "
"QTabWidget::tab-bar {"
" left: 5px; /* move to the right by 5px */"
"}"
" "
"QTabBar, QTabWidget {"
" background-color: beige;"
"}"
"QTabBar::tab {"
" background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
" stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,"
" stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);"
" border: 1px solid darkkhaki;"
" border-bottom-color: #C2C7CB; /* same as the pane color */"
" border-top-left-radius: 4px;"
" border-top-right-radius: 4px;"
" min-width: 8ex;"
" padding: 2px;"
" }"
"QTabBar::tab:selected, QTabBar::tab:hover {"
" background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,"
" stop: 0 #fafafa, stop: 0.4 #f4f4f4,"
" stop: 0.5 #e7e7e7, stop: 1.0 #fafafa);"
"}"
" "
"QTabBar::tab:selected {"
" border-color: #9B9B9B;"
" border-bottom-color: #C2C7CB; /* same as pane color */"
"}"
" "
"QTabBar::tab:!selected {"
" margin-top: 2px; /* make non-selected tabs look smaller */"
"}"
" "
"/* Nice Windows-XP-style password character. */"
"QLineEdit[echoMode='2'] {"
" lineedit-password-character: 9679;"
"}"
" "
"QHeaderView::section {"
" background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1,"
" stop:0 #616161, stop: 0.5 #505050,"
" stop: 0.6 #434343, stop:1 #656565);"
" color: white;"
" padding-left: 4px;"
" border: 1px solid #6c6c6c;"
" }"
" "
" QHeaderView::section:checked"
" {"
" background-color: red;"
" }"
" "
" "
"/* We provide a min-width and min-height for push buttons"
" so that they look elegant regardless of the width of the text. */"
"QPushButton {"
" background-color: palegoldenrod;"
" border-width: 2px;"
" border-color: darkkhaki;"
" border-style: solid;"
" border-radius: 5;"
" padding: 3px;"
" min-width: 9ex;"
" min-height: 2.5ex;"
"}"
" "
"QPushButton:hover {"
" background-color: khaki;"
"}"
" "
"/* Increase the padding, so the text is shifted when the button is"
" pressed. */"
"QPushButton:pressed {"
" padding-left: 5px;"
" padding-top: 5px;"
" background-color: #d0d67c;"
"}"
" "
"QLabel, QAbstractButton {"
" font: bold;"
"}"
" "
"/* Mark mandatory fields with a brownish color. */"
".mandatory {"
" color: brown;"
"}"
" "
"/* Bold text on status bar looks awful. */"
"QStatusBar QLabel {"
" font: normal;"
"}"
" "
"QStatusBar::item {"
" border-width: 1;"
" border-color: darkkhaki;"
" border-style: solid;"
" border-radius: 2;"
"}"
" "
"QStackedWidget, QComboBox, QLineEdit, QSpinBox, QTextEdit, QListView, QWebView, QTreeView, QHeaderView {"
" background-color: cornsilk;"
" selection-color: #0a214c; "
" selection-background-color: #C19A6B;"
"}"
" "
"QListView {"
" show-decoration-selected: 1;"
"}"
" "
"QListView::item:hover {"
" background-color: wheat;"
"}"
" "
"/* We reserve 1 pixel space in padding. When we get the focus,"
" we kill the padding and enlarge the border. This makes the items"
" glow. */"
"QLineEdit, QFrame {"
" border-width: 1px;"
" padding: 1px;"
" border-style: solid;"
" border-color: darkkhaki;"
" border-radius: 5px;"
"}"
" "
"/* As mentioned above, eliminate the padding and increase the border. */"
"QLineEdit:focus, QFrame:focus {"
" border-width: 3px;"
" padding: 0px;"
"}"
" "
"/* A QLabel is a QFrame */"
"QLabel {"
" border: none;"
" padding: 0;"
" background: none;"
"}"
" "
"/* A QToolTip is a QLabel */"
"QToolTip {"
" border: 2px solid darkkhaki;"
" padding: 5px;"
" border-radius: 3px;"
" opacity: 200;"
"}"
" "
"/* Nice to have the background color change when hovered. */"
"QRadioButton:hover, QCheckBox:hover {"
" background-color: wheat;"
"}"
" "
"/* Force the dialog's buttons to follow the Windows guidelines. */"
"QDialogButtonBox {"
" button-layout: 0;"
"}"
" "
" "
"3."
"/*"
" Style by evilworks, 2012-2013. pollux@lavabit.com"
" This file is Public Domain."
"*/"
" "
"/* === Shared === */"
"QStackedWidget, QLabel, QPushButton, QRadioButton, QCheckBox, "
"QGroupBox, QStatusBar, QToolButton, QComboBox, QDialog, QTabBar {"
" font-family: 'Segoe UI';"
" background-color: #888;"
" color: #000;"
"}"
" "
"/* === QWidget === */"
"QWidget:window {"
" font-family: 'Segoe UI';"
" background-color: #888;"
"}"
" "
"/* === QPushButton === */"
"QPushButton {"
" border: 1px solid #555;"
" padding: 4px;"
" min-width: 65px;"
" min-height: 12px;"
"}"
" "
"QPushButton:hover {"
" background-color: #999;"
"}"
" "
"QPushButton:pressed {"
" background-color: #333;"
" border-color: #555;"
" color: #AAA;"
"}"
" "
"QPushButton:disabled {"
" color: #333333;"
"}"
" "
"/* === QComboBox === */"
"QComboBox {"
" background-color: #AAA;"
" border: 1px solid #555;"
" color: black;"
"}"
" "
"QComboBox::drop-down {"
" subcontrol-origin: padding;"
" subcontrol-position: top right;"
" border-left: 1px solid #333333;"
"}"
" "
"/* === QGroupBox === */"
"QGroupBox {"
" border: 1px solid #555;"
" margin-top: 2ex;"
"}"
" "
"QGroupBox::title {"
" color: black;"
" subcontrol-origin: margin;"
" subcontrol-position: top left; "
" border: 1px solid #555;"
"}"
" "
"/* === QTabBar === */"
"QTabBar::tab {"
" border-bottom: none;"
" color: #000;"
" padding: 4px;"
" background-color: #888;"
" border: 1px solid #555;"
"}"
" "
"QTabBar::tab:hover {"
" background-color: #AAA;"
"}"
" "
"QTabBar::tab:selected {"
" background-color: #000;"
" color: white;"
"}"
" "
"/* === QTabWidget === */"
"QTabWidget::pane {"
" background: #888;"
" border: 1px solid #555;"
"}"
" "
" "
"/* === QToolBar === */"
"QToolBar {"
" background: #949494;"
" border: none;"
" padding-left: 0px;"
" padding-right: 0px;"
" margin: 2px;"
"}"
" "
"QToolBar::separator {"
" width: 1px;"
" margin-left: 3px;"
" margin-right: 3px;"
" background-color: #555;"
"}"
" "
"/* === QToolButton === */"
"QToolButton {"
" border: 1px solid #666;"
" margin: 1px;"
"}"
" "
"QToolButton:hover {"
" background-color: #AAA;"
"}"
" "
"QToolButton[popupMode='1'] { /* only for MenuButtonPopup */"
" padding-right: 20px; /* make way for the popup button */"
"}"
" "
"QToolButton::menu-button {"
" border-left: 1px solid #666;"
" background: transparent;"
" width: 16px;"
"}"
" "
"QToolButton::menu-button:hover {"
" border-left: 1px solid #666;"
" background: transparent;"
" width: 16px;"
"}"
" "
"QToolButton:checked, QToolButton:pressed {"
" background-color: #000;"
" border: 1px solid #555;"
" color: white;"
"}"
" "
"/* === QScrollBar:vertical === */"
"QScrollBar:vertical {"
" width: 16px;"
" margin: 16px 0 16px 0;"
" background: #333;"
"}"
" "
"QScrollBar::handle:vertical {"
" background: #888;"
" min-height: 16px;"
" border-top: 1px solid #666;"
" border-bottom: 1px solid #666;"
"}"
" "
"QScrollBar::add-line:vertical {"
" background: #888;"
" height: 16px;"
" subcontrol-position: bottom;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::sub-line:vertical {"
" background: #888;"
" height: 16px;"
" subcontrol-position: top;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {"
" background: none;"
"}"
" "
"/* === QScrollBar:horizontal === */"
"QScrollBar:horizontal {"
" height: 16px;"
" margin: 0 16px 0 16px;"
" background: #333;"
"}"
" "
"QScrollBar::handle:horizontal {"
" background: #888;"
" min-width: 16px;"
" border-left: 1px solid #666;"
" border-right: 1px solid #666;"
"}"
" "
"QScrollBar::add-line:horizontal {"
" background: #888;"
" width: 16px;"
" subcontrol-position: right;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::sub-line:horizontal {"
" background: #888;"
" width: 16px;"
" subcontrol-position: left;"
" subcontrol-origin: margin;"
"}"
" "
"QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {"
" background: none;"
"}"
" "
"/* === QMenu === */"
"QMenu {"
" background-color: black;"
" border: 1px solid gray;"
" color: white;"
" padding: 1px;"
"}"
" "
"QMenu::item {"
" padding: 2px 25px 2px 20px;"
" border: 1px solid transparent;"
"}"
" "
"QMenu::item:disabled {"
" color: #666666;"
"}"
" "
"QMenu::item:selected {"
" border-color: gray;"
" background: #222222;"
"}"
" "
"QMenu::icon:checked {"
" "
"}"
" "
"QMenu::separator {"
" height: 1px;"
" background: #222222;"
" margin-left: 10px;"
" margin-right: 10px;"
" margin-top: 1px;"
" margin-bottom: 1px;"
"}"
" "
"QMenu::indicator {"
" width: 13px;"
" height: 13px;"
"}"
" "
"/* === QMenuBar === */"
"QMenuBar {"
" background-color: black;"
" color: white;"
"}"
" "
"QMenuBar::item {"
" background: transparent;"
"}"
" "
"QMenuBar::item:disabled {"
" color: gray;"
"}"
" "
"QMenuBar::item:selected {"
" background: #222222;"
"}"
" "
"QMenuBar::item:pressed {"
" background: #444444;"
"}"
"/* =================== */"
"QLineEdit, QListView, QTreeView, QTableView, QAbstractSpinBox {"
" background-color: #AAA;"
" color: #000;"
" border: 1px solid #555;"
"}"
" "
"QAbstractScrollArea, QLineEdit, QTextEdit, QAbstractSpinBox, QComboBox {"
" border: 1px solid #555;"
"}"
" "
"/* === QHeaderView === */"
"QHeaderView::section {"
" height: 20px;"
"}"
" "
"QHeaderView::section {"
" background: #666;"
" border: 0;"
" color: #000;"
" padding-left: 4px;"
"}"
" "
"/* === QListView === */"
"QListView::item:hover {"
" background: #AAA;"
"}"
" "
"QListView::item:selected {"
" background: #333;"
" color: #AAA;"
"}"
" "
"/* === QTableView === */"
"QTableView::item:hover {"
" background: #333333;"
"}"
" "
"QTableView::item:hover {"
" background: #111111;"
" color: yellow;"
"}"
" "
"/* === QTreeView === */"
"QTreeView::item {"
" background: #AAA;"
"}"
" "
"QTreeView::item:hover {"
" background: #CCC;"
"}"
" "
"QTreeView::item:selected {"
" background: #333;"
" color: #AAA;"
"}"
" "
"QTreeView::branch {"
" "
"}"
" "
"QTreeView::branch:has-siblings:adjoins-item {"
" "
"}"
" "
"QTreeView::branch:has-siblings:!adjoins-item {"
" "
"}"
" "
"QTreeView::branch:closed:has-children:has-siblings {"
" "
"}"
" "
"QTreeView::branch:has-children:!has-siblings:closed {"
" "
"}"
" "
"QTreeView::branch:!has-children:!has-siblings:adjoins-item {"
" "
"}"
" "
"QTreeView::branch:open:has-children:has-siblings {"
" "
"}"
" "
"QTreeView::branch:open:has-children:!has-siblings {"
" "
"}"),
_style_openWindow("/*"
"QAbstractSpinBox"
"{"
" border: 1px solid #26609e;"
"font: 10pt '微软雅黑';"
"color: rgb(255, 255, 255);"
"height:35px;"
"min-width: 10px;"
"}"
"QAbstractSpinBox::up-button"
"{"
" subcontrol-origin: padding;"
"subcontrol-position: top right;"
"width: 0px;"
"}"
"QAbstractSpinBox::down-button"
"{"
" subcontrol-origin: padding;"
"subcontrol-position: top right;"
"width: 0px;"
"}"
"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;"
"}")
{
}
C++
1
https://gitee.com/zz_er/transaction_manager.git
git@gitee.com:zz_er/transaction_manager.git
zz_er
transaction_manager
transaction_manager
master

搜索帮助