|
| 1 | +####################################################CSS Code for buttons used in this Project |
| 2 | + |
| 3 | + ------> LABEL: |
| 4 | +QLabel { |
| 5 | + color:rgb(255,255,255); |
| 6 | +} |
| 7 | +-------------------------------------------------------------------------------------------- |
| 8 | + -------> QGROUPBOX: |
| 9 | + |
| 10 | +QGroupBox{ |
| 11 | + border:1px solid rgb(51,51,51); |
| 12 | + border-radius:4px; |
| 13 | + color:white; |
| 14 | + background:rgb(91,90,90); |
| 15 | +} |
| 16 | +-------------------------------------------------------------------------------------------- |
| 17 | + |
| 18 | + ------> SCROLLBAR: WIDGET: VERTICAL |
| 19 | + |
| 20 | +QScrollBar:vertical { |
| 21 | + background:rgb(51,51,51); |
| 22 | + width:20px; |
| 23 | + margin: 0px 0px 0px 0px; |
| 24 | +} |
| 25 | +QScrollBar::handle:vertical { |
| 26 | + background:rgb(0,143,170); |
| 27 | +} |
| 28 | +QScrollBar::add-page:vertical { |
| 29 | + background:rgb(51,51,51); |
| 30 | +} |
| 31 | +QScrollBar::sub-page:vertical { |
| 32 | + background:rgb(51,51,51); |
| 33 | +} |
| 34 | +--------------------------------------------------------------------------------------------- |
| 35 | + ------> LINE EDIT WIDGET: Test fields: |
| 36 | + |
| 37 | + |
| 38 | +QLineEdit { |
| 39 | + color:rgb(255,255,255); |
| 40 | + border:2px solid rgb(51,51,51); |
| 41 | + border-radius:4px; |
| 42 | + background:rgb(51,51,51); |
| 43 | +} |
| 44 | + |
| 45 | +QLineEdit:disabled { |
| 46 | + color:rgb(255,255,255); |
| 47 | + border:2px solid rgb(112,112,112); |
| 48 | + border-radius:4px; |
| 49 | + background:rgb(112,112,112); |
| 50 | +} |
| 51 | +---------------------------------------------------------------------------------------------- |
| 52 | + |
| 53 | + |
| 54 | + ------> BUTTON: Maximise, Minimise, Close: |
| 55 | + |
| 56 | +QPushButton { |
| 57 | + border: none; |
| 58 | + background-color: rgba(0,0,0,0); |
| 59 | +} |
| 60 | +QPushButton:hover { |
| 61 | + background-color: rgb(0,143,150); |
| 62 | +} |
| 63 | +QPushButton:pressed { |
| 64 | + background-color: rgba(0,0,0,0); |
| 65 | +} |
| 66 | + |
| 67 | + ------> BUTTON: Menu: Home, Cloud, Android, Bug: |
| 68 | + |
| 69 | +QPushButton { |
| 70 | + border: none; |
| 71 | + background-color: rgba(0,0,0,0); |
| 72 | +} |
| 73 | +QPushButton:hover { |
| 74 | + background-color: rgb(91,90,90); |
| 75 | +} |
| 76 | +QPushButton:pressed { |
| 77 | + background-color: rgba(0,0,0,0); |
| 78 | +} |
| 79 | + |
| 80 | + ------> BUTTON: Start, Save, Close, Restore, Connect, Edit: |
| 81 | + |
| 82 | +QPushButton { |
| 83 | + border: 2px solid rgb(51,51,51); |
| 84 | + border-radius: 5px; |
| 85 | + color:rgb(255,255,255); |
| 86 | + background-color: rgb(51,51,51); |
| 87 | +} |
| 88 | +QPushButton:hover { |
| 89 | + border: 2px solid rgb(0,143,150); |
| 90 | + background-color: rgb(0,143,150); |
| 91 | +} |
| 92 | +QPushButton:pressed { |
| 93 | + border: 2px solid rgb(0,143,150); |
| 94 | + background-color: rgb(51,51,51); |
| 95 | +} |
| 96 | + |
| 97 | +QPushButton:disabled { |
| 98 | + border-radius: 5px; |
| 99 | + border: 2px solid rgb(112,112,112); |
| 100 | + background-color: rgb(112,112,112); |
| 101 | +} |
| 102 | + |
| 103 | + ----------> BUTTON: Delete, Remove, e.t.c: |
| 104 | + |
| 105 | +QPushButton { |
| 106 | + border: 2px solid rgb(51,51,51); |
| 107 | + border-radius: 5px; |
| 108 | + color:rgb(255,255,255); |
| 109 | + background-color: rgb(51,51,51); |
| 110 | +} |
| 111 | +QPushButton:hover { |
| 112 | + border: 2px solid rgb(112,0,0); |
| 113 | + background-color: rgb(112,0,0); |
| 114 | +} |
| 115 | +QPushButton:pressed { |
| 116 | + border: 2px solid rgb(112,0,0); |
| 117 | + background-color: rgb(51,51,51); |
| 118 | +} |
| 119 | + |
| 120 | +QPushButton:disabled { |
| 121 | + border-radius: 5px; |
| 122 | + border: 2px solid rgb(112,112,112); |
| 123 | + background-color: rgb(112,112,112); |
| 124 | +} |
| 125 | +----------------------------------------------------------------------------------------------------- |
| 126 | + |
| 127 | + |
| 128 | + ---------> Progress Bar |
| 129 | +QProgressBar |
| 130 | +{ |
| 131 | + color:rgb(255,255,255); |
| 132 | + background-color :rgb(51,51,51); |
| 133 | + border : 2px; |
| 134 | + border-radius:4px; |
| 135 | +} |
| 136 | + |
| 137 | +QProgressBar::chunk{ |
| 138 | + border : 2px; |
| 139 | + border-radius:4px; |
| 140 | + background-color:rgb(0,143,170); |
| 141 | +} |
| 142 | +----------------------------------------------------------------------------------------------------- |
| 143 | + |
| 144 | + --------> Combo Box Settings: |
| 145 | +QComboBox { |
| 146 | + border: 2px solid rgb(51,51,51); |
| 147 | + border-radius: 5px; |
| 148 | + color:rgb(255,255,255); |
| 149 | + background-color: rgb(51,51,51); |
| 150 | +} |
| 151 | + |
| 152 | +QComboBox:hover { |
| 153 | + border: 2px solid rgb(0,143,170); |
| 154 | + border-radius: 5px; |
| 155 | + color:rgb(255,255,255); |
| 156 | + background-color: rgb(0,143,170); |
| 157 | +} |
| 158 | + |
| 159 | +QComboBox:!editable, QComboBox::drop-down:editable { |
| 160 | + background: rgb(51,51,51); |
| 161 | +} |
| 162 | + |
| 163 | +QComboBox:!editable:on, QComboBox::drop-down:editable:on { |
| 164 | + background:rgb(51,51,51); |
| 165 | +} |
| 166 | + |
| 167 | +QComboBox:on { /* shift the text when the popup opens */ |
| 168 | + padding-top: 3px; |
| 169 | + padding-left: 4px; |
| 170 | +} |
| 171 | + |
| 172 | +QComboBox::drop-down { |
| 173 | + subcontrol-origin: padding; |
| 174 | + subcontrol-position: top right; |
| 175 | + width: 15px; |
| 176 | + |
| 177 | + border-left-width: 1px; |
| 178 | + border-left-color: darkgray; |
| 179 | + border-left-style: solid; /* just a single line */ |
| 180 | + border-top-right-radius: 5px; /* same radius as the QComboBox */ |
| 181 | + border-bottom-right-radius: 5px; |
| 182 | +} |
| 183 | + |
| 184 | +QComboBox::down-arrow { |
| 185 | + image: url(icons/1x/arrow.png); |
| 186 | +} |
| 187 | + |
| 188 | +QComboBox::down-arrow:on { /* shift the arrow when popup is open */ |
| 189 | + top: 1px; |
| 190 | + left: 1px; |
| 191 | +} |
| 192 | + |
| 193 | +QComboBox::drop-down { |
| 194 | + background:rgb(51,51,51); |
| 195 | +} |
| 196 | + |
| 197 | +-------------------------------------------------------------------------------------------------------- |
| 198 | + |
| 199 | + ----------> RADIO BUTTON: |
| 200 | + |
| 201 | +QRadioButton { |
| 202 | + background:rgb(91,90,90); |
| 203 | + color:white; |
| 204 | +} |
| 205 | +QRadioButton::indicator { |
| 206 | + width:10px; |
| 207 | + height:10px; |
| 208 | + border-radius: 7px; |
| 209 | +} |
| 210 | +QRadioButton::indicator:checked { |
| 211 | + background-color:rgb(0,143,170); |
| 212 | + border: 2px solid rgb(51,51,51); |
| 213 | +} |
| 214 | + |
| 215 | +QRadioButton::indicator:unchecked { |
| 216 | + background-color:rgb(91,90,90); |
| 217 | + border:2px solid rgb(51,51,51); |
| 218 | +} |
| 219 | +---------------------------------------------------------------------------------------------------------- |
| 220 | + |
| 221 | + ---------> CHECK BOX: |
| 222 | +QCheckBox { |
| 223 | + color:rgb(255,255,255); |
| 224 | +} |
| 225 | + |
| 226 | +QCheckBox::indicator { |
| 227 | + width: 10px; |
| 228 | + height: 10px; |
| 229 | +} |
| 230 | + |
| 231 | +QCheckBox::indicator:unchecked { |
| 232 | + border:2px solid rgb(51,51,51); |
| 233 | + background:rgb(91,90,90); |
| 234 | +} |
| 235 | + |
| 236 | +QCheckBox::indicator:unchecked:pressed { |
| 237 | + border:2px solid rgb(51,51,51); |
| 238 | + background:rgb(0,143,170); |
| 239 | +} |
| 240 | + |
| 241 | +QCheckBox::indicator:checked { |
| 242 | + background-color:rgb(0,143,170); |
| 243 | + border: 2px solid rgb(51,51,51); |
| 244 | +} |
| 245 | + |
| 246 | +QCheckBox::indicator:checked:pressed { |
| 247 | + border:2px solid rgb(51,51,51); |
| 248 | + background:rgb(91,90,90); |
| 249 | +} |
| 250 | +---------------------------------------------------------------------------------------------------- |
| 251 | + |
| 252 | + -------->SLIDER: HORIZONDAL |
| 253 | +QSlider::groove:horizontal { |
| 254 | + height:5px; |
| 255 | + background: rgb(51,51,51); |
| 256 | +} |
| 257 | + |
| 258 | +QSlider::handle:horizontal { |
| 259 | + background:rgb(0,143,170); |
| 260 | + width: 10px; |
| 261 | + margin:-8px 0 |
| 262 | +} |
| 263 | + |
| 264 | +QSlider::add-page:horizondal { |
| 265 | + background:rgb(51,51,51); |
| 266 | +} |
| 267 | + |
| 268 | +QSlider::sub-page:horizondal { |
| 269 | + background:rgb(51,51,51); |
| 270 | +} |
| 271 | +---------------------------------------------------------------------------------------------------- |
| 272 | + |
| 273 | + -------->SLIDER: VERTICAL |
| 274 | +QSlider::groove:vertical { |
| 275 | + background: red; |
| 276 | + width:5px |
| 277 | +} |
| 278 | + |
| 279 | +QSlider::handle:vertical { |
| 280 | + height: 10px; |
| 281 | + background:rgb(0,143,170); |
| 282 | + margin:0 -8px |
| 283 | +} |
| 284 | + |
| 285 | +QSlider::add-page:vertical { |
| 286 | + background:rgb(51,51,51); |
| 287 | +} |
| 288 | + |
| 289 | +QSlider::sub-page:vertical { |
| 290 | + background:rgb(51,51,51); |
| 291 | +} |
| 292 | + |
| 293 | +------------------------------------------------------------------------------------------------------ |
| 294 | + |
| 295 | + |
0 commit comments