Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 1 | QMainWindow { |
| 2 | border: 1px solid #CC119EDA; |
| 3 | } |
| 4 | |
| 5 | QDialog { |
| 6 | border: 1px solid #CC119EDA; |
| 7 | } |
| 8 | |
| 9 | QPushButton { |
| 10 | background-color: #FFF7F7F7; |
| 11 | border: 1px solid #FFCCCCCC; |
| 12 | border-radius: 3px; |
| 13 | font: bold; |
| 14 | padding: 6px; |
| 15 | } |
| 16 | |
| 17 | QPushButton:hover:!pressed:!checked { |
| 18 | background-color:#FFE0E0E0; |
| 19 | } |
| 20 | |
| 21 | QPushButton:hover:!pressed { |
| 22 | background-color:#FF9D9D9D; |
| 23 | } |
| 24 | |
| 25 | QPushButton:pressed { |
| 26 | background-color:#FFD8D8D9; |
| 27 | } |
| 28 | |
| 29 | QPushButton:checked { |
| 30 | background-color:#FF7F7F7F; |
| 31 | border-radius: 2px; |
| 32 | border-color: #FFB9B9B9; |
| 33 | } |
| 34 | |
| 35 | QSlider::groove:horizontal { |
| 36 | height: 3px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */ |
| 37 | background: #FF9D9D9D; |
| 38 | margin: 2px 0; |
| 39 | } |
| 40 | |
| 41 | QSlider::handle:horizontal { |
| 42 | background: #FFD8D8D9; |
| 43 | width: 10px; |
| 44 | margin: -9px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */ |
| 45 | border-radius: 2.5px; |
| 46 | border: 1px solid white; |
| 47 | } |
| 48 | |
| 49 | QSlider::add-page:horizontal { |
| 50 | background: #FF9D9D9D; |
| 51 | } |
| 52 | |
| 53 | QSlider::sub-page:horizontal { |
| 54 | background: #CC119EDA; |
| 55 | } |
| 56 | |
| 57 | QLineEdit { |
| 58 | border: 1px solid #FFCCCCCC; |
| 59 | padding: 0px; |
| 60 | background: #FFFFFFFF; |
| 61 | min-height: 26px; |
| 62 | } |
| 63 | |
| 64 | QLineEdit:focus { |
| 65 | border-color: #FF000000; |
| 66 | } |
| 67 | |
| 68 | QListView { |
| 69 | border-color: #FF000000; |
| 70 | background: #FFFFFFFF; |
| 71 | } |
| 72 | |
| 73 | QListView::item { |
| 74 | min-height: 25px; |
| 75 | |
| 76 | } |
| 77 | |
| 78 | QListView::item:selected { |
| 79 | |
| 80 | } |
| 81 | |
| 82 | QListView::item:selected:active { |
| 83 | background: #CC119EDA; |
| 84 | } |
| 85 | |
| 86 | QListView::item:hover { |
| 87 | background: #66119EDA; |
| 88 | } |
| 89 | |
| 90 | QComboBox { |
| 91 | border: 1px solid gray; |
| 92 | border-radius: 3px; |
| 93 | padding: 1px 18px 1px 3px; |
| 94 | min-width: 6em; |
| 95 | } |
| 96 | |
| 97 | QComboBox:editable { |
| 98 | background: white; |
| 99 | } |
| 100 | |
| 101 | QComboBox:!editable, QComboBox::drop-down:editable { |
| 102 | background: white; |
| 103 | } |
| 104 | |
| 105 | /* QComboBox gets the "on" state when the popup is open */ |
| 106 | QComboBox:!editable:on, QComboBox::drop-down:editable:on { |
| 107 | background: white; |
| 108 | } |
| 109 | |
| 110 | QComboBox:on { /* shift the text when the popup opens */ |
| 111 | |
| 112 | } |
| 113 | |
| 114 | QComboBox::drop-down { |
| 115 | subcontrol-origin: padding; |
| 116 | subcontrol-position: top right; |
| 117 | width: 15px; |
| 118 | |
| 119 | border-left-width: 0px; |
| 120 | border-left-color: darkgray; |
| 121 | border-left-style: solid; /* just a single line */ |
| 122 | |
| 123 | } |
| 124 | |
| 125 | QComboBox::down-arrow { |
| 126 | } |
| 127 | |
| 128 | QComboBox::down-arrow:on { |
| 129 | } |
| 130 | |
| 131 | QToolButton { |
| 132 | background-color: rgba(255, 255, 255, 0); |
| 133 | } |
| 134 | |
| 135 | QToolButton::menu-indicator { |
| 136 | image: none; |
| 137 | } |
| 138 | |
| 139 | QTableWidget::indicator { |
| 140 | width: 18px; |
| 141 | height: 18px; |
| 142 | } |
| 143 | |
| 144 | QTableWidget::indicator:checked { |
| 145 | image: url(://images/checkbox-marked-outline.png); |
| 146 | } |
| 147 | |
| 148 | QTableWidget::indicator:unchecked { |
| 149 | image: url(://images/checkbox-blank-outline.png); |
| 150 | } |
| 151 | |
| 152 | QListView::indicator { |
| 153 | width: 18px; |
| 154 | height: 18px; |
| 155 | } |
| 156 | |
| 157 | QListView::indicator:checked { |
| 158 | image: url(://images/checkbox-marked-outline.png); |
| 159 | } |
| 160 | |
| 161 | QListView::indicator:unchecked { |
| 162 | image: url(://images/checkbox-blank-outline.png); |
| 163 | } |
| 164 | |
| 165 | QCheckBox::indicator { |
| 166 | width: 18px; |
| 167 | height: 18px; |
| 168 | } |
| 169 | |
| 170 | QCheckBox::indicator:checked { |
| 171 | image: url(://images/checkbox-marked-outline.png); |
| 172 | } |
| 173 | |
| 174 | QCheckBox::indicator:unchecked { |
| 175 | image: url(://images/checkbox-blank-outline.png); |
| 176 | } |