123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175 |
- /* ---------------------------------------------------------------------------
- Created by the qtsass compiler v0.1.1
- The definitions are in the "qdarkstyle.qss._styles.scss" module
- WARNING! All changes made in this file will be lost!
- --------------------------------------------------------------------------- */
- /* QDarkStyleSheet -----------------------------------------------------------
- This is the main style sheet, the palette has nine colors.
- It is based on three selecting colors, three greyish (background) colors
- plus three whitish (foreground) colors. Each set of widgets of the same
- type have a header like this:
- ------------------
- GroupName --------
- ------------------
- And each widget is separated with a header like this:
- QWidgetName ------
- This makes more easy to find and change some css field. The basic
- configuration is described bellow.
- BACKGROUND -----------
- Light (unpressed)
- Normal (border, disabled, pressed, checked, toolbars, menus)
- Dark (background)
- FOREGROUND -----------
- Light (texts/labels)
- Normal (not used yet)
- Dark (disabled texts)
- SELECTION ------------
- Light (selection/hover/active)
- Normal (selected)
- Dark (selected disabled)
- If a stranger configuration is required because of a bugfix or anything
- else, keep the comment on the line above so nobody changes it, including the
- issue number.
- */
- /*
- See Qt documentation:
- - https://doc.qt.io/qt-5/stylesheet.html
- - https://doc.qt.io/qt-5/stylesheet-reference.html
- - https://doc.qt.io/qt-5/stylesheet-examples.html
- --------------------------------------------------------------------------- */
- /* QWidget ----------------------------------------------------------------
- --------------------------------------------------------------------------- */
- QWidget {
- background-color: #19232D;
- border: 0px solid #32414B;
- padding: 0px;
- color: #F0F0F0;
- selection-background-color: #1464A0;
- selection-color: #F0F0F0;
- }
- QWidget:disabled {
- background-color: #19232D;
- color: #787878;
- selection-background-color: #14506E;
- selection-color: #787878;
- }
- QWidget::item:selected {
- background-color: #1464A0;
- }
- QWidget::item:hover {
- background-color: #148CD2;
- color: #32414B;
- }
- /* QMainWindow ------------------------------------------------------------
- This adjusts the splitter in the dock widget, not qsplitter
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmainwindow
- --------------------------------------------------------------------------- */
- QMainWindow::separator {
- background-color: #32414B;
- border: 0px solid #19232D;
- spacing: 0px;
- padding: 2px;
- }
- QMainWindow::separator:hover {
- background-color: #505F69;
- border: 0px solid #148CD2;
- }
- QMainWindow::separator:horizontal {
- width: 5px;
- margin-top: 2px;
- margin-bottom: 2px;
- image: url(":/qss_icons/rc/toolbar_separator_vertical.png");
- }
- QMainWindow::separator:vertical {
- height: 5px;
- margin-left: 2px;
- margin-right: 2px;
- image: url(":/qss_icons/rc/toolbar_separator_horizontal.png");
- }
- /* QToolTip ---------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtooltip
- --------------------------------------------------------------------------- */
- QToolTip {
- background-color: #148CD2;
- border: 1px solid #19232D;
- color: #19232D;
- /* Remove padding, for fix combo box tooltip */
- padding: 0px;
- /* Remove opacity, fix #174 - may need to use RGBA */
- }
- /* QStatusBar -------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qstatusbar
- --------------------------------------------------------------------------- */
- QStatusBar {
- border: 1px solid #32414B;
- /* Fixes Spyder #9120, #9121 */
- background: #32414B;
- /* Fixes #205, white vertical borders separating items */
- }
- QStatusBar::item {
- border: none;
- }
- QStatusBar QToolTip {
- background-color: #148CD2;
- border: 1px solid #19232D;
- color: #19232D;
- /* Remove padding, for fix combo box tooltip */
- padding: 0px;
- /* Reducing transparency to read better */
- opacity: 230;
- }
- QStatusBar QLabel {
- /* Fixes Spyder #9120, #9121 */
- background: transparent;
- }
- /* QCheckBox --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcheckbox
- --------------------------------------------------------------------------- */
- QCheckBox {
- background-color: #19232D;
- color: #F0F0F0;
- spacing: 4px;
- outline: none;
- padding-top: 4px;
- padding-bottom: 4px;
- }
- QCheckBox:focus {
- border: none;
- }
- QCheckBox QWidget:disabled {
- background-color: #19232D;
- color: #787878;
- }
- QCheckBox::indicator {
- margin-left: 4px;
- height: 16px;
- width: 16px;
- }
- QCheckBox::indicator:unchecked {
- image: url(":/qss_icons/rc/checkbox_unchecked.png");
- }
- QCheckBox::indicator:unchecked:hover, QCheckBox::indicator:unchecked:focus, QCheckBox::indicator:unchecked:pressed {
- border: none;
- image: url(":/qss_icons/rc/checkbox_unchecked_focus.png");
- }
- QCheckBox::indicator:unchecked:disabled {
- image: url(":/qss_icons/rc/checkbox_unchecked_disabled.png");
- }
- QCheckBox::indicator:checked {
- image: url(":/qss_icons/rc/checkbox_checked.png");
- }
- QCheckBox::indicator:checked:hover, QCheckBox::indicator:checked:focus, QCheckBox::indicator:checked:pressed {
- border: none;
- image: url(":/qss_icons/rc/checkbox_checked_focus.png");
- }
- QCheckBox::indicator:checked:disabled {
- image: url(":/qss_icons/rc/checkbox_checked_disabled.png");
- }
- QCheckBox::indicator:indeterminate {
- image: url(":/qss_icons/rc/checkbox_indeterminate.png");
- }
- QCheckBox::indicator:indeterminate:disabled {
- image: url(":/qss_icons/rc/checkbox_indeterminate_disabled.png");
- }
- QCheckBox::indicator:indeterminate:focus, QCheckBox::indicator:indeterminate:hover, QCheckBox::indicator:indeterminate:pressed {
- image: url(":/qss_icons/rc/checkbox_indeterminate_focus.png");
- }
- /* QGroupBox --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qgroupbox
- --------------------------------------------------------------------------- */
- QGroupBox {
- font-weight: bold;
- border: 1px solid #32414B;
- border-radius: 4px;
- padding: 4px;
- margin-top: 16px;
- }
- QGroupBox::title {
- subcontrol-origin: margin;
- subcontrol-position: top left;
- left: 3px;
- padding-left: 3px;
- padding-right: 5px;
- padding-top: 8px;
- padding-bottom: 16px;
- }
- QGroupBox::indicator {
- margin-left: 2px;
- height: 16px;
- width: 16px;
- }
- QGroupBox::indicator:unchecked {
- border: none;
- image: url(":/qss_icons/rc/checkbox_unchecked.png");
- }
- QGroupBox::indicator:unchecked:hover, QGroupBox::indicator:unchecked:focus, QGroupBox::indicator:unchecked:pressed {
- border: none;
- image: url(":/qss_icons/rc/checkbox_unchecked_focus.png");
- }
- QGroupBox::indicator:unchecked:disabled {
- image: url(":/qss_icons/rc/checkbox_unchecked_disabled.png");
- }
- QGroupBox::indicator:checked {
- border: none;
- image: url(":/qss_icons/rc/checkbox_checked.png");
- }
- QGroupBox::indicator:checked:hover, QGroupBox::indicator:checked:focus, QGroupBox::indicator:checked:pressed {
- border: none;
- image: url(":/qss_icons/rc/checkbox_checked_focus.png");
- }
- QGroupBox::indicator:checked:disabled {
- image: url(":/qss_icons/rc/checkbox_checked_disabled.png");
- }
- /* QRadioButton -----------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qradiobutton
- --------------------------------------------------------------------------- */
- QRadioButton {
- background-color: #19232D;
- color: #F0F0F0;
- spacing: 4px;
- padding: 0px;
- border: none;
- outline: none;
- }
- QRadioButton:focus {
- border: none;
- }
- QRadioButton:disabled {
- background-color: #19232D;
- color: #787878;
- border: none;
- outline: none;
- }
- QRadioButton QWidget {
- background-color: #19232D;
- color: #F0F0F0;
- spacing: 0px;
- padding: 0px;
- outline: none;
- border: none;
- }
- QRadioButton::indicator {
- border: none;
- outline: none;
- margin-left: 4px;
- height: 16px;
- width: 16px;
- }
- QRadioButton::indicator:unchecked {
- image: url(":/qss_icons/rc/radio_unchecked.png");
- }
- QRadioButton::indicator:unchecked:hover, QRadioButton::indicator:unchecked:focus, QRadioButton::indicator:unchecked:pressed {
- border: none;
- outline: none;
- image: url(":/qss_icons/rc/radio_unchecked_focus.png");
- }
- QRadioButton::indicator:unchecked:disabled {
- image: url(":/qss_icons/rc/radio_unchecked_disabled.png");
- }
- QRadioButton::indicator:checked {
- border: none;
- outline: none;
- image: url(":/qss_icons/rc/radio_checked.png");
- }
- QRadioButton::indicator:checked:hover, QRadioButton::indicator:checked:focus, QRadioButton::indicator:checked:pressed {
- border: none;
- outline: none;
- image: url(":/qss_icons/rc/radio_checked_focus.png");
- }
- QRadioButton::indicator:checked:disabled {
- outline: none;
- image: url(":/qss_icons/rc/radio_checked_disabled.png");
- }
- /* QMenuBar ---------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenubar
- --------------------------------------------------------------------------- */
- QMenuBar {
- background-color: #32414B;
- padding: 2px;
- border: 1px solid #19232D;
- color: #F0F0F0;
- }
- QMenuBar:focus {
- border: 1px solid #148CD2;
- }
- QMenuBar::item {
- background: transparent;
- padding: 4px;
- }
- QMenuBar::item:selected {
- padding: 4px;
- background: transparent;
- border: 0px solid #32414B;
- }
- QMenuBar::item:pressed {
- padding: 4px;
- border: 0px solid #32414B;
- background-color: #148CD2;
- color: #F0F0F0;
- margin-bottom: 0px;
- padding-bottom: 0px;
- }
- /* QMenu ------------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qmenu
- --------------------------------------------------------------------------- */
- QMenu {
- border: 0px solid #32414B;
- color: #F0F0F0;
- margin: 0px;
- }
- QMenu::separator {
- height: 1px;
- background-color: #505F69;
- color: #F0F0F0;
- }
- QMenu::icon {
- margin: 0px;
- padding-left: 8px;
- }
- QMenu::item {
- background-color: #32414B;
- padding: 4px 24px 4px 24px;
- /* Reserve space for selection border */
- border: 1px transparent #32414B;
- }
- QMenu::item:selected {
- color: #F0F0F0;
- }
- QMenu::indicator {
- width: 12px;
- height: 12px;
- padding-left: 6px;
- /* non-exclusive indicator = check box style indicator (see QActionGroup::setExclusive) */
- /* exclusive indicator = radio button style indicator (see QActionGroup::setExclusive) */
- }
- QMenu::indicator:non-exclusive:unchecked {
- image: url(":/qss_icons/rc/checkbox_unchecked.png");
- }
- QMenu::indicator:non-exclusive:unchecked:selected {
- image: url(":/qss_icons/rc/checkbox_unchecked_disabled.png");
- }
- QMenu::indicator:non-exclusive:checked {
- image: url(":/qss_icons/rc/checkbox_checked.png");
- }
- QMenu::indicator:non-exclusive:checked:selected {
- image: url(":/qss_icons/rc/checkbox_checked_disabled.png");
- }
- QMenu::indicator:exclusive:unchecked {
- image: url(":/qss_icons/rc/radio_unchecked.png");
- }
- QMenu::indicator:exclusive:unchecked:selected {
- image: url(":/qss_icons/rc/radio_unchecked_disabled.png");
- }
- QMenu::indicator:exclusive:checked {
- image: url(":/qss_icons/rc/radio_checked.png");
- }
- QMenu::indicator:exclusive:checked:selected {
- image: url(":/qss_icons/rc/radio_checked_disabled.png");
- }
- QMenu::right-arrow {
- margin: 5px;
- image: url(":/qss_icons/rc/arrow_right.png");
- height: 12px;
- width: 12px;
- }
- /* QAbstractItemView ------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
- --------------------------------------------------------------------------- */
- QAbstractItemView {
- alternate-background-color: #19232D;
- color: #F0F0F0;
- border: 1px solid #32414B;
- border-radius: 4px;
- }
- QAbstractItemView QLineEdit {
- padding: 2px;
- }
- /* QAbstractScrollArea ----------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
- --------------------------------------------------------------------------- */
- QAbstractScrollArea {
- background-color: #19232D;
- border: 1px solid #32414B;
- border-radius: 4px;
- padding: 2px;
- /* fix #159 */
- min-height: 1.25em;
- /* fix #159 */
- color: #F0F0F0;
- }
- QAbstractScrollArea:disabled {
- color: #787878;
- }
- /* QScrollArea ------------------------------------------------------------
- --------------------------------------------------------------------------- */
- QScrollArea QWidget QWidget:disabled {
- background-color: #19232D;
- }
- /* QScrollBar -------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qscrollbar
- --------------------------------------------------------------------------- */
- QScrollBar:horizontal {
- height: 16px;
- margin: 2px 16px 2px 16px;
- border: 1px solid #32414B;
- border-radius: 4px;
- background-color: #19232D;
- }
- QScrollBar:vertical {
- background-color: #19232D;
- width: 16px;
- margin: 16px 2px 16px 2px;
- border: 1px solid #32414B;
- border-radius: 4px;
- }
- QScrollBar::handle:horizontal {
- background-color: #787878;
- border: 1px solid #32414B;
- border-radius: 4px;
- min-width: 8px;
- }
- QScrollBar::handle:horizontal:hover {
- background-color: #148CD2;
- border: 1px solid #148CD2;
- border-radius: 4px;
- min-width: 8px;
- }
- QScrollBar::handle:horizontal:focus {
- border: 1px solid #1464A0;
- }
- QScrollBar::handle:vertical {
- background-color: #787878;
- border: 1px solid #32414B;
- min-height: 8px;
- border-radius: 4px;
- }
- QScrollBar::handle:vertical:hover {
- background-color: #148CD2;
- border: 1px solid #148CD2;
- border-radius: 4px;
- min-height: 8px;
- }
- QScrollBar::handle:vertical:focus {
- border: 1px solid #1464A0;
- }
- QScrollBar::add-line:horizontal {
- margin: 0px 0px 0px 0px;
- border-image: url(":/qss_icons/rc/arrow_right_disabled.png");
- height: 12px;
- width: 12px;
- subcontrol-position: right;
- subcontrol-origin: margin;
- }
- QScrollBar::add-line:horizontal:hover, QScrollBar::add-line:horizontal:on {
- border-image: url(":/qss_icons/rc/arrow_right.png");
- height: 12px;
- width: 12px;
- subcontrol-position: right;
- subcontrol-origin: margin;
- }
- QScrollBar::add-line:vertical {
- margin: 3px 0px 3px 0px;
- border-image: url(":/qss_icons/rc/arrow_down_disabled.png");
- height: 12px;
- width: 12px;
- subcontrol-position: bottom;
- subcontrol-origin: margin;
- }
- QScrollBar::add-line:vertical:hover, QScrollBar::add-line:vertical:on {
- border-image: url(":/qss_icons/rc/arrow_down.png");
- height: 12px;
- width: 12px;
- subcontrol-position: bottom;
- subcontrol-origin: margin;
- }
- QScrollBar::sub-line:horizontal {
- margin: 0px 3px 0px 3px;
- border-image: url(":/qss_icons/rc/arrow_left_disabled.png");
- height: 12px;
- width: 12px;
- subcontrol-position: left;
- subcontrol-origin: margin;
- }
- QScrollBar::sub-line:horizontal:hover, QScrollBar::sub-line:horizontal:on {
- border-image: url(":/qss_icons/rc/arrow_left.png");
- height: 12px;
- width: 12px;
- subcontrol-position: left;
- subcontrol-origin: margin;
- }
- QScrollBar::sub-line:vertical {
- margin: 3px 0px 3px 0px;
- border-image: url(":/qss_icons/rc/arrow_up_disabled.png");
- height: 12px;
- width: 12px;
- subcontrol-position: top;
- subcontrol-origin: margin;
- }
- QScrollBar::sub-line:vertical:hover, QScrollBar::sub-line:vertical:on {
- border-image: url(":/qss_icons/rc/arrow_up.png");
- height: 12px;
- width: 12px;
- subcontrol-position: top;
- subcontrol-origin: margin;
- }
- QScrollBar::up-arrow:horizontal, QScrollBar::down-arrow:horizontal {
- background: none;
- }
- QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
- background: none;
- }
- QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
- background: none;
- }
- QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
- background: none;
- }
- /* QTextEdit --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-specific-widgets
- --------------------------------------------------------------------------- */
- QTextEdit {
- background-color: #19232D;
- color: #F0F0F0;
- border-radius: 4px;
- border: 1px solid #32414B;
- }
- QTextEdit:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QTextEdit:focus {
- border: 1px solid #1464A0;
- }
- QTextEdit:selected {
- background: #1464A0;
- color: #32414B;
- }
- /* QPlainTextEdit ---------------------------------------------------------
- --------------------------------------------------------------------------- */
- QPlainTextEdit {
- background-color: #19232D;
- color: #F0F0F0;
- border-radius: 4px;
- border: 1px solid #32414B;
- }
- QPlainTextEdit:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QPlainTextEdit:focus {
- border: 1px solid #1464A0;
- }
- QPlainTextEdit:selected {
- background: #1464A0;
- color: #32414B;
- }
- /* QSizeGrip --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsizegrip
- --------------------------------------------------------------------------- */
- QSizeGrip {
- background: transparent;
- width: 12px;
- height: 12px;
- image: url(":/qss_icons/rc/window_grip.png");
- }
- /* QStackedWidget ---------------------------------------------------------
- --------------------------------------------------------------------------- */
- QStackedWidget {
- padding: 2px;
- border: 1px solid #32414B;
- border: 1px solid #19232D;
- }
- /* QToolBar ---------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbar
- --------------------------------------------------------------------------- */
- QToolBar {
- background-color: #32414B;
- border-bottom: 1px solid #19232D;
- padding: 2px;
- font-weight: bold;
- spacing: 2px;
- }
- QToolBar QToolButton {
- background-color: #32414B;
- border: 1px solid #32414B;
- }
- QToolBar QToolButton:hover {
- border: 1px solid #148CD2;
- }
- QToolBar QToolButton:checked {
- border: 1px solid #19232D;
- background-color: #19232D;
- }
- QToolBar QToolButton:checked:hover {
- border: 1px solid #148CD2;
- }
- QToolBar::handle:horizontal {
- width: 16px;
- image: url(":/qss_icons/rc/toolbar_move_horizontal.png");
- }
- QToolBar::handle:vertical {
- height: 16px;
- image: url(":/qss_icons/rc/toolbar_move_vertical.png");
- }
- QToolBar::separator:horizontal {
- width: 16px;
- image: url(":/qss_icons/rc/toolbar_separator_horizontal.png");
- }
- QToolBar::separator:vertical {
- height: 16px;
- image: url(":/qss_icons/rc/toolbar_separator_vertical.png");
- }
- QToolButton#qt_toolbar_ext_button {
- background: #32414B;
- border: 0px;
- color: #F0F0F0;
- image: url(":/qss_icons/rc/arrow_right.png");
- }
- /* QAbstractSpinBox -------------------------------------------------------
- --------------------------------------------------------------------------- */
- QAbstractSpinBox {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- /* This fixes 103, 111 */
- padding-top: 2px;
- /* This fixes 103, 111 */
- padding-bottom: 2px;
- padding-left: 4px;
- padding-right: 4px;
- border-radius: 4px;
- /* min-width: 5px; removed to fix 109 */
- }
- QAbstractSpinBox:up-button {
- background-color: transparent #19232D;
- subcontrol-origin: border;
- subcontrol-position: top right;
- border-left: 1px solid #32414B;
- border-bottom: 1px solid #32414B;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- margin: 1px;
- width: 12px;
- margin-bottom: -1px;
- }
- QAbstractSpinBox::up-arrow, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::up-arrow:off {
- image: url(":/qss_icons/rc/arrow_up_disabled.png");
- height: 8px;
- width: 8px;
- }
- QAbstractSpinBox::up-arrow:hover {
- image: url(":/qss_icons/rc/arrow_up.png");
- }
- QAbstractSpinBox:down-button {
- background-color: transparent #19232D;
- subcontrol-origin: border;
- subcontrol-position: bottom right;
- border-left: 1px solid #32414B;
- border-top: 1px solid #32414B;
- border-top-left-radius: 0;
- border-bottom-left-radius: 0;
- margin: 1px;
- width: 12px;
- margin-top: -1px;
- }
- QAbstractSpinBox::down-arrow, QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::down-arrow:off {
- image: url(":/qss_icons/rc/arrow_down_disabled.png");
- height: 8px;
- width: 8px;
- }
- QAbstractSpinBox::down-arrow:hover {
- image: url(":/qss_icons/rc/arrow_down.png");
- }
- QAbstractSpinBox:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QAbstractSpinBox:focus {
- border: 1px solid #1464A0;
- }
- QAbstractSpinBox:selected {
- background: #1464A0;
- color: #32414B;
- }
- /* ------------------------------------------------------------------------ */
- /* DISPLAYS --------------------------------------------------------------- */
- /* ------------------------------------------------------------------------ */
- /* QLabel -----------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
- --------------------------------------------------------------------------- */
- QLabel {
- background-color: #19232D;
- border: 0px solid #32414B;
- padding: 2px;
- margin: 0px;
- color: #F0F0F0;
- }
- QLabel:disabled {
- background-color: #19232D;
- border: 0px solid #32414B;
- color: #787878;
- }
- /* QTextBrowser -----------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qabstractscrollarea
- --------------------------------------------------------------------------- */
- QTextBrowser {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-radius: 4px;
- }
- QTextBrowser:disabled {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #787878;
- border-radius: 4px;
- }
- QTextBrowser:hover, QTextBrowser:!hover, QTextBrowser:selected, QTextBrowser:pressed {
- border: 1px solid #32414B;
- }
- /* QGraphicsView ----------------------------------------------------------
- --------------------------------------------------------------------------- */
- QGraphicsView {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-radius: 4px;
- }
- QGraphicsView:disabled {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #787878;
- border-radius: 4px;
- }
- QGraphicsView:hover, QGraphicsView:!hover, QGraphicsView:selected, QGraphicsView:pressed {
- border: 1px solid #32414B;
- }
- /* QCalendarWidget --------------------------------------------------------
- --------------------------------------------------------------------------- */
- QCalendarWidget {
- border: 1px solid #32414B;
- border-radius: 4px;
- }
- QCalendarWidget:disabled {
- background-color: #19232D;
- color: #787878;
- }
- /* QLCDNumber -------------------------------------------------------------
- --------------------------------------------------------------------------- */
- QLCDNumber {
- background-color: #19232D;
- color: #F0F0F0;
- }
- QLCDNumber:disabled {
- background-color: #19232D;
- color: #787878;
- }
- /* QProgressBar -----------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qprogressbar
- --------------------------------------------------------------------------- */
- QProgressBar {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-radius: 4px;
- text-align: center;
- }
- QProgressBar:disabled {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #787878;
- border-radius: 4px;
- text-align: center;
- }
- QProgressBar::chunk {
- background-color: #1464A0;
- color: #19232D;
- border-radius: 4px;
- }
- QProgressBar::chunk:disabled {
- background-color: #14506E;
- color: #787878;
- border-radius: 4px;
- }
- /* ------------------------------------------------------------------------ */
- /* BUTTONS ---------------------------------------------------------------- */
- /* ------------------------------------------------------------------------ */
- /* QPushButton ------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qpushbutton
- --------------------------------------------------------------------------- */
- QPushButton {
- background-color: #505F69;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-radius: 4px;
- padding: 3px;
- outline: none;
- /* Issue #194 - Special case of QPushButton inside dialogs, for better UI */
- min-width: 80px;
- }
- QPushButton:disabled {
- background-color: #32414B;
- border: 1px solid #32414B;
- color: #787878;
- border-radius: 4px;
- padding: 3px;
- }
- QPushButton:checked {
- background-color: #32414B;
- border: 1px solid #32414B;
- border-radius: 4px;
- padding: 3px;
- outline: none;
- }
- QPushButton:checked:disabled {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #787878;
- border-radius: 4px;
- padding: 3px;
- outline: none;
- }
- QPushButton:checked:selected {
- background: #1464A0;
- color: #32414B;
- }
- QPushButton::menu-indicator {
- subcontrol-origin: padding;
- subcontrol-position: bottom right;
- bottom: 4px;
- }
- QPushButton:pressed {
- background-color: #19232D;
- border: 1px solid #19232D;
- }
- QPushButton:pressed:hover {
- border: 1px solid #148CD2;
- }
- QPushButton:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QPushButton:selected {
- background: #1464A0;
- color: #32414B;
- }
- QPushButton:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QPushButton:focus {
- border: 1px solid #1464A0;
- }
- /* QToolButton ------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbutton
- --------------------------------------------------------------------------- */
- QToolButton {
- background-color: transparent;
- border: 1px solid transparent;
- border-radius: 4px;
- margin: 0px;
- padding: 2px;
- /* The subcontrols below are used only in the DelayedPopup mode */
- /* The subcontrols below are used only in the MenuButtonPopup mode */
- /* The subcontrol below is used only in the InstantPopup or DelayedPopup mode */
- }
- QToolButton:checked {
- background-color: transparent;
- border: 1px solid #1464A0;
- }
- QToolButton:checked:disabled {
- border: 1px solid #14506E;
- }
- QToolButton:pressed {
- margin: 1px;
- background-color: transparent;
- border: 1px solid #1464A0;
- }
- QToolButton:disabled {
- border: none;
- }
- QToolButton:hover {
- border: 1px solid #148CD2;
- }
- QToolButton[popupMode="0"] {
- /* Only for DelayedPopup */
- padding-right: 2px;
- }
- QToolButton[popupMode="1"] {
- /* Only for MenuButtonPopup */
- padding-right: 20px;
- }
- QToolButton[popupMode="1"]::menu-button {
- border: none;
- }
- QToolButton[popupMode="1"]::menu-button:hover {
- border: none;
- border-left: 1px solid #148CD2;
- border-radius: 0;
- }
- QToolButton[popupMode="2"] {
- /* Only for InstantPopup */
- padding-right: 2px;
- }
- QToolButton::menu-button {
- padding: 2px;
- border-radius: 4px;
- border: 1px solid #32414B;
- width: 12px;
- outline: none;
- }
- QToolButton::menu-button:hover {
- border: 1px solid #148CD2;
- }
- QToolButton::menu-button:checked:hover {
- border: 1px solid #148CD2;
- }
- QToolButton::menu-indicator {
- image: url(":/qss_icons/rc/arrow_down.png");
- height: 8px;
- width: 8px;
- top: 0;
- /* Exclude a shift for better image */
- left: -2px;
- /* Shift it a bit */
- }
- QToolButton::menu-arrow {
- image: url(":/qss_icons/rc/arrow_down.png");
- height: 8px;
- width: 8px;
- }
- QToolButton::menu-arrow:hover {
- image: url(":/qss_icons/rc/arrow_down_focus.png");
- }
- /* QCommandLinkButton -----------------------------------------------------
- --------------------------------------------------------------------------- */
- QCommandLinkButton {
- background-color: transparent;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-radius: 4px;
- padding: 0px;
- margin: 0px;
- }
- QCommandLinkButton:disabled {
- background-color: transparent;
- color: #787878;
- }
- /* ------------------------------------------------------------------------ */
- /* INPUTS - NO FIELDS ----------------------------------------------------- */
- /* ------------------------------------------------------------------------ */
- /* QComboBox --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qcombobox
- --------------------------------------------------------------------------- */
- QComboBox {
- border: 1px solid #32414B;
- border-radius: 4px;
- selection-background-color: #1464A0;
- padding-left: 4px;
- padding-right: 36px;
- /* 4 + 16*2 See scrollbar size */
- /* Fixes #103, #111 */
- min-height: 1.5em;
- /* padding-top: 2px; removed to fix #132 */
- /* padding-bottom: 2px; removed to fix #132 */
- /* min-width: 75px; removed to fix #109 */
- /* Needed to remove indicator - fix #132 */
- }
- QComboBox QAbstractItemView {
- border: 1px solid #32414B;
- border-radius: 0;
- background-color: #19232D;
- selection-background-color: #1464A0;
- }
- QComboBox QAbstractItemView:hover {
- background-color: #19232D;
- color: #F0F0F0;
- }
- QComboBox QAbstractItemView:selected {
- background: #1464A0;
- color: #32414B;
- }
- QComboBox QAbstractItemView:alternate {
- background: #19232D;
- }
- QComboBox:disabled {
- background-color: #19232D;
- color: #787878;
- }
- QComboBox:hover {
- border: 1px solid #148CD2;
- }
- QComboBox:focus {
- border: 1px solid #1464A0;
- }
- QComboBox:on {
- selection-background-color: #1464A0;
- }
- QComboBox::indicator {
- border: none;
- border-radius: 0;
- background-color: transparent;
- selection-background-color: transparent;
- color: transparent;
- selection-color: transparent;
- /* Needed to remove indicator - fix #132 */
- }
- QComboBox::indicator:alternate {
- background: #19232D;
- }
- QComboBox::item:alternate {
- background: #19232D;
- }
- QComboBox::item:checked {
- font-weight: bold;
- }
- QComboBox::item:selected {
- border: 0px solid transparent;
- }
- QComboBox::drop-down {
- subcontrol-origin: padding;
- subcontrol-position: top right;
- width: 12px;
- border-left: 1px solid #32414B;
- }
- QComboBox::down-arrow {
- image: url(":/qss_icons/rc/arrow_down_disabled.png");
- height: 8px;
- width: 8px;
- }
- QComboBox::down-arrow:on, QComboBox::down-arrow:hover, QComboBox::down-arrow:focus {
- image: url(":/qss_icons/rc/arrow_down.png");
- }
- /* QSlider ----------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qslider
- --------------------------------------------------------------------------- */
- QSlider:disabled {
- background: #19232D;
- }
- QSlider:focus {
- border: none;
- }
- QSlider::groove:horizontal {
- background: #32414B;
- border: 1px solid #32414B;
- height: 4px;
- margin: 0px;
- border-radius: 4px;
- }
- QSlider::groove:vertical {
- background: #32414B;
- border: 1px solid #32414B;
- width: 4px;
- margin: 0px;
- border-radius: 4px;
- }
- QSlider::add-page:vertical {
- background: #1464A0;
- border: 1px solid #32414B;
- width: 4px;
- margin: 0px;
- border-radius: 4px;
- }
- QSlider::add-page:vertical :disabled {
- background: #14506E;
- }
- QSlider::sub-page:horizontal {
- background: #1464A0;
- border: 1px solid #32414B;
- height: 4px;
- margin: 0px;
- border-radius: 4px;
- }
- QSlider::sub-page:horizontal:disabled {
- background: #14506E;
- }
- QSlider::handle:horizontal {
- background: #787878;
- border: 1px solid #32414B;
- width: 8px;
- height: 8px;
- margin: -8px 0px;
- border-radius: 4px;
- }
- QSlider::handle:horizontal:hover {
- background: #148CD2;
- border: 1px solid #148CD2;
- }
- QSlider::handle:horizontal:focus {
- border: 1px solid #1464A0;
- }
- QSlider::handle:vertical {
- background: #787878;
- border: 1px solid #32414B;
- width: 8px;
- height: 8px;
- margin: 0 -8px;
- border-radius: 4px;
- }
- QSlider::handle:vertical:hover {
- background: #148CD2;
- border: 1px solid #148CD2;
- }
- QSlider::handle:vertical:focus {
- border: 1px solid #1464A0;
- }
- /* QLineEdit --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlineedit
- --------------------------------------------------------------------------- */
- QLineEdit {
- background-color: #19232D;
- padding-top: 2px;
- /* This QLineEdit fix 103, 111 */
- padding-bottom: 2px;
- /* This QLineEdit fix 103, 111 */
- padding-left: 4px;
- padding-right: 4px;
- border-style: solid;
- border: 1px solid #32414B;
- border-radius: 4px;
- color: #F0F0F0;
- }
- QLineEdit:disabled {
- background-color: #19232D;
- color: #787878;
- }
- QLineEdit:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QLineEdit:focus {
- border: 1px solid #1464A0;
- }
- QLineEdit:selected {
- background-color: #1464A0;
- color: #32414B;
- }
- /* QTabWiget --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
- --------------------------------------------------------------------------- */
- QTabWidget {
- padding: 2px;
- selection-background-color: #32414B;
- }
- QTabWidget QWidget {
- /* Fixes #189 */
- border-radius: 4px;
- }
- QTabWidget::pane {
- border: 1px solid #32414B;
- border-radius: 4px;
- margin: 0px;
- /* Fixes double border inside pane with pyqt5 */
- padding: 0px;
- }
- QTabWidget::pane:selected {
- background-color: #32414B;
- border: 1px solid #1464A0;
- }
- /* QTabBar ----------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
- --------------------------------------------------------------------------- */
- QTabBar {
- qproperty-drawBase: 0;
- border-radius: 4px;
- margin: 0px;
- padding: 2px;
- border: 0;
- /* left: 5px; move to the right by 5px - removed for fix */
- }
- QTabBar::close-button {
- border: 0;
- margin: 2px;
- padding: 2px;
- image: url(":/qss_icons/rc/window_close.png");
- }
- QTabBar::close-button:hover {
- image: url(":/qss_icons/rc/window_close_focus.png");
- }
- QTabBar::close-button:pressed {
- image: url(":/qss_icons/rc/window_close_pressed.png");
- }
- /* QTabBar::tab - selected ------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtabwidget-and-qtabbar
- --------------------------------------------------------------------------- */
- QTabBar::tab {
- /* !selected and disabled ----------------------------------------- */
- /* selected ------------------------------------------------------- */
- }
- QTabBar::tab:top:selected:disabled {
- border-bottom: 3px solid #14506E;
- color: #787878;
- background-color: #32414B;
- }
- QTabBar::tab:bottom:selected:disabled {
- border-top: 3px solid #14506E;
- color: #787878;
- background-color: #32414B;
- }
- QTabBar::tab:left:selected:disabled {
- border-right: 3px solid #14506E;
- color: #787878;
- background-color: #32414B;
- }
- QTabBar::tab:right:selected:disabled {
- border-left: 3px solid #14506E;
- color: #787878;
- background-color: #32414B;
- }
- QTabBar::tab:top:!selected:disabled {
- border-bottom: 3px solid #19232D;
- color: #787878;
- background-color: #19232D;
- }
- QTabBar::tab:bottom:!selected:disabled {
- border-top: 3px solid #19232D;
- color: #787878;
- background-color: #19232D;
- }
- QTabBar::tab:left:!selected:disabled {
- border-right: 3px solid #19232D;
- color: #787878;
- background-color: #19232D;
- }
- QTabBar::tab:right:!selected:disabled {
- border-left: 3px solid #19232D;
- color: #787878;
- background-color: #19232D;
- }
- QTabBar::tab:top:!selected {
- border-bottom: 2px solid #19232D;
- margin-top: 2px;
- }
- QTabBar::tab:bottom:!selected {
- border-top: 2px solid #19232D;
- margin-bottom: 3px;
- }
- QTabBar::tab:left:!selected {
- border-left: 2px solid #19232D;
- margin-right: 2px;
- }
- QTabBar::tab:right:!selected {
- border-right: 2px solid #19232D;
- margin-left: 2px;
- }
- QTabBar::tab:top {
- background-color: #32414B;
- color: #F0F0F0;
- margin-left: 2px;
- padding-left: 4px;
- padding-right: 4px;
- padding-top: 2px;
- padding-bottom: 2px;
- min-width: 5px;
- border-bottom: 3px solid #32414B;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- }
- QTabBar::tab:top:selected {
- background-color: #505F69;
- color: #F0F0F0;
- border-bottom: 3px solid #1464A0;
- border-top-left-radius: 3px;
- border-top-right-radius: 3px;
- }
- QTabBar::tab:top:!selected:hover {
- border: 1px solid #148CD2;
- border-bottom: 3px solid #148CD2;
- /* Fixes spyder-ide/spyder#9766 */
- padding-left: 4px;
- padding-right: 4px;
- }
- QTabBar::tab:bottom {
- color: #F0F0F0;
- border-top: 3px solid #32414B;
- background-color: #32414B;
- margin-left: 2px;
- padding-left: 4px;
- padding-right: 4px;
- padding-top: 2px;
- padding-bottom: 2px;
- border-bottom-left-radius: 3px;
- border-bottom-right-radius: 3px;
- min-width: 5px;
- }
- QTabBar::tab:bottom:selected {
- color: #F0F0F0;
- background-color: #505F69;
- border-top: 3px solid #1464A0;
- border-bottom-left-radius: 3px;
- border-bottom-right-radius: 3px;
- }
- QTabBar::tab:bottom:!selected:hover {
- border: 1px solid #148CD2;
- border-top: 3px solid #148CD2;
- /* Fixes spyder-ide/spyder#9766 */
- padding-left: 4px;
- padding-right: 4px;
- }
- QTabBar::tab:left {
- color: #F0F0F0;
- background-color: #32414B;
- margin-top: 2px;
- padding-left: 2px;
- padding-right: 2px;
- padding-top: 4px;
- padding-bottom: 4px;
- border-top-left-radius: 3px;
- border-bottom-left-radius: 3px;
- min-height: 5px;
- }
- QTabBar::tab:left:selected {
- color: #F0F0F0;
- background-color: #505F69;
- border-right: 3px solid #1464A0;
- }
- QTabBar::tab:left:!selected:hover {
- border: 1px solid #148CD2;
- border-right: 3px solid #148CD2;
- padding: 0px;
- }
- QTabBar::tab:right {
- color: #F0F0F0;
- background-color: #32414B;
- margin-top: 2px;
- padding-left: 2px;
- padding-right: 2px;
- padding-top: 4px;
- padding-bottom: 4px;
- border-top-right-radius: 3px;
- border-bottom-right-radius: 3px;
- min-height: 5px;
- }
- QTabBar::tab:right:selected {
- color: #F0F0F0;
- background-color: #505F69;
- border-left: 3px solid #1464A0;
- }
- QTabBar::tab:right:!selected:hover {
- border: 1px solid #148CD2;
- border-left: 3px solid #148CD2;
- padding: 0px;
- }
- QTabBar QToolButton {
- /* Fixes #136 */
- background-color: #32414B;
- height: 12px;
- width: 12px;
- }
- QTabBar QToolButton:pressed {
- background-color: #32414B;
- }
- QTabBar QToolButton:pressed:hover {
- border: 1px solid #148CD2;
- }
- QTabBar QToolButton::left-arrow:enabled {
- image: url(":/qss_icons/rc/arrow_left.png");
- }
- QTabBar QToolButton::left-arrow:disabled {
- image: url(":/qss_icons/rc/arrow_left_disabled.png");
- }
- QTabBar QToolButton::right-arrow:enabled {
- image: url(":/qss_icons/rc/arrow_right.png");
- }
- QTabBar QToolButton::right-arrow:disabled {
- image: url(":/qss_icons/rc/arrow_right_disabled.png");
- }
- /* QDockWiget -------------------------------------------------------------
- --------------------------------------------------------------------------- */
- QDockWidget {
- outline: 1px solid #32414B;
- background-color: #19232D;
- border: 1px solid #32414B;
- border-radius: 4px;
- titlebar-close-icon: url(":/qss_icons/rc/window_close.png");
- titlebar-normal-icon: url(":/qss_icons/rc/window_undock.png");
- }
- QDockWidget::title {
- /* Better size for title bar */
- padding: 6px;
- spacing: 4px;
- border: none;
- background-color: #32414B;
- }
- QDockWidget::close-button {
- background-color: #32414B;
- border-radius: 4px;
- border: none;
- }
- QDockWidget::close-button:hover {
- image: url(":/qss_icons/rc/window_close_focus.png");
- }
- QDockWidget::close-button:pressed {
- image: url(":/qss_icons/rc/window_close_pressed.png");
- }
- QDockWidget::float-button {
- background-color: #32414B;
- border-radius: 4px;
- border: none;
- }
- QDockWidget::float-button:hover {
- image: url(":/qss_icons/rc/window_undock_focus.png");
- }
- QDockWidget::float-button:pressed {
- image: url(":/qss_icons/rc/window_undock_pressed.png");
- }
- /* QTreeView QListView QTableView -----------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtreeview
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qlistview
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtableview
- --------------------------------------------------------------------------- */
- QTreeView:branch:selected, QTreeView:branch:hover {
- background: url(":/qss_icons/rc/transparent.png");
- }
- QTreeView:branch:has-siblings:!adjoins-item {
- border-image: url(":/qss_icons/rc/branch_line.png") 0;
- }
- QTreeView:branch:has-siblings:adjoins-item {
- border-image: url(":/qss_icons/rc/branch_more.png") 0;
- }
- QTreeView:branch:!has-children:!has-siblings:adjoins-item {
- border-image: url(":/qss_icons/rc/branch_end.png") 0;
- }
- QTreeView:branch:has-children:!has-siblings:closed, QTreeView:branch:closed:has-children:has-siblings {
- border-image: none;
- image: url(":/qss_icons/rc/branch_closed.png");
- }
- QTreeView:branch:open:has-children:!has-siblings, QTreeView:branch:open:has-children:has-siblings {
- border-image: none;
- image: url(":/qss_icons/rc/branch_open.png");
- }
- QTreeView:branch:has-children:!has-siblings:closed:hover, QTreeView:branch:closed:has-children:has-siblings:hover {
- image: url(":/qss_icons/rc/branch_closed_focus.png");
- }
- QTreeView:branch:open:has-children:!has-siblings:hover, QTreeView:branch:open:has-children:has-siblings:hover {
- image: url(":/qss_icons/rc/branch_open_focus.png");
- }
- QTreeView::indicator:checked,
- QListView::indicator:checked {
- image: url(":/qss_icons/rc/checkbox_checked.png");
- }
- QTreeView::indicator:checked:hover, QTreeView::indicator:checked:focus, QTreeView::indicator:checked:pressed,
- QListView::indicator:checked:hover,
- QListView::indicator:checked:focus,
- QListView::indicator:checked:pressed {
- image: url(":/qss_icons/rc/checkbox_checked_focus.png");
- }
- QTreeView::indicator:unchecked,
- QListView::indicator:unchecked {
- image: url(":/qss_icons/rc/checkbox_unchecked.png");
- }
- QTreeView::indicator:unchecked:hover, QTreeView::indicator:unchecked:focus, QTreeView::indicator:unchecked:pressed,
- QListView::indicator:unchecked:hover,
- QListView::indicator:unchecked:focus,
- QListView::indicator:unchecked:pressed {
- image: url(":/qss_icons/rc/checkbox_unchecked_focus.png");
- }
- QTreeView::indicator:indeterminate,
- QListView::indicator:indeterminate {
- image: url(":/qss_icons/rc/checkbox_indeterminate.png");
- }
- QTreeView::indicator:indeterminate:hover, QTreeView::indicator:indeterminate:focus, QTreeView::indicator:indeterminate:pressed,
- QListView::indicator:indeterminate:hover,
- QListView::indicator:indeterminate:focus,
- QListView::indicator:indeterminate:pressed {
- image: url(":/qss_icons/rc/checkbox_indeterminate_focus.png");
- }
- QTreeView,
- QListView,
- QTableView,
- QColumnView {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- gridline-color: #32414B;
- border-radius: 4px;
- }
- QTreeView:disabled,
- QListView:disabled,
- QTableView:disabled,
- QColumnView:disabled {
- background-color: #19232D;
- color: #787878;
- }
- QTreeView:selected,
- QListView:selected,
- QTableView:selected,
- QColumnView:selected {
- background-color: #1464A0;
- color: #32414B;
- }
- QTreeView:hover,
- QListView:hover,
- QTableView:hover,
- QColumnView:hover {
- background-color: #19232D;
- border: 1px solid #148CD2;
- }
- QTreeView::item:pressed,
- QListView::item:pressed,
- QTableView::item:pressed,
- QColumnView::item:pressed {
- background-color: #1464A0;
- }
- QTreeView::item:selected:hover,
- QListView::item:selected:hover,
- QTableView::item:selected:hover,
- QColumnView::item:selected:hover {
- background: #1464A0;
- color: #19232D;
- }
- QTreeView::item:selected:active,
- QListView::item:selected:active,
- QTableView::item:selected:active,
- QColumnView::item:selected:active {
- background-color: #1464A0;
- }
- QTreeView::item:!selected:hover,
- QListView::item:!selected:hover,
- QTableView::item:!selected:hover,
- QColumnView::item:!selected:hover {
- outline: 0;
- color: #148CD2;
- background-color: #32414B;
- }
- QTableCornerButton::section {
- background-color: #19232D;
- border: 1px transparent #32414B;
- border-radius: 0px;
- }
- /* QHeaderView ------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qheaderview
- --------------------------------------------------------------------------- */
- QHeaderView {
- background-color: #32414B;
- border: 0px transparent #32414B;
- padding: 0px;
- margin: 0px;
- border-radius: 0px;
- }
- QHeaderView:disabled {
- background-color: #32414B;
- border: 1px transparent #32414B;
- padding: 2px;
- }
- QHeaderView::section {
- background-color: #32414B;
- color: #F0F0F0;
- padding: 2px;
- border-radius: 0px;
- text-align: left;
- }
- QHeaderView::section:checked {
- color: #F0F0F0;
- background-color: #1464A0;
- }
- QHeaderView::section:checked:disabled {
- color: #787878;
- background-color: #14506E;
- }
- QHeaderView::section::horizontal {
- padding-left: 4px;
- padding-right: 4px;
- border-left: 1px solid #19232D;
- }
- QHeaderView::section::horizontal::first, QHeaderView::section::horizontal::only-one {
- border-left: 1px solid #32414B;
- }
- QHeaderView::section::horizontal:disabled {
- color: #787878;
- }
- QHeaderView::section::vertical {
- padding-left: 4px;
- padding-right: 4px;
- border-top: 1px solid #19232D;
- }
- QHeaderView::section::vertical::first, QHeaderView::section::vertical::only-one {
- border-top: 1px solid #32414B;
- }
- QHeaderView::section::vertical:disabled {
- color: #787878;
- }
- QHeaderView::down-arrow {
- /* Those settings (border/width/height/background-color) solve bug */
- /* transparent arrow background and size */
- background-color: #32414B;
- border: none;
- height: 12px;
- width: 12px;
- padding-left: 2px;
- padding-right: 2px;
- image: url(":/qss_icons/rc/arrow_down.png");
- }
- QHeaderView::up-arrow {
- background-color: #32414B;
- border: none;
- height: 12px;
- width: 12px;
- padding-left: 2px;
- padding-right: 2px;
- image: url(":/qss_icons/rc/arrow_up.png");
- }
- /* QToolBox --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qtoolbox
- --------------------------------------------------------------------------- */
- QToolBox {
- padding: 0px;
- border: 0px;
- border: 1px solid #32414B;
- }
- QToolBox:selected {
- padding: 0px;
- border: 2px solid #1464A0;
- }
- QToolBox::tab {
- background-color: #19232D;
- border: 1px solid #32414B;
- color: #F0F0F0;
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- }
- QToolBox::tab:disabled {
- color: #787878;
- }
- QToolBox::tab:selected {
- background-color: #505F69;
- border-bottom: 2px solid #1464A0;
- }
- QToolBox::tab:selected:disabled {
- background-color: #32414B;
- border-bottom: 2px solid #14506E;
- }
- QToolBox::tab:!selected {
- background-color: #32414B;
- border-bottom: 2px solid #32414B;
- }
- QToolBox::tab:!selected:disabled {
- background-color: #19232D;
- }
- QToolBox::tab:hover {
- border-color: #148CD2;
- border-bottom: 2px solid #148CD2;
- }
- QToolBox QScrollArea QWidget QWidget {
- padding: 0px;
- border: 0px;
- background-color: #19232D;
- }
- /* QFrame -----------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qframe
- https://doc.qt.io/qt-5/qframe.html#-prop
- https://doc.qt.io/qt-5/qframe.html#details
- https://stackoverflow.com/questions/14581498/qt-stylesheet-for-hline-vline-color
- --------------------------------------------------------------------------- */
- /* (dot) .QFrame fix #141, #126, #123 */
- .QFrame {
- border-radius: 4px;
- border: 1px solid #32414B;
- /* No frame */
- /* HLine */
- /* HLine */
- }
- .QFrame[frameShape="0"] {
- border-radius: 4px;
- border: 1px transparent #32414B;
- }
- .QFrame[frameShape="4"] {
- max-height: 2px;
- border: none;
- background-color: #32414B;
- }
- .QFrame[frameShape="5"] {
- max-width: 2px;
- border: none;
- background-color: #32414B;
- }
- /* QSplitter --------------------------------------------------------------
- https://doc.qt.io/qt-5/stylesheet-examples.html#customizing-qsplitter
- --------------------------------------------------------------------------- */
- QSplitter {
- background-color: #32414B;
- spacing: 0px;
- padding: 0px;
- margin: 0px;
- }
- QSplitter::handle {
- background-color: #32414B;
- border: 0px solid #19232D;
- spacing: 0px;
- padding: 1px;
- margin: 0px;
- }
- QSplitter::handle:hover {
- background-color: #787878;
- }
- QSplitter::handle:horizontal {
- width: 5px;
- image: url(":/qss_icons/rc/line_vertical.png");
- }
- QSplitter::handle:vertical {
- height: 5px;
- image: url(":/qss_icons/rc/line_horizontal.png");
- }
- /* QDateEdit, QDateTimeEdit -----------------------------------------------
- --------------------------------------------------------------------------- */
- QDateEdit, QDateTimeEdit {
- selection-background-color: #1464A0;
- border-style: solid;
- border: 1px solid #32414B;
- border-radius: 4px;
- /* This fixes 103, 111 */
- padding-top: 2px;
- /* This fixes 103, 111 */
- padding-bottom: 2px;
- padding-left: 4px;
- padding-right: 4px;
- min-width: 10px;
- }
- QDateEdit:on, QDateTimeEdit:on {
- selection-background-color: #1464A0;
- }
- QDateEdit::drop-down, QDateTimeEdit::drop-down {
- subcontrol-origin: padding;
- subcontrol-position: top right;
- width: 12px;
- border-left: 1px solid #32414B;
- }
- QDateEdit::down-arrow, QDateTimeEdit::down-arrow {
- image: url(":/qss_icons/rc/arrow_down_disabled.png");
- height: 8px;
- width: 8px;
- }
- QDateEdit::down-arrow:on, QDateEdit::down-arrow:hover, QDateEdit::down-arrow:focus, QDateTimeEdit::down-arrow:on, QDateTimeEdit::down-arrow:hover, QDateTimeEdit::down-arrow:focus {
- image: url(":/qss_icons/rc/arrow_down.png");
- }
- QDateEdit QAbstractItemView, QDateTimeEdit QAbstractItemView {
- background-color: #19232D;
- border-radius: 4px;
- border: 1px solid #32414B;
- selection-background-color: #1464A0;
- }
- /* QAbstractView ----------------------------------------------------------
- --------------------------------------------------------------------------- */
- QAbstractView:hover {
- border: 1px solid #148CD2;
- color: #F0F0F0;
- }
- QAbstractView:selected {
- background: #1464A0;
- color: #32414B;
- }
- /* PlotWidget -------------------------------------------------------------
- --------------------------------------------------------------------------- */
- PlotWidget {
- /* Fix cut labels in plots #134 */
- padding: 0px;
- }
|