Rebuild stylesheet.

This commit is contained in:
Yeison 2021-04-24 19:54:42 -05:00
parent 1f7f05c5b7
commit a0ed0fe344

View File

@ -1,3 +1,8 @@
/* ------------------------------------------------------------------------ */
/* QtMaterial - https://github.com/UN-GCPDS/qt-material
/* By Yeison Cardona - GCPDS
/* ------------------------------------------------------------------------ */
*{ *{
color: {{secondaryTextColor}}; color: {{secondaryTextColor}};
font-family: {{font_family}}; font-family: {{font_family}};
@ -7,46 +12,27 @@
selection-color: {{primaryTextColor}}; selection-color: {{primaryTextColor}};
} }
*:focus {
outline: none;
}
/* ------------------------------------------------------------------------ */
/* Custom colors */
.danger{ .danger{
color: {{danger}}; color: {{danger}};
} }
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}};
}
.warning{ .warning{
color: {{warning}}; color: {{warning}};
} }
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}};
}
.success{ .success{
color: {{success}}; color: {{success}};
} }
QPushButton.success:flat:hover { /* ------------------------------------------------------------------------ */
background-color: {{success|opacity(0.2)}}; /* Basic widgets */
}
QPushButton.success:flat:pressed,
QPushButton.success:flat:checked {
background-color: {{success|opacity(0.1)}};
color: {{success}};
}
QWidget { QWidget {
background-color: {{secondaryDarkColor}}; background-color: {{secondaryDarkColor}};
@ -69,13 +55,21 @@ QStatusBar {
border-radius: 0px; border-radius: 0px;
} }
QSizeGrip { QScrollArea,
image: url(icon:/primary/sizegrip.svg); QStackedWidget,
background-color: transparent; QWidget > QToolBox,
width: 16px; QToolBox > QWidget,
height: 16px; QTabWidget > QWidget {
border: none;
} }
QTabWidget::pane {
border: none;
}
/* ------------------------------------------------------------------------ */
/* Inputs */
QDateTimeEdit, QDateTimeEdit,
QSpinBox, QSpinBox,
QDoubleSpinBox, QDoubleSpinBox,
@ -90,30 +84,6 @@ QPushButton {
height: 18px; height: 18px;
} }
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)}};
}
QComboBox {
color: {{primaryColor}};
background-color: {{secondaryDarkColor}};
border: 1px solid {{primaryColor}};
border-radius: 4px;
height: 36px;
}
QComboBox:disabled {
color: {{primaryColor|opacity(0.2)}};
background-color: {{secondaryColor|opacity(0.75)}};
border-bottom: 2px solid {{primaryColor|opacity(0.2)}};
}
QDateTimeEdit, QDateTimeEdit,
QSpinBox, QSpinBox,
QDoubleSpinBox, QDoubleSpinBox,
@ -121,13 +91,13 @@ QTreeView,
QListView, QListView,
QLineEdit, QLineEdit,
QComboBox { QComboBox {
color: {{primaryColor}};
padding-left: 15px; padding-left: 15px;
border-radius: 0px; border-radius: 0px;
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};
border-width: 0 0 2px 0; border-width: 0 0 2px 0;
border-top-left-radius: 5px; border-radius: 0px;
border-top-right-radius: 5px; border-top-left-radius: 4px;
border-top-right-radius: 4px;
} }
QPlainTextEdit { QPlainTextEdit {
@ -146,24 +116,10 @@ QLineEdit:disabled {
background-color: {{secondaryColor|opacity(0.75)}}; background-color: {{secondaryColor|opacity(0.75)}};
border: 2px solid {{primaryColor|opacity(0.2)}}; border: 2px solid {{primaryColor|opacity(0.2)}};
border-width: 0 0 2px 0; border-width: 0 0 2px 0;
border-radius: 4px;
padding: 8px 16px ; padding: 8px 16px ;
/*font-weight: bold;*/
}
QComboBox[frame='false'] {
color: {{primaryColor}};
background-color: transparent;
border: 1px solid transparent;
}
QHeaderView::section {
color: {{secondaryTextColor|opacity(0.7)}};
text-transform: uppercase;
background-color: {{secondaryColor}};
border-radius: 0px; border-radius: 0px;
padding: 0 20px; border-top-left-radius: 4px;
height: 35px; border-top-right-radius: 4px;
} }
QTextEdit { QTextEdit {
@ -172,6 +128,37 @@ QTextEdit {
background-color: {{secondaryColor}}; 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;
}
/* ------------------------------------------------------------------------ */
/* 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: 36px;
}
QComboBox:disabled {
color: {{primaryColor|opacity(0.2)}};
background-color: {{secondaryColor|opacity(0.75)}};
border-bottom: 2px solid {{primaryColor|opacity(0.2)}};
}
QComboBox::drop-down { QComboBox::drop-down {
border: none; border: none;
color: {{primaryColor}}; color: {{primaryColor}};
@ -194,6 +181,18 @@ QComboBox QAbstractItemView {
border-radius: 2px; border-radius: 2px;
} }
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, QDateTimeEdit::up-button,
QDoubleSpinBox::up-button, QDoubleSpinBox::up-button,
QSpinBox::up-button { QSpinBox::up-button {
@ -229,6 +228,9 @@ QSpinBox::down-button:disabled {
image: url(icon:/disabled/downarrow.svg); image: url(icon:/disabled/downarrow.svg);
} }
/* ------------------------------------------------------------------------ */
/* QPushButton */
QPushButton { QPushButton {
text-transform: uppercase; text-transform: uppercase;
margin: 0px; margin: 0px;
@ -279,19 +281,8 @@ QPushButton:checked:disabled {
border-color: {{secondaryLightColor}}; border-color: {{secondaryLightColor}};
} }
QTabWidget::pane { /* ------------------------------------------------------------------------ */
} /* QTabBar */
QTabWidget::tab-bar {
}
QScrollArea,
QStackedWidget,
QWidget > QToolBox,
QToolBox > QWidget,
QTabWidget > QWidget {
border: none;
}
QTabBar{ QTabBar{
text-transform: uppercase; text-transform: uppercase;
@ -385,6 +376,9 @@ QTabBar::close-button:hover {
image: url(icon:/primary/tab_close.svg); image: url(icon:/primary/tab_close.svg);
} }
/* ------------------------------------------------------------------------ */
/* QGroupBox */
QGroupBox { QGroupBox {
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};
border-radius: 4px; border-radius: 4px;
@ -406,6 +400,9 @@ QGroupBox::title {
border-radius: 8px; border-radius: 8px;
} }
/* ------------------------------------------------------------------------ */
/* QRadioButton and QCheckBox labels */
QRadioButton, QRadioButton,
QCheckBox { QCheckBox {
spacing: 10px; spacing: 10px;
@ -421,6 +418,9 @@ QCheckBox:disabled {
color: {{secondaryTextColor|opacity(0.3)}}; color: {{secondaryTextColor|opacity(0.3)}};
} }
/* ------------------------------------------------------------------------ */
/* General Indicators */
QMenu::indicator, QMenu::indicator,
QListView::indicator, QListView::indicator,
QTableWidget::indicator, QTableWidget::indicator,
@ -431,60 +431,118 @@ QCheckBox::indicator {
border-radius: 4px; border-radius: 4px;
} }
QCheckBox::indicator:checked, /* ------------------------------------------------------------------------ */
QTableWidget::indicator:checked { /* QListView Indicator */
image: url(icon:/primary/checkbox_checked.svg);
}
QListView::indicator:checked { QListView::indicator:checked,
QListView::indicator:checked:selected,
QListView::indicator:checked:focus {
image: url(icon:/primary/checklist.svg); image: url(icon:/primary/checklist.svg);
} }
QCheckBox::indicator:unchecked, QListView::indicator:checked:selected:active {
QTableView::indicator:unchecked { image: url(icon:/primary/checklist_invert.svg);
image: url(icon:/primary/checkbox_unchecked.svg);
}
QListView::indicator:unchecked {
image: url(icon:/primary/checklist.svg);
}
QCheckBox::indicator:indeterminate,
QTableView::indicator:indeterminate {
image: url(icon:/primary/checkbox_indeterminate.svg);
}
QListView::indicator:indeterminate {
image: url(icon:/primary/checklist_indeterminate.svg);
}
QCheckBox::indicator:checked:disabled,
QTableView::indicator:checked:disabled {
image: url(icon:/disabled/checkbox_checked.svg);
} }
QListView::indicator:checked:disabled { QListView::indicator:checked:disabled {
image: url(icon:/disabled/checklist.svg); image: url(icon:/disabled/checklist.svg);
} }
QCheckBox::indicator:unchecked:disabled, QListView::indicator:indeterminate,
QTableView::indicator:unchecked:disabled { QListView::indicator:indeterminate:selected,
image: url(icon:/disabled/checkbox_unchecked.svg); QListView::indicator:indeterminate:focus {
image: url(icon:/primary/checklist_indeterminate.svg);
} }
QListView::indicator:unchecked:disabled { QListView::indicator:indeterminate:selected:active {
image: url(icon:/disabled/checklist.svg); image: url(icon:/primary/checklist_indeterminate_invert.svg);
}
QCheckBox::indicator:indeterminate:disabled,
QTableView::indicator:indeterminate:disabled {
image: url(icon:/disabled/checkbox_indeterminate.svg);
} }
QListView::indicator:indeterminate:disabled { QListView::indicator:indeterminate:disabled {
image: url(icon:/disabled/checklist_indeterminate.svg); 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 Indicator */
QCheckBox::indicator:checked {
image: url(icon:/primary/checkbox_checked.svg);
}
QCheckBox::indicator:unchecked {
image: url(icon:/primary/checkbox_unchecked.svg);
}
QCheckBox::indicator:indeterminate {
image: url(icon:/primary/checkbox_indeterminate.svg);
}
QCheckBox::indicator:checked:disabled {
image: url(icon:/disabled/checkbox_checked.svg);
}
QCheckBox::indicator:unchecked:disabled {
image: url(icon:/disabled/checkbox_unchecked.svg);
}
QCheckBox::indicator:indeterminate:disabled {
image: url(icon:/disabled/checkbox_indeterminate.svg);
}
/* ------------------------------------------------------------------------ */
/* QRadioButton Indicator */
QRadioButton::indicator:checked { QRadioButton::indicator:checked {
image: url(icon:/primary/radiobutton_checked.svg); image: url(icon:/primary/radiobutton_checked.svg);
} }
@ -501,6 +559,9 @@ QRadioButton::indicator:unchecked:disabled {
image: url(icon:/disabled/radiobutton_unchecked.svg); image: url(icon:/disabled/radiobutton_unchecked.svg);
} }
/* ------------------------------------------------------------------------ */
/* QDockWidget */
QDockWidget { QDockWidget {
color: {{secondaryTextColor}}; color: {{secondaryTextColor}};
text-transform: uppercase; text-transform: uppercase;
@ -517,22 +578,20 @@ QDockWidget::title {
margin-top: 4px; margin-top: 4px;
} }
QCalendarWidget QMenu, /* ------------------------------------------------------------------------ */
QMenu { /* QComboBox indicator */
background-color: {{secondaryColor}};
border: 2px solid {{secondaryLightColor}};
border-radius: 2px;
margin-top: 3px;
}
QComboBox::indicator:checked { QComboBox::indicator:checked {
image: url(icon:/primary/checklist.svg); image: url(icon:/primary/checklist.svg);
} }
QComboBox::indicator:hover:checked { QComboBox::indicator:checked:selected {
image: url(icon:/disabled/checklist.svg); image: url(icon:/primary/checklist_invert.svg);
} }
/* ------------------------------------------------------------------------ */
/* Menu Items */
QComboBox::item, QComboBox::item,
QCalendarWidget QMenu::item, QCalendarWidget QMenu::item,
QMenu::item { QMenu::item {
@ -560,6 +619,17 @@ QMenu::item:disabled {
color: {{secondaryTextColor|opacity(0.3)}}; color: {{secondaryTextColor|opacity(0.3)}};
} }
/* ------------------------------------------------------------------------ */
/* QMenu */
QCalendarWidget QMenu,
QMenu {
background-color: {{secondaryColor}};
border: 2px solid {{secondaryLightColor}};
border-radius: 2px;
margin-top: 3px;
}
QMenu::separator { QMenu::separator {
height: 2px; height: 2px;
background-color: {{secondaryLightColor}}; background-color: {{secondaryLightColor}};
@ -582,7 +652,7 @@ QMenu::indicator:non-exclusive:unchecked {
} }
QMenu::indicator:non-exclusive:unchecked:selected { QMenu::indicator:non-exclusive:unchecked:selected {
image: url(icon:/primary/checkbox_unchecked.svg); image: url(icon:/primary/checkbox_unchecked_invert.svg);
} }
QMenu::indicator:non-exclusive:checked { QMenu::indicator:non-exclusive:checked {
@ -590,7 +660,7 @@ QMenu::indicator:non-exclusive:checked {
} }
QMenu::indicator:non-exclusive:checked:selected { QMenu::indicator:non-exclusive:checked:selected {
image: url(icon:/primary/checkbox_checked.svg); image: url(icon:/primary/checkbox_checked_invert.svg);
} }
QMenu::indicator:exclusive:unchecked { QMenu::indicator:exclusive:unchecked {
@ -598,7 +668,7 @@ QMenu::indicator:exclusive:unchecked {
} }
QMenu::indicator:exclusive:unchecked:selected { QMenu::indicator:exclusive:unchecked:selected {
image: url(icon:/primary/radiobutton_unchecked.svg); image: url(icon:/primary/radiobutton_unchecked_invert.svg);
} }
QMenu::indicator:exclusive:checked { QMenu::indicator:exclusive:checked {
@ -606,9 +676,12 @@ QMenu::indicator:exclusive:checked {
} }
QMenu::indicator:exclusive:checked:selected { QMenu::indicator:exclusive:checked:selected {
image: url(icon:/primary/radiobutton_checked.svg); image: url(icon:/primary/radiobutton_checked_invert.svg);
} }
/* ------------------------------------------------------------------------ */
/* QMenuBar */
QMenuBar { QMenuBar {
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};
color: {{secondaryTextColor}}; color: {{secondaryTextColor}};
@ -627,6 +700,9 @@ QMenuBar::item:pressed {
background-color: {{primaryLightColor}}; background-color: {{primaryLightColor}};
} }
/* ------------------------------------------------------------------------ */
/* QToolBox */
QToolBox::tab { QToolBox::tab {
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};
color: {{secondaryTextColor}}; color: {{secondaryTextColor}};
@ -639,6 +715,9 @@ QToolBox::tab:hover {
background-color: {{primaryColor|opacity(0.2)}}; background-color: {{primaryColor|opacity(0.2)}};
} }
/* ------------------------------------------------------------------------ */
/* QProgressBar */
QProgressBar { QProgressBar {
border-radius: 0; border-radius: 0;
background-color: {{secondaryLightColor}}; background-color: {{secondaryLightColor}};
@ -650,6 +729,9 @@ QProgressBar::chunk {
background-color: {{primaryColor}}; background-color: {{primaryColor}};
} }
/* ------------------------------------------------------------------------ */
/* QScrollBar */
QScrollBar:horizontal { QScrollBar:horizontal {
border: 0; border: 0;
background: {{secondaryColor}}; background: {{secondaryColor}};
@ -687,6 +769,9 @@ QScrollBar::sub-line:horizontal {
height: 0px; height: 0px;
} }
/* ------------------------------------------------------------------------ */
/* QSlider */
QSlider:horizontal { QSlider:horizontal {
min-height: 20px; min-height: 20px;
max-height: 20px; max-height: 20px;
@ -733,6 +818,9 @@ QSlider::sub-page {
background: {{primaryColor}}; background: {{primaryColor}};
} }
/* ------------------------------------------------------------------------ */
/* QLabel */
QLabel { QLabel {
border: none; border: none;
background: transparent; background: transparent;
@ -743,6 +831,9 @@ QLabel:disabled {
color: {{secondaryTextColor|opacity(0.2)}} color: {{secondaryTextColor|opacity(0.2)}}
} }
/* ------------------------------------------------------------------------ */
/* VLines and HLinex */
QFrame[frameShape="4"] { QFrame[frameShape="4"] {
border-width: 1px 0 0 0; border-width: 1px 0 0 0;
background: none; background: none;
@ -758,24 +849,8 @@ QFrame[frameShape="5"] {
border-color: {{secondaryLightColor}}; border-color: {{secondaryLightColor}};
} }
QMdiArea{ /* ------------------------------------------------------------------------ */
} /* QToolBar */
QMdiSubWindow{
}
QMdiSubWindow:title{
}
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);
}
QToolBar { QToolBar {
background: {{secondaryDarkColor}}; background: {{secondaryDarkColor}};
@ -810,6 +885,9 @@ QToolBar::separator:vertical {
height: 1px; height: 1px;
} }
/* ------------------------------------------------------------------------ */
/* QToolButton */
QToolButton { QToolButton {
background: {{secondaryDarkColor}}; background: {{secondaryDarkColor}};
border: 0px; border: 0px;
@ -838,8 +916,8 @@ QToolButton:checked {
border-right: 10px solid {{primaryColor}}; border-right: 10px solid {{primaryColor}};
} }
QAbstractScrollArea { /* ------------------------------------------------------------------------ */
} /* General viewers */
QTableView { QTableView {
background-color: {{secondaryDarkColor}}; background-color: {{secondaryDarkColor}};
@ -854,29 +932,53 @@ QListView {
margin: 0px; margin: 0px;
} }
QTableView:item, QTableView::item,
QTreeView::item, QTreeView::item,
QListView::item { QListView::item {
padding: 5px; padding: 5px;
min-height: 25px; min-height: 25px;
color: {{secondaryTextColor}}; color: {{secondaryTextColor}};
selection-color: {{secondaryTextColor}}; /* For Windows */
} }
QTableView::item:selected, /* ------------------------------------------------------------------------ */
QTreeView::item:disabled, /* Items Selection */
QTableView:item:selected,
QTreeView::item:selected,
QListView::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}}; color: {{primaryTextColor}};
selection-color: {{primaryTextColor}}; /* For Windows */
} }
QTableView::item:disabled, QTableView {
QTreeView::item:disabled, selection-background-color: {{primaryColor|opacity(0.2)}};
QListView::item:disabled{ }
QTableView:focus {
selection-background-color: {{primaryColor}};
}
QTableView::item:disabled {
color: {{secondaryTextColor|opacity(0.3)}}; color: {{secondaryTextColor|opacity(0.3)}};
selection-color: {{secondaryTextColor|opacity(0.3)}};
background-color: {{secondaryColor}};
selection-background-color: {{secondaryColor}};
} }
QTableCornerButton::section { /* ------------------------------------------------------------------------ */
background-color: {{secondaryDarkColor}}; /* QTreeView */
}
QTreeView::branch{ QTreeView::branch{
background-color: {{secondaryColor}}; background-color: {{secondaryColor}};
@ -905,6 +1007,14 @@ QTreeView::branch:has-children:!has-siblings:adjoins-item {
border-image: url(icon:/disabled/branch-end.svg) 0; border-image: url(icon:/disabled/branch-end.svg) 0;
} }
QTreeView QHeaderView::section {
border: none;
}
/* ------------------------------------------------------------------------ */
/* Custom buttons */
QPushButton.danger { QPushButton.danger {
border-color: {{danger}}; border-color: {{danger}};
color: {{danger}}; color: {{danger}};
@ -938,18 +1048,73 @@ QPushButton.success:pressed {
background-color: {{success}}; background-color: {{success}};
} }
QTableView > QHeaderView::section { QPushButton.danger:flat:hover {
border-right: 2px solid {{secondaryLightColor}}; background-color: {{danger|opacity(0.2)}};
} }
QTableView > QHeaderView::section:last { QPushButton.danger:flat:pressed,
border-right: 2px solid {{secondaryColor}}; 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 { QTableView {
alternate-background-color: {{secondaryColor|opacity(0.7)}}; 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 20px;
height: 35px;
border-radius: 0px;
border-right: 1px solid;
border-bottom: 1px solid;
border-color: {{secondaryDarkColor}};
}
/* ------------------------------------------------------------------------ */
/* QLCDNumber */
QLCDNumber { QLCDNumber {
color: {{primaryColor}}; color: {{primaryColor}};
background-color:{{primaryColor|opacity(0.1)}}; background-color:{{primaryColor|opacity(0.1)}};
@ -957,6 +1122,9 @@ QLCDNumber {
border-radius: 2px; border-radius: 2px;
} }
/* ------------------------------------------------------------------------ */
/* QCalendarWidget */
#qt_calendar_prevmonth { #qt_calendar_prevmonth {
qproperty-icon: url(icon:/primary/leftarrow.svg); qproperty-icon: url(icon:/primary/leftarrow.svg);
} }
@ -965,13 +1133,8 @@ QLCDNumber {
qproperty-icon: url(icon:/primary/rightarrow.svg); qproperty-icon: url(icon:/primary/rightarrow.svg);
} }
QToolTip { /* ------------------------------------------------------------------------ */
padding: 5px; /* Inline QLineEdit */
border: 1px solid {{secondaryDarkColor}};
border-radius: 2px;
color: {{secondaryTextColor}};
background-color: {{secondaryLightColor}};
}
QTreeView QLineEdit, QTreeView QLineEdit,
QTableView QLineEdit, QTableView QLineEdit,
@ -988,6 +1151,20 @@ QListView QLineEdit {
border-top-right-radius: unset; border-top-right-radius: unset;
} }
/* ------------------------------------------------------------------------ */
/* QToolTip */
QToolTip {
padding: 5px;
border: 1px solid {{secondaryDarkColor}};
border-radius: 2px;
color: {{secondaryTextColor}};
background-color: {{secondaryLightColor}};
}
/* ------------------------------------------------------------------------ */
/* QDialog */
QDialog QToolButton, QDialog QToolButton,
QDialog QToolButton:hover, QDialog QToolButton:hover,
QDialog QToolButton:pressed, QDialog QToolButton:pressed,
@ -1000,3 +1177,25 @@ QDialog QToolButton:checked {
border-right: unset; border-right: unset;
border-left: unset; border-left: unset;
} }
/* ------------------------------------------------------------------------ */
/* 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;
width: 16px;
height: 16px;
}