| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348 |
- /* ------------------------------------------------------------------------ */
- /* QtMaterial - https://github.com/UN-GCPDS/qt-material
- /* By Yeison Cardona - GCPDS
- /* ------------------------------------------------------------------------ */
- *{
- color: {{secondaryTextColor}};
- font-family: {{font_family}};
- {% if font_size %}
- font-size: {{font_size|density(density_scale, density_interval=1)}}px;
- {% else %}
- font-size: {{13|density(density_scale, density_interval=1)}}px;
- {% endif %}
- {% if line_height %}
- line-height: {{line_height|density(density_scale, density_interval=8)}}px;
- {% else %}
- line-height: {{13|density(density_scale, density_interval=8)}}px;
- {% endif %}
- selection-background-color: {{primaryLightColor}};
- selection-color: {{primaryTextColor}};
- }
- *:focus {
- outline: none;
- }
- /* ------------------------------------------------------------------------ */
- /* Custom colors */
- .danger{
- color: {{danger}};
- background-color: transparent;
- }
- .warning{
- color: {{warning}};
- background-color: transparent;
- }
- .success{
- color: {{success}};
- background-color: transparent;
- }
- .danger:disabled{
- color: {{danger|opacity(0.4)}};
- border-color: {{danger|opacity(0.4)}};
- }
- .warning:disabled{
- color: {{warning|opacity(0.4)}};
- border-color: {{warning|opacity(0.4)}};
- }
- .success:disabled{
- color: {{success|opacity(0.4)}};
- border-color: {{success|opacity(0.4)}};
- }
- .danger:flat:disabled{
- background-color: {{danger|opacity(0.1)}};
- }
- .warning:flat:disabled{
- background-color: {{warning|opacity(0.1)}};
- }
- .success:flat:disabled{
- background-color: {{success|opacity(0.1)}};
- }
- /* ------------------------------------------------------------------------ */
- /* Basic widgets */
- QWidget {
- background-color: {{secondaryDarkColor}};
- }
- QGroupBox,
- QFrame {
- background-color: {{secondaryDarkColor}};
- border: 2px solid {{secondaryLightColor}};
- border-radius: 4px;
- }
- QGroupBox.fill_background,
- QFrame.fill_background {
- background-color: {{secondaryColor}};
- border: 2px solid {{secondaryColor}};
- border-radius: 4px;
- }
- QSplitter {
- background-color: transparent;
- border: none
- }
- QStatusBar {
- color: {{secondaryTextColor}};
- background-color: {{secondaryLightColor|opacity(0.2)}};
- border-radius: 0px;
- }
- QScrollArea,
- QStackedWidget,
- QWidget > QToolBox,
- QToolBox > QWidget,
- QTabWidget > QWidget {
- border: none;
- }
- QScrollArea {
- border: 2px solid {{secondaryLightColor}};
- }
- QTabWidget::pane {
- border: none;
- }
- /* ------------------------------------------------------------------------ */
- /* Inputs */
- QDateTimeEdit,
- QSpinBox,
- QDoubleSpinBox,
- QTextEdit,
- QLineEdit,
- QPushButton {
- color: {{primaryColor}};
- background-color: {{secondaryDarkColor}};
- border: 2px solid {{primaryColor}};
- border-radius: 4px;
- height: {{36|density(density_scale, border=2)}}px;
- }
- QDateTimeEdit,
- QSpinBox,
- QDoubleSpinBox,
- QTreeView,
- QListView,
- QLineEdit,
- QComboBox {
- padding-left: {{16|density(density_scale)}}px;
- border-radius: 0px;
- background-color: {{secondaryColor}};
- border-width: 0 0 2px 0;
- border-radius: 0px;
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- height: {{36|density(density_scale, border=2)}}px;
- }
- QPlainTextEdit {
- border-radius: 4px;
- padding: {{8|density(density_scale)}}px {{16|density(density_scale)}}px;
- background-color: {{secondaryDarkColor}};
- border: 2px solid {{secondaryLightColor}};
- }
- QTextEdit {
- padding: {{8|density(density_scale)}}px {{16|density(density_scale)}}px;
- border-radius: 4px;
- background-color: {{secondaryColor}};
- }
- QDateTimeEdit:disabled,
- QSpinBox:disabled,
- QDoubleSpinBox:disabled,
- QTextEdit:disabled,
- QLineEdit:disabled {
- color: {{primaryColor|opacity(0.2)}};
- background-color: {{secondaryColor|opacity(0.75)}};
- border: 2px solid {{primaryColor|opacity(0.2)}};
- border-width: 0 0 2px 0;
- padding: 0px {{16|density(density_scale)}}px;
- border-radius: 0px;
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- height: {{36|density(density_scale, border=2)}}px;
- }
- /* ------------------------------------------------------------------------ */
- /* QComboBox */
- QComboBox {
- color: {{primaryColor}};
- border: 1px solid {{primaryColor}};
- border-width: 0 0 2px 0;
- background-color: {{secondaryColor}};
- border-radius: 0px;
- border-top-left-radius: 4px;
- border-top-right-radius: 4px;
- height: {{36|density(density_scale, border=2)}}px;
- }
- QComboBox:disabled {
- color: {{primaryColor|opacity(0.2)}};
- background-color: {{secondaryColor|opacity(0.75)}};
- border-bottom: 2px solid {{primaryColor|opacity(0.2)}};
- }
- QComboBox::drop-down {
- border: none;
- color: {{primaryColor}};
- width: 20px;
- }
- QComboBox::down-arrow {
- image: url(icon:/primary/downarrow.svg);
- margin-right: {{12|density(density_scale)}}px;
- }
- QComboBox::down-arrow:disabled {
- image: url(icon:/disabled/downarrow.svg);
- margin-right: {{12|density(density_scale)}}px;
- }
- QComboBox QAbstractItemView {
- background-color: {{secondaryColor}};
- border: 2px solid {{secondaryLightColor}};
- border-radius: 4px;
- }
- QComboBox[frame='false'] {
- color: {{primaryColor}};
- background-color: transparent;
- border: 1px solid transparent;
- }
- QComboBox[frame='false']:disabled {
- color: {{primaryColor|opacity(0.2)}};
- }
- /* ------------------------------------------------------------------------ */
- /* Spin buttons */
- QDateTimeEdit::up-button,
- QDoubleSpinBox::up-button,
- QSpinBox::up-button {
- subcontrol-origin: border;
- subcontrol-position: top right;
- width: 20px;
- image: url(icon:/primary/uparrow.svg);
- border-width: 0px;
- margin-right: 5px;
- }
- QDateTimeEdit::up-button:disabled,
- QDoubleSpinBox::up-button:disabled,
- QSpinBox::up-button:disabled {
- image: url(icon:/disabled/uparrow.svg);
- }
- QDateTimeEdit::down-button,
- QDoubleSpinBox::down-button,
- QSpinBox::down-button {
- subcontrol-origin: border;
- subcontrol-position: bottom right;
- width: 20px;
- image: url(icon:/primary/downarrow.svg);
- border-width: 0px;
- border-top-width: 0;
- margin-right: 5px;
- }
- QDateTimeEdit::down-button:disabled,
- QDoubleSpinBox::down-button:disabled,
- QSpinBox::down-button:disabled {
- image: url(icon:/disabled/downarrow.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QPushButton */
- QPushButton {
- text-transform: uppercase;
- margin: 0px;
- padding: {{1|density(density_scale)}}px {{16|density(density_scale)}}px;
- height: {{36|density(density_scale, border=2)}}px;
- {% if button_shape=='default' %}
- border-radius: 4px;
- {% elif button_shape=='rounded' %}
- border-radius: {{36|density(density_scale, border=2, scale=0.5)}}px;
- {% endif %}
- }
- QPushButton:checked,
- QPushButton:pressed {
- color: {{secondaryDarkColor}};
- background-color: {{primaryColor}};
- }
- QPushButton:hover {
- color: {{secondaryDarkColor}};
- background-color: {{primaryColor}};
- }
- QPushButton:flat {
- margin: 0px;
- color: {{primaryColor}};
- border: none;
- background-color: transparent;
- }
- QPushButton:flat:hover {
- background-color: {{primaryColor|opacity(0.2)}};
- }
- QPushButton:flat:pressed,
- QPushButton:flat:checked {
- background-color: {{primaryColor|opacity(0.1)}};
- }
- QPushButton:disabled {
- color: {{secondaryLightColor|opacity(0.75)}};
- background-color: transparent;
- border-color: {{secondaryLightColor}};
- }
- QPushButton:flat:disabled {
- color: {{secondaryLightColor|opacity(0.75)}};
- background-color: {{secondaryLightColor|opacity(0.25)}};
- border: none;
- }
- QPushButton:disabled {
- border: 2px solid {{secondaryLightColor|opacity(0.75)}};
- }
- QPushButton:checked:disabled {
- color: {{secondaryColor}};
- background-color: {{secondaryLightColor}};
- border-color: {{secondaryLightColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QTabBar */
- QTabBar{
- text-transform: uppercase;
- font-weight: bold;
- }
- QTabBar::tab {
- color: {{secondaryTextColor}};
- border: 0px;
- }
- QTabBar::tab:bottom,
- QTabBar::tab:top{
- padding: 0 {{16|density(density_scale)}}px;
- height: {{28|density(density_scale)}}px;
- }
- QTabBar::tab:left,
- QTabBar::tab:right{
- padding: {{16|density(density_scale)}}px 0;
- width: {{28|density(density_scale)}}px;
- }
- QTabBar::tab:top:selected,
- QTabBar::tab:top:hover {
- color: {{primaryColor}};
- border-bottom: 2px solid {{primaryColor}};
- }
- QTabBar::tab:bottom:selected,
- QTabBar::tab:bottom:hover {
- color: {{primaryColor}};
- border-top: 2px solid {{primaryColor}};
- }
- QTabBar::tab:right:selected,
- QTabBar::tab:right:hover {
- color: {{primaryColor}};
- border-left: 2px solid {{primaryColor}};
- }
- QTabBar::tab:left:selected,
- QTabBar::tab:left:hover {
- color: {{primaryColor}};
- border-right: 2px solid {{primaryColor}};
- }
- QTabBar QToolButton:hover,
- QTabBar QToolButton {
- border: 20px;
- background-color: {{secondaryDarkColor}};
- }
- QTabBar QToolButton::up-arrow {
- image: url(icon:/disabled/uparrow2.svg);
- }
- QTabBar QToolButton::up-arrow:hover {
- image: url(icon:/primary/uparrow2.svg);
- }
- QTabBar QToolButton::down-arrow {
- image: url(icon:/disabled/downarrow2.svg);
- }
- QTabBar QToolButton::down-arrow:hover {
- image: url(icon:/primary/downarrow2.svg);
- }
- QTabBar QToolButton::right-arrow {
- image: url(icon:/primary/rightarrow2.svg);
- }
- QTabBar QToolButton::right-arrow:hover {
- image: url(icon:/disabled/rightarrow2.svg);
- }
- QTabBar QToolButton::left-arrow {
- image: url(icon:/primary/leftarrow2.svg);
- }
- QTabBar QToolButton::left-arrow:hover {
- image: url(icon:/disabled/leftarrow2.svg);
- }
- QTabBar::close-button {
- image: url(icon:/disabled/tab_close.svg);
- }
- QTabBar::close-button:hover {
- image: url(icon:/primary/tab_close.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QGroupBox */
- QGroupBox {
- padding-top: {{font_size/2|density(density_scale)}}px;
- margin-top: {{font_size/1.5|density(density_scale)}}px;
- line-height: {{font_size}};
- text-transform: uppercase;
- font-size: {{font_size}};
- }
- QGroupBox::title {
- color: {{secondaryTextColor|opacity(0.4)}};
- subcontrol-origin: margin;
- subcontrol-position: top left;
- left: {{font_size|density(density_scale)}}px;
- background-color: {{secondaryDarkColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QRadioButton and QCheckBox labels */
- QRadioButton,
- QCheckBox {
- spacing: {{12|density(density_scale)}}px;
- color: {{secondaryTextColor}};
- line-height: 14px;
- height: {{36|density(density_scale)}}px;
- background-color: transparent;
- spacing: 5px;
- }
- QRadioButton:disabled,
- QCheckBox:disabled {
- color: {{secondaryTextColor|opacity(0.3)}};
- }
- /* ------------------------------------------------------------------------ */
- /* General Indicators */
- QGroupBox::indicator {
- width: {{24|density(density_scale)}}px;
- height: {{24|density(density_scale)}}px;
- border-radius: 3px;
- }
- QMenu::indicator,
- QListView::indicator,
- QTableWidget::indicator,
- QRadioButton::indicator,
- QCheckBox::indicator {
- width: {{28|density(density_scale)}}px;
- height: {{28|density(density_scale)}}px;
- border-radius: 4px;
- }
- /* ------------------------------------------------------------------------ */
- /* QListView Indicator */
- QListView::indicator:checked,
- QListView::indicator:checked:selected,
- QListView::indicator:checked:focus {
- image: url(icon:/primary/checklist.svg);
- }
- QListView::indicator:checked:selected:active {
- image: url(icon:/primary/checklist_invert.svg);
- }
- QListView::indicator:checked:disabled {
- image: url(icon:/disabled/checklist.svg);
- }
- QListView::indicator:indeterminate,
- QListView::indicator:indeterminate:selected,
- QListView::indicator:indeterminate:focus {
- image: url(icon:/primary/checklist_indeterminate.svg);
- }
- QListView::indicator:indeterminate:selected:active {
- image: url(icon:/primary/checklist_indeterminate_invert.svg);
- }
- QListView::indicator:indeterminate:disabled {
- image: url(icon:/disabled/checklist_indeterminate.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QTableView Indicator */
- QTableView::indicator:enabled:checked,
- QTableView::indicator:enabled:checked:selected,
- QTableView::indicator:enabled:checked:focus {
- image: url(icon:/primary/checkbox_checked.svg);
- }
- QTableView::indicator:checked:selected:active {
- image: url(icon:/primary/checkbox_checked_invert.svg);
- }
- QTableView::indicator:disabled:checked,
- QTableView::indicator:disabled:checked:selected,
- QTableView::indicator:disabled:checked:focus {
- image: url(icon:/disabled/checkbox_checked.svg);
- }
- QTableView::indicator:enabled:unchecked,
- QTableView::indicator:enabled:unchecked:selected,
- QTableView::indicator:enabled:unchecked:focus {
- image: url(icon:/primary/checkbox_unchecked.svg);
- }
- QTableView::indicator:unchecked:selected:active {
- image: url(icon:/primary/checkbox_unchecked_invert.svg);
- }
- QTableView::indicator:disabled:unchecked,
- QTableView::indicator:disabled:unchecked:selected,
- QTableView::indicator:disabled:unchecked:focus {
- image: url(icon:/disabled/checkbox_unchecked.svg);
- }
- QTableView::indicator:enabled:indeterminate,
- QTableView::indicator:enabled:indeterminate:selected,
- QTableView::indicator:enabled:indeterminate:focus {
- image: url(icon:/primary/checkbox_indeterminate.svg);
- }
- QTableView::indicator:indeterminate:selected:active {
- image: url(icon:/primary/checkbox_indeterminate_invert.svg);
- }
- QTableView::indicator:disabled:indeterminate,
- QTableView::indicator:disabled:indeterminate:selected,
- QTableView::indicator:disabled:indeterminate:focus {
- image: url(icon:/disabled/checkbox_indeterminate.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QCheckBox and QGroupBox Indicator */
- QCheckBox::indicator:checked,
- QGroupBox::indicator:checked {
- image: url(icon:/primary/checkbox_checked.svg);
- }
- QCheckBox::indicator:unchecked,
- QGroupBox::indicator:unchecked {
- image: url(icon:/primary/checkbox_unchecked.svg);
- }
- QCheckBox::indicator:indeterminate,
- QGroupBox::indicator:indeterminate {
- image: url(icon:/primary/checkbox_indeterminate.svg);
- }
- QCheckBox::indicator:checked:disabled,
- QGroupBox::indicator:checked:disabled {
- image: url(icon:/disabled/checkbox_checked.svg);
- }
- QCheckBox::indicator:unchecked:disabled,
- QGroupBox::indicator:unchecked:disabled {
- image: url(icon:/disabled/checkbox_unchecked.svg);
- }
- QCheckBox::indicator:indeterminate:disabled,
- QGroupBox::indicator:indeterminate:disabled {
- image: url(icon:/disabled/checkbox_indeterminate.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QRadioButton Indicator */
- QRadioButton::indicator:checked {
- image: url(icon:/primary/radiobutton_checked.svg);
- }
- QRadioButton::indicator:unchecked {
- image: url(icon:/primary/radiobutton_unchecked.svg);
- }
- QRadioButton::indicator:checked:disabled {
- image: url(icon:/disabled/radiobutton_checked.svg);
- }
- QRadioButton::indicator:unchecked:disabled {
- image: url(icon:/disabled/radiobutton_unchecked.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QDockWidget */
- QDockWidget {
- color: {{secondaryTextColor}};
- text-transform: uppercase;
- border: 2px solid {{secondaryColor}};
- titlebar-close-icon: url(icon:/primary/close.svg);
- titlebar-normal-icon: url(icon:/primary/float.svg);
- border-radius: 4px;
- }
- QDockWidget::title {
- text-align: left;
- padding-left: {{36|density(density_scale)}}px;
- padding: 3px;
- margin-top: 4px;
- }
- /* ------------------------------------------------------------------------ */
- /* QComboBox indicator */
- QComboBox::indicator:checked {
- image: url(icon:/primary/checklist.svg);
- }
- QComboBox::indicator:checked:selected {
- image: url(icon:/primary/checklist_invert.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* Menu Items */
- QComboBox::item,
- QCalendarWidget QMenu::item,
- QMenu::item {
- {% if QMenu %}
- height: {{qmenu_height}}px;
- {% else %}
- height: {{28|density(density_scale)}}px;
- {% endif %}
- border: 8px solid transparent;
- color: {{secondaryTextColor}};
- }
- QCalendarWidget QMenu::item,
- QMenu::item {
- {% if QMenu %}
- padding: {{qmenu_padding}};
- {% else %}
- {% if pyside6 or pyqt6 %}
- padding: 0px {{24|density(density_scale)}}px 0px 8px; /* pyside6 or pyqt6 */
- {% elif pyqt5 %}
- padding: 0px {{24|density(density_scale)}}px 0px 8px; /* pyqt5 */
- {% elif pyside2 %}
- padding: 0px {{32|density(density_scale)}}px 0px {{32|density(density_scale)}}px; /* pyside2 */
- {% endif %}
- {% endif %}
- }
- QComboBox::item:selected,
- QCalendarWidget QMenu::item:selected,
- QMenu::item:selected {
- color: {{primaryTextColor}};
- background-color: {{primaryLightColor}};
- border-radius: 0px;
- }
- QComboBox::item:disabled,
- QCalendarWidget QMenu::item:disabled,
- QMenu::item:disabled {
- color: {{secondaryTextColor|opacity(0.3)}};
- }
- /* ------------------------------------------------------------------------ */
- /* QMenu */
- QCalendarWidget QMenu,
- QMenu {
- background-color: {{secondaryColor}};
- border: 2px solid {{secondaryLightColor}};
- border-radius: 4px;
- }
- QMenu::separator {
- height: 2px;
- background-color: {{secondaryLightColor}};
- margin-left: 2px;
- margin-right: 2px;
- }
- QMenu::right-arrow{
- image: url(icon:/primary/rightarrow.svg);
- width: {{16|density(density_scale)}}px;
- height: {{16|density(density_scale)}}px;
- }
- QMenu::right-arrow:selected{
- image: url(icon:/disabled/rightarrow.svg);
- }
- QMenu::indicator:non-exclusive:unchecked {
- image: url(icon:/primary/checkbox_unchecked.svg);
- }
- QMenu::indicator:non-exclusive:unchecked:selected {
- image: url(icon:/primary/checkbox_unchecked_invert.svg);
- }
- QMenu::indicator:non-exclusive:checked {
- image: url(icon:/primary/checkbox_checked.svg);
- }
- QMenu::indicator:non-exclusive:checked:selected {
- image: url(icon:/primary/checkbox_checked_invert.svg);
- }
- QMenu::indicator:exclusive:unchecked {
- image: url(icon:/primary/radiobutton_unchecked.svg);
- }
- QMenu::indicator:exclusive:unchecked:selected {
- image: url(icon:/primary/radiobutton_unchecked_invert.svg);
- }
- QMenu::indicator:exclusive:checked {
- image: url(icon:/primary/radiobutton_checked.svg);
- }
- QMenu::indicator:exclusive:checked:selected {
- image: url(icon:/primary/radiobutton_checked_invert.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* QMenuBar */
- QMenuBar {
- background-color: {{secondaryColor}};
- color: {{secondaryTextColor}};
- }
- QMenuBar::item {
- height: {{32|density(density_scale)}}px;
- padding: 8px;
- background-color: transparent;
- color: {{secondaryTextColor}};
- }
- QMenuBar::item:selected,
- QMenuBar::item:pressed {
- color: {{primaryTextColor}};
- background-color: {{primaryLightColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QToolBox */
- QToolBox::tab {
- background-color: {{secondaryColor}};
- color: {{secondaryTextColor}};
- text-transform: uppercase;
- border-radius: 4px;
- padding-left: 15px;
- }
- QToolBox::tab:selected,
- QToolBox::tab:hover {
- background-color: {{primaryColor|opacity(0.2)}};
- }
- /* ------------------------------------------------------------------------ */
- /* QProgressBar */
- QProgressBar {
- border-radius: 15px;
- background-color: {{secondaryLightColor}};
- text-align: center;
- color: black;
- margin-right:45px;
- }
- QProgressBar::chunk {
- border-radius: 15px;
- background-color: {{primaryColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QScrollBar */
- QScrollBar:horizontal {
- border: 0;
- background: {{secondaryColor}};
- height: {{8|density(density_scale)}}px;
- }
- QScrollBar:vertical {
- border: 0;
- background: {{secondaryColor}};
- width: {{8|density(density_scale)}}px;
- }
- QScrollBar::handle {
- background: {{primaryColor|opacity(0.1)}};
- }
- QScrollBar::handle:horizontal {
- min-width: {{24|density(density_scale)}}px;
- }
- QScrollBar::handle:vertical {
- min-height: {{24|density(density_scale)}}px;
- }
- QScrollBar::handle:vertical:hover,
- QScrollBar::handle:horizontal:hover {
- background: {{primaryColor}};
- }
- QScrollBar::add-line:vertical,
- QScrollBar::sub-line:vertical,
- QScrollBar::add-line:horizontal,
- QScrollBar::sub-line:horizontal {
- border: 0;
- background: transparent;
- width: 0px;
- height: 0px;
- }
- /* ------------------------------------------------------------------------ */
- /* QScrollBar-Big */
- QScrollBar.big:horizontal {
- border: 0;
- background: {{secondaryColor}};
- height: {{36|density(density_scale)}}px;
- }
- QScrollBar.big:vertical {
- border: 0;
- background: {{secondaryColor}};
- width: {{36|density(density_scale)}}px;
- }
- QScrollBar.big::handle,
- QScrollBar.big::handle:vertical:hover,
- QScrollBar.big::handle:horizontal:hover {
- background: {{primaryColor}};
- }
- QScrollBar.big::handle:horizontal {
- min-width: {{24|density(density_scale)}}px;
- }
- QScrollBar.big::handle:vertical {
- min-height: {{24|density(density_scale)}}px;
- }
- QScrollBar.big::add-line:vertical,
- QScrollBar.big::sub-line:vertical,
- QScrollBar.big::add-line:horizontal,
- QScrollBar.big::sub-line:horizontal {
- border: 0;
- background: transparent;
- width: 0px;
- height: 0px;
- }
- /* ------------------------------------------------------------------------ */
- /* QSlider */
- QSlider:horizontal {
- min-height: {{24|density(density_scale)}}px;
- max-height: {{24|density(density_scale)}}px;
- }
- QSlider:vertical {
- min-width: {{24|density(density_scale)}}px;
- max-width: {{24|density(density_scale)}}px;
- }
- QSlider::groove:horizontal {
- height: 4px;
- background: #393939;
- margin: 0 {{12|density(density_scale)}}px;
- }
- QSlider::groove:vertical {
- width: 4px;
- background: #393939;
- margin: {{12|density(density_scale)}}px 0;
- border-radius: {{24|density(density_scale)}}px;
- }
- QSlider::handle:horizontal {
- image: url(icon:/primary/slider.svg);
- width: {{24|density(density_scale)}}px;
- height: {{24|density(density_scale)}}px;
- margin: -{{24|density(density_scale)}}px -{{12|density(density_scale)}}px;
- }
- QSlider::handle:vertical {
- image: url(icon:/primary/slider.svg);
- border-radius: {{24|density(density_scale)}}px;
- width: {{24|density(density_scale)}}px;
- height: {{24|density(density_scale)}}px;
- margin: -{{12|density(density_scale)}}px -{{24|density(density_scale)}}px;
- }
- QSlider::add-page {
- background: {{secondaryColor}};
- }
- QSlider::sub-page {
- background: {{primaryColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QLabel */
- QLabel {
- border: none;
- background: transparent;
- color: {{secondaryTextColor}}
- }
- QLabel:disabled {
- color: {{secondaryTextColor|opacity(0.2)}}
- }
- /* ------------------------------------------------------------------------ */
- /* VLines and HLinex */
- QFrame[frameShape="4"] {
- border-width: 1px 0 0 0;
- background: none;
- }
- QFrame[frameShape="5"] {
- border-width: 0 1px 0 0;
- background: none;
- }
- QFrame[frameShape="4"],
- QFrame[frameShape="5"] {
- border-color: {{secondaryLightColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QToolBar */
- QToolBar {
- background: {{secondaryDarkColor}};
- border: 0px solid;
- }
- QToolBar:horizontal {
- border-bottom: 1px solid {{secondaryLightColor}};
- }
- QToolBar:vertical {
- border-right: 1px solid {{secondaryLightColor}};
- }
- QToolBar::handle:horizontal {
- image: url(icon:/primary/toolbar-handle-horizontal.svg);
- }
- QToolBar::handle:vertical {
- image: url(icon:/primary/toolbar-handle-vertical.svg);
- }
- QToolBar::separator:horizontal {
- border-right: 1px solid {{secondaryLightColor}};
- border-left: 1px solid {{secondaryLightColor}};
- width: 1px;
- }
- QToolBar::separator:vertical {
- border-top: 1px solid {{secondaryLightColor}};
- border-bottom: 1px solid {{secondaryLightColor}};
- height: 1px;
- }
- /* ------------------------------------------------------------------------ */
- /* QToolButton */
- QToolButton {
- background: {{secondaryDarkColor}};
- border: 0px;
- height: {{36|density(density_scale)}}px;
- margin: 3px;
- padding: 3px;
- border-right: 12px solid {{secondaryDarkColor}};
- border-left: 12px solid {{secondaryDarkColor}};
- }
- QToolButton:hover {
- background: {{secondaryLightColor}};
- border-right: 12px solid {{secondaryLightColor}};
- border-left: 12px solid {{secondaryLightColor}};
- }
- QToolButton:pressed {
- background: {{secondaryColor}};
- border-right: 12px solid {{secondaryColor}};
- border-left: 12px solid {{secondaryColor}};
- }
- QToolButton:checked {
- background: {{secondaryLightColor}};
- border-left: 12px solid {{secondaryLightColor}};
- border-right: 12px solid {{primaryColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* General viewers */
- QTableView {
- background-color: {{secondaryDarkColor}};
- border: 1px solid {{secondaryColor}};
- border-radius: 4px;
- }
- QTreeView,
- QListView {
- border-radius: 4px;
- padding: 4px;
- margin: 0px;
- border: 0px;
- }
- QTableView::item,
- QTreeView::item,
- QListView::item {
- padding: 4px;
- min-height: {{32|density(density_scale)}}px;
- color: {{secondaryTextColor}};
- selection-color: {{secondaryTextColor}}; /* For Windows */
- border-color: transparent; /* Fix #34 */
- }
- /* ------------------------------------------------------------------------ */
- /* Items Selection */
- QTableView::item:selected,
- QTreeView::item:selected,
- QListView::item:selected {
- background-color: {{primaryColor|opacity(0.2)}};
- selection-background-color: {{primaryColor|opacity(0.2)}};
- color: {{secondaryTextColor}};
- selection-color: {{secondaryTextColor}}; /* For Windows */
- }
- QTableView::item:selected:focus,
- QTreeView::item:selected:focus,
- QListView::item:selected:focus {
- background-color: {{primaryColor}};
- selection-background-color: {{primaryColor}};
- color: {{primaryTextColor}};
- selection-color: {{primaryTextColor}}; /* For Windows */
- }
- QTableView {
- selection-background-color: {{primaryColor|opacity(0.2)}};
- }
- QTableView:focus {
- selection-background-color: {{primaryColor}};
- }
- QTableView::item:disabled {
- color: {{secondaryTextColor|opacity(0.3)}};
- selection-color: {{secondaryTextColor|opacity(0.3)}};
- background-color: {{secondaryColor}};
- selection-background-color: {{secondaryColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QTreeView */
- QTreeView::branch{
- background-color: {{secondaryColor}};
- }
- QTreeView::branch:closed:has-children:has-siblings,
- QTreeView::branch:closed:has-children:!has-siblings {
- image: url(icon:/primary/branch-closed.svg);
- }
- QTreeView::branch:open:has-children:!has-siblings,
- QTreeView::branch:open:has-children:has-siblings {
- image: url(icon:/primary/branch-open.svg);
- }
- QTreeView::branch:has-siblings:!adjoins-item {
- border-image: url(icon:/disabled/vline.svg) 0;
- }
- QTreeView::branch:has-siblings:adjoins-item {
- border-image: url(icon:/disabled/branch-more.svg) 0;
- }
- QTreeView::branch:!has-children:!has-siblings:adjoins-item,
- QTreeView::branch:has-children:!has-siblings:adjoins-item {
- border-image: url(icon:/disabled/branch-end.svg) 0;
- }
- QTreeView QHeaderView::section {
- border: none;
- }
- /* ------------------------------------------------------------------------ */
- /* Custom buttons */
- QPushButton.danger {
- border-color: {{danger}};
- color: {{danger}};
- }
- QPushButton.danger:checked,
- QPushButton.danger:pressed {
- color: {{secondaryDarkColor}};
- background-color: {{danger}};
- }
- QPushButton.warning{
- border-color: {{warning}};
- color: {{warning}};
- }
- QPushButton.warning:checked,
- QPushButton.warning:pressed {
- color: {{secondaryDarkColor}};
- background-color: {{warning}};
- }
- QPushButton.success {
- border-color: {{success}};
- color: {{success}};
- }
- QPushButton.success:checked,
- QPushButton.success:pressed {
- color: {{secondaryDarkColor}};
- background-color: {{success}};
- }
- QPushButton.danger:flat:hover {
- background-color: {{danger|opacity(0.2)}};
- }
- QPushButton.danger:flat:pressed,
- QPushButton.danger:flat:checked {
- background-color: {{danger|opacity(0.1)}};
- color: {{danger}};
- }
- QPushButton.warning:flat:hover {
- background-color: {{warning|opacity(0.2)}};
- }
- QPushButton.warning:flat:pressed,
- QPushButton.warning:flat:checked {
- background-color: {{warning|opacity(0.1)}};
- color: {{warning}};
- }
- QPushButton.success:flat:hover {
- background-color: {{success|opacity(0.2)}};
- }
- QPushButton.success:flat:pressed,
- QPushButton.success:flat:checked {
- background-color: {{success|opacity(0.1)}};
- color: {{success}};
- }
- /* ------------------------------------------------------------------------ */
- /* QTableView */
- QTableCornerButton::section {
- background-color: {{secondaryColor}};
- border-radius: 0px;
- border-right: 1px solid;
- border-bottom: 1px solid;
- border-color: {{secondaryDarkColor}};
- }
- QTableView {
- alternate-background-color: {{secondaryColor|opacity(0.7)}};
- }
- QHeaderView {
- border: none;
- }
- QHeaderView::section {
- color: {{secondaryTextColor|opacity(0.7)}};
- text-transform: uppercase;
- background-color: {{secondaryColor}};
- padding: 0 {{24|density(density_scale)}}px;
- height: {{36|density(density_scale)}}px;
- border-radius: 0px;
- border-right: 1px solid;
- border-bottom: 1px solid;
- border-color: {{secondaryDarkColor}};
- }
- QHeaderView::section:vertical {
- }
- QHeaderView::section:horizontal {
- }
- /* ------------------------------------------------------------------------ */
- /* QLCDNumber */
- QLCDNumber {
- color: {{primaryColor}};
- background-color:{{primaryColor|opacity(0.1)}};
- border: 1px solid {{primaryColor|opacity(0.3)}};
- border-radius: 4px;
- }
- /* ------------------------------------------------------------------------ */
- /* QCalendarWidget */
- #qt_calendar_prevmonth {
- qproperty-icon: url(icon:/primary/leftarrow.svg);
- }
- #qt_calendar_nextmonth {
- qproperty-icon: url(icon:/primary/rightarrow.svg);
- }
- /* ------------------------------------------------------------------------ */
- /* Inline QLineEdit */
- QTreeView QLineEdit,
- QTableView QLineEdit,
- QListView QLineEdit {
- color: {{secondaryTextColor}};
- background-color: {{secondaryColor}};
- border: 1px solid unset;
- border-radius: unset;
- padding: unset;
- padding-left: unset;
- height: unset;
- border-width: unset;
- border-top-left-radius: unset;
- border-top-right-radius: unset;
- }
- /* ------------------------------------------------------------------------ */
- /* QToolTip */
- QToolTip {
- padding: 4px;
- border: 1px solid {{secondaryDarkColor}};
- border-radius: 4px;
- color: {{secondaryTextColor}};
- background-color: {{secondaryLightColor}};
- }
- /* ------------------------------------------------------------------------ */
- /* QDialog */
- {% if linux %}
- /* linux */
- QDialog QToolButton,
- QDialog QToolButton:hover,
- QDialog QToolButton:pressed,
- QDialog QToolButton:checked {
- border: 0px;
- height: unset;
- margin: unset;
- padding: unset;
- border-right: unset;
- border-left: unset;
- background-color: {{primaryColor}};
- color: {{secondaryTextColor}};
- border-radius: 4px;
- }
- {% endif%}
- QDialog QToolButton:disabled {
- background-color: {{secondaryColor}};
- color: {{secondaryTextColor}}
- }
- /* ------------------------------------------------------------------------ */
- /* Grips */
- QMainWindow::separator:vertical,
- QSplitter::handle:horizontal {
- image: url(icon:/primary/splitter-horizontal.svg);
- }
- QMainWindow::separator:horizontal,
- QSplitter::handle:vertical {
- image: url(icon:/primary/splitter-vertical.svg);
- }
- QSizeGrip {
- image: url(icon:/primary/sizegrip.svg);
- background-color: transparent;
- }
- QMenuBar QToolButton:hover,
- QMenuBar QToolButton:pressed,
- QMenuBar QToolButton {
- border-width: 0;
- border-left: 10px;
- border-image: url(icon:/primary/rightarrow2.svg);
- background-color: transparent;
- }
|