/* ALL THE TEMPLATE WIDGETS */ /* Set all the fonts (unless manually changed below) */ QWidget{ font-family: %%FONT%%; font-size: %%FONTSIZE%%; } /* Set the panel appearance for this theme (unless manually customized) */ QWidget#LuminaPanelColor{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%PRIMARYCOLOR%%, stop: 1 %%PRIMARYDISABLECOLOR%%); border-radius: 3px; /*border: 1px solid transparent;*/ } /* Set the default canvas appearance for Lumina desktop plugins*/ LDPlugin#LuminaDesktopPlugin{ background: transparent; border-radius: 5px; border: none; } /*For special desktop plugins that should never have a transparent background*/ LDPlugin#LuminaDesktopPluginVisible{ background: %%BASECOLOR%%; border: 1px solid transparent; border-radius: 5px; } /*For the special widgets on the user button*/ UserItemWidget{ background: transparent; border-radius: 3px; } UserItemWidget:hover{ background: %%HIGHLIGHTCOLOR%%; color: %%TEXTHIGHLIGHTCOLOR%%; } /*Special taskmanager window buttons: based on window state*/ LTBWidget{ border: 1px solid transparent; border-radius: 3px; } LTBWidget::menu-indicator{ image: none; } /*disable the menu arrow*/ LTBWidget#WindowVisible{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%SECONDARYDISABLECOLOR%%, stop: 1 transparent); } LTBWidget#WindowInvisible{ /* Primary color is used for the panel appearance, so use that to make it disappear*/ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%PRIMARYCOLOR%%, stop: 1 transparent); } LTBWidget#WindowActive{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%ACCENTCOLOR%%, stop: 1 transparent); } LTBWidget#WindowAttention{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 transparent); } /* ALL THE WIDGETS WITH THE BASE COLOR */ QMainWindow, QMenu, QDialog, QMessageBox{ background: %%BASECOLOR%%; color: %%TEXTCOLOR%%; } /* ALL THE WIDGETS WITH AN ALTERNATE BASE COLOR */ QLineEdit, QTextEdit, QTextBrowser, QPlainTextEdit, QSpinBox, QDateEdit, QDateTimeEdit, QTimeEdit, QDoubleSpinBox{ background: %%ALTBASECOLOR%%; color: %%TEXTCOLOR%%; border-color: %%ACCENTDISABLECOLOR%%; } /* PAGES OF CONTAINER WIDGETS */ QStackedWidget .QWidget, QTabWidget .QWidget{ background: %%ALTBASECOLOR%%; color: %%TEXTCOLOR%%; border: none; } QToolBox::tab{ color: %%TEXTCOLOR%%; } /* MENU WIDGETS */ QMenuBar, QMenuBar::item, QToolBar, QStatusBar{ background: transparent; border-color: none; color: %%TEXTCOLOR%%; } QMenuBar::item{ padding-left: 4px; padding-right: 2px; } QMenuBar::item:selected, QMenuBar::item:pressed, QMenu::item:selected{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 %%HIGHLIGHTCOLOR%%); color: %%TEXTHIGHLIGHTCOLOR%%; border: 1px solid %%ACCENTCOLOR%%; } QMenuBar::item:disabled{ color: %%TEXTDISABLECOLOR%%; } QMenu::item{ background: transparent; border: 1px solid transparent; color: %%TEXTCOLOR%%; padding: 2px 30px 2px 20px; } /* TAB WIDGETS */ /*QTabBar{ Custom Font settings need to be here and NOT in the ::tab fields, otherwise it will break auto-scaling of the tab sizes to fit the text }*/ QTabBar::tab { background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%SECONDARYDISABLECOLOR%%, stop: 1 %%SECONDARYCOLOR%%); border: 1px solid %%ACCENTCOLOR%%; padding: 2px; color: %%TEXTCOLOR%%; } QTabBar::tab:top{ border-top-left-radius: 4px; border-top-right-radius: 4px; max-width: 100em; min-width: 0em; } QTabBar::tab:bottom{ border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; max-width: 100em; min-width: 0em; } /* left/right tab indicators appear to be reversed in Qt*/ QTabBar::tab:right{ border-top-left-radius: 4px; border-bottom-left-radius: 4px; max-height: 100em; min-height: 0em; } QTabBar::tab:left{ border-top-right-radius: 4px; border-bottom-right-radius: 4px; max-height: 100em; min-height: 0em; } QTabBar::tab:selected{ background: %%HIGHLIGHTDISABLECOLOR%%; } QTabBar::tab:hover { background: %%HIGHLIGHTCOLOR%%; border: 1px solid %%ACCENTDISABLECOLOR%%; } QTabBar::tab:!selected:top { margin-top: 4px; } QTabBar::tab:!selected:bottom{ margin-bottom: 4px; } QTabBar::tab:!selected:right{ margin-left: 4px; } QTabBar::tab:!selected:left{ margin-right: 4px; } /* FRAME WIDGETS */ QToolTip{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%BASECOLOR%%, stop: 1 %%ALTBASECOLOR%%); border-radius: 3px; border: 1px solid %%ACCENTCOLOR%%; padding: 1px; color: %%TEXTCOLOR%%; } QLabel{ background: transparent; border: none; color: %%TEXTCOLOR%%; } QAbstractButton::disabled{ color: %%TEXTDISABLECOLOR%%; } /* GROUP BOX */ QGroupBox{ background-color: transparent; border-color: %%ACCENTCOLOR%%; border-radius: 5px; margin-top: 2ex; font-weight: bold; } QGroupBox::title{ subcontrol-origin: margin; subcontrol-position: top center; padding: 0 3px; background: transparent; border: none; color: %%TEXTCOLOR%%; } /* COMBO BOX */ QComboBox{ /*border: 1px solid %%ACCENTCOLOR%%; border-radius: 3px; padding: 1px 18px 1px 3px;*/ color: %%TEXTCOLOR%%; background: %%ALTBASECOLOR%%; selection-background-color: %%HIGHLIGHTCOLOR%%; } /* VIEW WIDGETS */ QTreeView, QListView{ background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; border-radius: 3px; show-decoration-selected: 1; color: %%TEXTCOLOR%%; } /* QTreeView::item and QListView::item unneccessary: Already set though parentage and causes usage errors if set manually */ QTreeView::item:selected, QListView::item:selected{ background: %%SECONDARYDISABLECOLOR%%; border: %%ACCENTCOLOR%%; color: %%TEXTCOLOR%%; } QTreeView::item:hover, QListView::item:hover{ background: %%HIGHLIGHTDISABLECOLOR%%; } QTreeView::item:selected:hover, QListView::item:selected:hover{ background: %%HIGHLIGHTDISABLECOLOR%%; } QHeaderView{ background: %%HIGHLIGHTDISABLECOLOR%%; color: %%TEXTHIGHLIGHTCOLOR%%; border: none; border-top-left-radius: 3px; /*match the list/tree view widgets*/ border-top-right-radius: 3px; /*match the list/tree view widgets*/ } QHeaderView::section{ background: %%HIGHLIGHTDISABLECOLOR%%; /*QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%PRIMARYDISABLECOLOR%%, stop: 1 %%PRIMARYCOLOR%%);*/ color: %%TEXTHIGHLIGHTCOLOR%%; border-color: %%ACCENTCOLOR%%; padding: 1px; padding-left: 4px; } QHeaderView::section:hover{ background: %%PRIMARYCOLOR%%; border-color: %%ACCENTDISABLECOLOR%%; color: %%TEXTCOLOR%%; } /* SCROLLBARS (NOTE: Changing 1 subcontrol means you have to change all of them)*/ QScrollBar{ background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%SECONDARYCOLOR%%, stop: 1 %%SECONDARYDISABLECOLOR%%); /*border: 1px solid %%ACCENTCOLOR%%;*/ } QScrollBar:horizontal{ margin: 0px 20px 0px 20px; } QScrollBar:vertical{ margin: 20px 0px 20px 0px; } QScrollBar::sub-page, QScrollBar::add-page{ background: %%BASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; } QScrollBar::sub-page:vertical{ border-bottom: none; } QScrollBar::add-page:vertical{ border-top: none; } QScrollBar::sub-page:horizontal{ border-right: none; } QScrollBar::add-page:horizontal{ border-left: none; } QScrollBar::handle{ background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%SECONDARYCOLOR%%, stop: 1 %%SECONDARYDISABLECOLOR%%); border: 1px solid %%ACCENTCOLOR%%; } QScrollBar::handle:hover, QScrollBar::add-line:hover, QScrollBar::sub-line:hover{ background: %%HIGHLIGHTCOLOR%%; } QScrollBar::add-line{ background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%BASECOLOR%%, stop: 1 %%SECONDARYCOLOR%%); border: 1px solid %%ACCENTCOLOR%%; subcontrol-position: bottom right; subcontrol-origin: margin; } QScrollBar::add-line:vertical, QScrollBar::sub-line:vertical{ height: 20px; } QScrollBar::add-line:horizontal, QScrollBar::sub-line:horizontal{ width: 20px; } QScrollBar::sub-line{ background: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%SECONDARYCOLOR%%, stop: 1 %%BASECOLOR%%); border: 1px solid %%ACCENTCOLOR%%; subcontrol-position: top left; subcontrol-origin: margin; height: 20px; } /* SLIDERS */ QSlider::groove:horizontal { border: 1px solid %%ACCENTCOLOR%%; background: %%ALTBASECOLOR%%; height: 10px; border-radius: 3px; } QSlider::groove:vertical { border: 1px solid %%ACCENTCOLOR%%; background: %%ALTBASECOLOR%%; width: 10px; border-radius: 3px; } QSlider::sub-page:horizontal { background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTCOLOR%%, stop: 1 %%HIGHLIGHTDISABLECOLOR%%); border: 1px solid %%ACCENTCOLOR%%; height: 10px; border-radius: 3px; } QSlider::sub-page:vertical { background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTCOLOR%%, stop: 1 %%HIGHLIGHTDISABLECOLOR%%); border: 1px solid %%ACCENTCOLOR%%; width: 10px; border-radius: 3px; } QSlider::add-page:horizontal{ background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; height: 10px; border-radius: 3px; } QSlider::add-page:vertical{ background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; width: 10px; border-radius: 3px; } QSlider::handle:horizontal{ background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; width: 13px; border-radius: 4px; } QSlider::handle:vertical{ background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; height: 13px; border-radius: 4px; } QSlider::handle:horizontal:hover, QSlider::handle:vertical:hover{ border: 1px solid %%ACCENTDISABLECOLOR%%; /*background: %%HIGHLIGHTCOLOR%%;*/ } QSlider::sub-page:horizontal:disabled { background: %%ACCENTDISABLECOLOR%%; border-color: %%ACCENTCOLOR%%; } QSlider::add-page:horizontal:disabled { background: %%ACCENTDISABLECOLOR%%; border-color: %%ACCENTCOLOR%%; } QSlider::handle:horizontal:disabled { background: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; } /* BUTTONS */ QPushButton{ border: 1px solid %%ACCENTCOLOR%%; border-radius: 6px; background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%SECONDARYDISABLECOLOR%%, stop: 1 %%SECONDARYCOLOR%%); padding: 2px; padding-right: 4px; color: %%TEXTCOLOR%%; } QToolButton{ /* Assume a flat button for every toolbutton by default*/ color: %%TEXTCOLOR%%; border: 1px solid transparent; border-radius: 3px; background-color: transparent; padding: 1px; } QPushButton:pressed, QPushButton:open, QPushButton:selected, QPushButton:checked, QPushButton:on, QToolButton:pressed, QToolButton:open, QToolButton:selected, QToolButton:checked, QToolButton:on{ background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 %%HIGHLIGHTCOLOR%%); } QPushButton:flat, QToolButton:flat{ background-color: transparent; border: 1px solid transparent; /* no border for a flat button */ } QPushButton::hover, QToolButton::hover{ border: 1px solid %%ACCENTDISABLECOLOR%%; background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 %%HIGHLIGHTCOLOR%%); color: %%TEXTHIGHLIGHTCOLOR%%; } QRadioButton, QCheckBox{ padding: 2px; border: 1px solid transparent; border-radius: 3px; color: %%TEXTCOLOR%%; } QRadioButton::hover, QCheckBox:hover{ background: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 %%HIGHLIGHTCOLOR%%); border: 1px solid %%ACCENTCOLOR%%; color: %%TEXTHIGHLIGHTCOLOR%%; } QRadioButton::indicator, QCheckBox::indicator, QGroupBox::indicator{ border: 1px solid %%ACCENTCOLOR%%; } QRadioButton::indicator{ border-radius: 7px; } QRadioButton::indicator:checked{ background: qradialgradient(spread:pad, cx:0.5, cy:0.5, radius:1, fx:0.5, fy:0.5, stop:0 %%TEXTCOLOR%%, stop:0.25 %%TEXTCOLOR%%, stop:0.25001 transparent); } QCheckBox::indicator:checked, QGroupBox::indicator:checked{ padding: 3px; background-origin: content; background-clip: content; background: %%TEXTCOLOR%%; } /* PROGRESSBAR */ QProgressBar{ background-color: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; border-radius: 5px; color: %%TEXTCOLOR%%; text-align: center; padding: 1px; } QProgressBar::chunk { background-color: QLinearGradient(x1: 0, y1: 0, x2: 1, y2: 1, stop: 0 %%HIGHLIGHTCOLOR%%, stop: 1 %%HIGHLIGHTDISABLECOLOR%%); /*border: 1px solid %%ACCENTDISABLECOLOR%%;*/ border-radius: 5px; } QProgressBar::chunk:vertical{ margin-left: 2px; margin-right: 2px; } QProgressBar::chunk:horizontal{ margin-top: 2px; margin-bottom: 2px; } /* SPINBOX */ /*QAbstractSpinBox{ background-color: %%ALTBASECOLOR%%; border: 1px solid %%ACCENTCOLOR%%; border-radius: 3px; } QAbstractSpinBox:disabled{ color: %%ACCENTDISABLECOLOR%%; }*/ /*QAbstractSpinBox::down-button{ subcontrol-origin: border; subcontrol-position: left; width: 16px; border-width: 1px; } QAbstractSpinBox::up-button{ subcontrol-origin: border; subcontrol-position: right; width: 16px; border-width: 1px; }*/ /* QAbstractSpinBox::down-arrow{ border-image: url(":/trolltech/styles/commonstyle/images/left-16.png"); width: 16px; height: 16px; } QAbstractSpinBox::down-arrow:disabled, QAbstractSpinBox::up-arrow:disabled, QAbstractSpinBox::down-arrow:off, QAbstractSpinBox::up-arrow:off{ border-image: url(:/none); } QAbstractSpinBox::up-arrow{ border-image: url(":/trolltech/styles/commonstyle/images/right-16.png"); width: 16px; height: 16px; }*/ /* CALENDER WIDGET */ /* (This is a special hack since there is no official support for stylesheets for this widget) */ QCalendarWidget QWidget#qt_calendar_navigationbar{ background-color: %%ALTBASECOLOR%%; /*QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%PRIMARYDISABLECOLOR%%, stop: 1 %%PRIMARYCOLOR%%);*/ } QCalendarWidget QWidget{ background-color: %%BASECOLOR%%; alternate-background-color: %%PRIMARYDISABLECOLOR%%; color: %%TEXTCOLOR%%; } QCalendarWidget QAbstractButton{ background-color: transparent; } QCalendarWidget QAbstractButton::menu-indicator{ image: none; } QCalendarWidget QAbstractItemView{ background-color: %%SECONDARYCOLOR%%; selection-background-color: QLinearGradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 %%HIGHLIGHTDISABLECOLOR%%, stop: 1 %%HIGHLIGHTCOLOR%%);; selection-color: %%TEXTHIGHLIGHTCOLOR%%; } QCalendarWidget QWidget#qt_calendar_calendarview{ background-color: %%BASECOLOR%%; border: none; }