/* * @title: Rain * @author: Håvard Tautra Knutsen * @license: BSD */ QWidget { background-color: #aaa; } QAbstractScrollArea, QLineEdit { alternate-background-color: #eef; background-color: #fff; } QListView, QTreeView { border: 1px solid #666; border-radius: 2px; } QToolButton, QPushButton { border: 1px solid #666; border-radius: 10px; border-bottom-left-radius: 0px; padding: 3px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1 #aaa); } QMenu { border: 1px solid #666; } QToolButton:hover, QPushButton:hover { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eee, stop: 1 #bbb); } QToolButton:on, QPushButton:on { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bbb, stop: 1 #888); } QToolButton:hover:pressed, QPushButton:hover:pressed { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #aaa, stop: 1 #ddd); } QToolButton:hover:on, QPushButton:hover:on { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ccc, stop: 1 #999); } QDialog QPushButton { padding-left: 5px; padding-right: 5px; } QSlider::handle:horizontal { background-color: green; width: 5px; height: 5px; } QScrollBar:vertical { background: #aaa; width: 15px; margin: 0px 0px 31px 0px; } QScrollBar::handle:vertical { border-radius: 7px; border: 1px solid #666; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1 #aaa); min-height: 16px; } QScrollBar::add-line:vertical { height: 14px; subcontrol-position: bottom right; subcontrol-origin: margin; border: 0px solid black; position: absolute; bottom: 1px; } QScrollBar::sub-line:vertical { height: 14px; subcontrol-position: bottom right; subcontrol-origin: margin; border: 0px solid #666; position: absolute; bottom: 16px; } QScrollBar:up-arrow:vertical { height: 14px; border: 1px solid #666; border-top-left-radius: 6px; border-top-right-radius: 6px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #eee, stop: 1 #bbb); } QScrollBar::down-arrow:vertical { height: 14px; border: 1px solid #666; border-bottom-left-radius: 6px; border-bottom-right-radius: 6px; background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1 #aaa); } QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical { background: none; } QHeaderView::section { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1 #aaa); border: 1px solid #666; border-left: 0px; border-top: 0px; } QSpinBox::up-button { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #aaa, stop: 1 #ddd); border: 1px solid #666; border-top-right-radius: 2px; } QSpinBox::down-button { background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #ddd, stop: 1 #aaa); border: 1px solid #666; border-bottom-right-radius: 2px; }