style-indoor.css 11.1 KB
Newer Older
pixhawk's avatar
pixhawk committed
1
QWidget {
Lorenz Meier's avatar
Lorenz Meier committed
2
    background-color: #222224;
3 4 5
    color: #FFFFFF;
    background-clip: border;
    font-size: 11px;
pixhawk's avatar
pixhawk committed
6 7 8
}

QGroupBox {
9 10
    border: 1px solid #66666B;
    border-radius: 3px;
11
    padding: 10px 0 0 0;
12
    margin-top: 1ex; /* leave space at the top for the title */
pixhawk's avatar
pixhawk committed
13 14 15
}

QCheckBox {
16
    color: #DDDDDF;
pixhawk's avatar
pixhawk committed
17 18 19 20 21
}

QCheckBox::indicator {
    border: 1px solid #777777;
    border-radius: 2px;
22 23 24
    color: #FFFFFF;
    width: 10px;
    height: 10px;
pixhawk's avatar
pixhawk committed
25 26 27
}

QLineEdit {
28
    border: 1px solid #777777;
pixhawk's avatar
pixhawk committed
29 30 31 32
    border-radius: 2px;
}

QTextEdit {
33
    border: 1px solid #777777;
pixhawk's avatar
pixhawk committed
34 35 36 37
    border-radius: 2px;
}

QPlainTextEdit {
38
    border: 1px solid #777777;
pixhawk's avatar
pixhawk committed
39
    border-radius: 2px;
40 41
    font-family: "Monospace";
    font: large;
pixhawk's avatar
pixhawk committed
42 43 44
}

QComboBox {
45
    border: 1px solid #777777;
pixhawk's avatar
pixhawk committed
46
    border-radius: 2px;
47
}
pixhawk's avatar
pixhawk committed
48 49

 QCheckBox::indicator:checked {
50
     background-color: #379AC3;
pixhawk's avatar
pixhawk committed
51 52 53
 }

 QCheckBox::indicator:checked:hover {
54
     background-color: #379AC3;
pixhawk's avatar
pixhawk committed
55 56 57
 }

 QCheckBox::indicator:checked:pressed {
58
     background-color: #379AC3;
pixhawk's avatar
pixhawk committed
59 60 61
 }

 QCheckBox::indicator:indeterminate:hover {
62
     image: url(:/files/images/checkbox_indeterminate_hover.png);
pixhawk's avatar
pixhawk committed
63 64 65
 }

 QCheckBox::indicator:indeterminate:pressed {
66
     image: url(:/files/images/checkbox_indeterminate_pressed.png);
pixhawk's avatar
pixhawk committed
67 68 69 70 71
 }

 QGroupBox::title {
     subcontrol-origin: margin;
     subcontrol-position: top center; /* position at the top center */
72 73
     margin: 0 3px 0 3px;
     padding: 0 3px 0 0;
pixhawk's avatar
pixhawk committed
74 75 76 77
     font: bold 8px;
     color: #DDDDDF;
 }
 
78
 QMainWindow::separator {
Lorenz Meier's avatar
Lorenz Meier committed
79 80 81
    background-color: #323235;
    width: 2px; /* when vertical */
    height: 2px; /* when horizontal */
82 83 84 85 86
 }

 QMainWindow::separator:hover {
     background: white;
 }
87 88
 
 QGCToolWidgetItem {
89 90 91 92
    border: 1px solid #66666B;
    border-radius: 3px;
    padding: 10px 0 0 0;
    margin-top: 1ex; /* leave space at the top for the title */
93
 }
94

Lorenz Meier's avatar
Lorenz Meier committed
95 96 97
QDockWidget::close-button, QDockWidget::float-button {
    border: 1px solid transparent;
    background: none;
98
    padding: 0;
Lorenz Meier's avatar
Lorenz Meier committed
99
}
100

Lorenz Meier's avatar
Lorenz Meier committed
101 102 103
QDockWidget::close-button:hover, QDockWidget::float-button:hover {
    background: none;
}
104

Lorenz Meier's avatar
Lorenz Meier committed
105
QDockWidget::close-button:pressed, QDockWidget::float-button:pressed {
106
     padding: 1px -1px -1px 1px;
Lorenz Meier's avatar
Lorenz Meier committed
107 108
     background: none;
}
pixhawk's avatar
pixhawk committed
109

Lorenz Meier's avatar
Lorenz Meier committed
110 111 112
 QDockWidget {
    border: 10px solid #66666B;
     border-radius: 1px;
pixhawk's avatar
pixhawk committed
113 114 115 116
}

QDockWidget::title {
    text-align: left;
Lorenz Meier's avatar
Lorenz Meier committed
117 118 119 120
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #3F556A, stop: 1 #293645);
    color: #EDEDED;
    padding-left: 10px;
    height: 14px;
121
    border-bottom: 2px solid #2C3A4A;
pixhawk's avatar
pixhawk committed
122 123 124 125 126 127 128 129
}

QSeparator {
    color: #EEEEEE;
    }


QSpinBox {
130 131
    min-height: 14px;
    max-height: 18px;
pixhawk's avatar
pixhawk committed
132
    border: 1px solid #4A4A4F;
133
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
134 135 136 137 138
}

QSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right; /* position at the top right corner */
139
    border-image: url(:/files/images/actions/go-up.svg) 1;
pixhawk's avatar
pixhawk committed
140 141 142 143 144
    border-width: 1px;
}
QSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right; /* position at the top right corner */
145
    border-image: url(:/files/images/actions/go-down.svg) 1;
pixhawk's avatar
pixhawk committed
146 147 148 149
    border-width: 1px;
}

QDoubleSpinBox {
150 151
    min-height: 14px;
    max-height: 18px;
pixhawk's avatar
pixhawk committed
152
    border: 1px solid #4A4A4F;
153
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
154 155 156 157 158
}

QDoubleSpinBox::up-button {
    subcontrol-origin: border;
    subcontrol-position: top right; /* position at the top right corner */
159
    border-image: url(:/files/images/actions/go-up.svg) 1;
pixhawk's avatar
pixhawk committed
160 161 162
    border-width: 1px;
    max-width: 5px;
}
163

pixhawk's avatar
pixhawk committed
164 165 166
QDoubleSpinBox::down-button {
    subcontrol-origin: border;
    subcontrol-position: bottom right; /* position at the top right corner */
167
    border-image: url(:/files/images/actions/go-down.svg) 1;
pixhawk's avatar
pixhawk committed
168 169 170 171 172
    border-width: 1px;
    max-width: 5px;
}

QPushButton {
Lorenz Meier's avatar
Lorenz Meier committed
173 174
    min-height: 20px;
    max-height: 20px;
175
    border: 1px solid #465158;
Lorenz Meier's avatar
Lorenz Meier committed
176
    margin: 1px;
177 178 179 180
    border-radius: 2px;
    padding-left: 8px;
    padding-right: 8px;
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #59666f, stop: 1 #414B52);
pixhawk's avatar
pixhawk committed
181 182
}

183 184 185 186
QPushButton:disabled {
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #232228, stop: 1 #020208);
}

pixhawk's avatar
pixhawk committed
187
QPushButton:checked {
188
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #09A2B2, stop: 1 #414B52);
pixhawk's avatar
pixhawk committed
189 190 191
}

QPushButton:pressed {
192
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bbbbbb, stop: 1 #b0b0b0);
pixhawk's avatar
pixhawk committed
193 194 195
}

QToolButton {
196 197 198 199
    font-weight: bold;
    min-height: 20px;
    max-height: 20px;
    border: 1px solid #4A4A4F;
Lorenz Meier's avatar
Lorenz Meier committed
200
    margin: 1px;
201
    border-radius: 2px;
Lorenz Meier's avatar
Lorenz Meier committed
202
    padding-left: 3px;
Lorenz Meier's avatar
Lorenz Meier committed
203
    padding-right: 3px;
204
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #59666f, stop: 1 #414B52);
pixhawk's avatar
pixhawk committed
205 206
}

207 208 209 210
QToolButton:disabled {
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #232228, stop: 1 #020208);
}

pixhawk's avatar
pixhawk committed
211
QToolButton:checked {
212
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #09A2B2, stop: 1 #414B52);
pixhawk's avatar
pixhawk committed
213 214 215
}

QToolButton:pressed {
216
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #bbbbbb, stop: 1 #b0b0b0);
pixhawk's avatar
pixhawk committed
217 218 219
}

QToolTip {
Lorenz Meier's avatar
Lorenz Meier committed
220
    background-color: #3D5368;
221
    border:0 solid #379AC3;
Lorenz Meier's avatar
Lorenz Meier committed
222
    margin: 3px;
223
    border-radius: 3px;
224 225 226 227 228
    color: #DDDDDF;
}

QMenu {
    border: 1px solid #379AC3;
pixhawk's avatar
pixhawk committed
229 230
}

231 232 233
QMenu::separator {
     height: 1px;
     background: #379AC3;
234
     margin: 8px 5px 4px 5px;
235 236
 }

237
QMenuBar::item:disabled {
238 239
    border: none;
    background: none;
240
}
241

242 243 244
QMenuBar::item:disabled:selected {
    border: none;
    background: none;
245
}
246

247
QMenuBar::item:disabled:pressed {
248 249
    background: none;
    border: none;
250 251
}

Lorenz Meier's avatar
Lorenz Meier committed
252 253 254 255
QSlider {
    background-color: transparent;
}

256 257 258 259 260 261 262
QSlider::groove:horizontal {
     border: 1px solid #999999;
     height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
     background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4A4A4F, stop:1 #4A4A4F);
     margin: 2px 0;
 }

Lorenz Meier's avatar
Lorenz Meier committed
263
 QSlider::groove:disabled:horizontal {
264
     border: 1px solid #454545;
Lorenz Meier's avatar
Lorenz Meier committed
265
     height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
266
     background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #4A4A4F, stop:1 #4A4A4F);
Lorenz Meier's avatar
Lorenz Meier committed
267 268 269
     margin: 2px 0;
 }

270 271 272 273 274 275 276
 QSlider::handle:horizontal {
     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #232228, stop: 1 #020208);
     border: 2px solid #379AC3;
     width: 18px;
     margin: -5px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
     border-radius: 3px;
 }
Lorenz Meier's avatar
Lorenz Meier committed
277 278 279 280 281 282 283 284

 QSlider::handle:disabled:horizontal {
     background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #535258, stop: 1 #050508);
     border: 2px solid #444444;
     width: 18px;
     margin: -5px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
     border-radius: 3px;
 }
285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
 
 QSlider::groove:vertical {
     border: 1px solid #999999;
     width: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
     background: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 #4A4A4F, stop:1 #4A4A4F);
     margin: 2px 0;
 }

 QSlider::handle:vertical {
     background-color: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #232228, stop: 1 #020208);
     border: 2px solid #379AC3;
     height: 18px;
     margin: 0 -5px; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
     border-radius: 3px;
 }
300

301
QStatusBar {
302
    border: 0;
303 304 305
    border-bottom: 1px solid #101010;
    border-top: 1px solid #4F4F4F;
    background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #4B4B4B, stop:0.3 #404040, stop:0.34 #383838, stop:1 #181818);
306
} 
307

pixhawk's avatar
pixhawk committed
308
QPushButton#forceLandButton {
309 310 311 312
    font-weight: bold;
    min-height: 30px;
    color: #000000;
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
pixhawk's avatar
pixhawk committed
313
                             stop:0 #ffee01, stop:1 #ae8f00) url("ICONDIR/control/emergency-button.png");
314 315 316 317
    background-clip: border;
    border-width: 1px;
    border-color: #555555;
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
318 319 320
}

QPushButton:pressed#forceLandButton {
321 322 323 324
    font-weight: bold;
    min-height: 30px;
    color: #000000;
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
pixhawk's avatar
pixhawk committed
325
                             stop:0 #bbaa00, stop:1 #a05b00) url("ICONDIR/control/emergency-button.png");
326 327 328 329
    background-clip: border;
    border-width: 1px;
    border-color: #555555;
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
330 331 332
}

QPushButton#killButton {
333 334 335 336
    font-weight: bold;
    min-height: 30px;
    color: #000000;
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
pixhawk's avatar
pixhawk committed
337
                             stop:0 #ffb917, stop:1 #b37300) url("ICONDIR/control/emergency-button.png");
338 339 340 341
    background-clip: border;
    border-width: 1px;
    border-color: #555555;
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
342 343 344
}

QPushButton:pressed#killButton {
345 346 347 348
    font-weight: bold;
    min-height: 30px;
    color: #000000;
    background: qlineargradient(x1:0, y1:0, x2:0, y2:1,
pixhawk's avatar
pixhawk committed
349
                             stop:0 #bb8500, stop:1 #903000) url("ICONDIR/control/emergency-button.png");
350 351 352 353
    background-clip: border;
    border-width: 1px;
    border-color: #555555;
    border-radius: 5px;
pixhawk's avatar
pixhawk committed
354 355 356 357
}

QPushButton#controlButton {
    min-height: 25px;
358
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #A0AE00, stop: 1 #909E00);
pixhawk's avatar
pixhawk committed
359 360 361
}

QPushButton:checked#controlButton {
362
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #b76f11, stop: 1 #e1a718);
pixhawk's avatar
pixhawk committed
363 364 365
}

QProgressBar {
366 367 368 369 370 371
    border: 1px solid #4A4A4F;
    border-radius: 4px;
    text-align: center;
    padding: 2px;
    color: #DDDDDF;
    background-color: #111118;
LM's avatar
LM committed
372
    height: 10px;
pixhawk's avatar
pixhawk committed
373 374 375 376 377 378 379 380 381 382 383
}

QProgressBar:horizontal {
    height: 9px;
}

QProgressBar:vertical {
    width: 9px;
}

QProgressBar::chunk {
384
    background-color: #3C7B9E;
pixhawk's avatar
pixhawk committed
385 386 387
}

QProgressBar::chunk#batteryBar {
388
    background-color: green;
pixhawk's avatar
pixhawk committed
389 390 391
}

QProgressBar::chunk#speedBar {
392
    background-color: yellow;
pixhawk's avatar
pixhawk committed
393 394 395
}

QProgressBar::chunk#thrustBar {
396
    background-color: orange;
pixhawk's avatar
pixhawk committed
397
}
398 399 400 401 402 403

QDialog {
  border: 1px solid #62676B;
  border-radius: 2px;
}

404 405 406 407 408 409
QTabWidget::pane { /* The tab widget frame */
    border: 1px solid #62676B;
    border-radius: 2px;
    position: absolute;
    top: -0.5em;
}
410

411 412 413
QTabWidget::tab-bar {
    alignment: center;
}
414 415 416 417

 /* Style the tab using the tab sub-control. Note that
     it reads QTabBar _not_ QTabWidget */
 QTabBar::tab {
Lorenz Meier's avatar
Lorenz Meier committed
418
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #090909, stop: 1 #353535);
419
    border: 2px solid #62676B;
Lorenz Meier's avatar
Lorenz Meier committed
420 421 422
    border-radius: 4px;
    min-width: 8ex;
    padding: 2px;
423 424 425
 }

 QTabBar::tab:selected, QTabBar::tab:hover {
426
    background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #090909, stop: 1 #353535);
427 428 429 430 431 432
    border: 2px solid #379AC3;
 }

 QTabBar::tab:selected {
     border: 2px solid #379AC3;
 }
LM's avatar
LM committed
433

434 435 436 437 438 439 440
QToolBar {
    margin: 0px;
    border-bottom: 1px solid #484848;
    border-top: 1px solid #969696;
    background-color: qlineargradient(spread:pad, x1:0, y1:0, x2:0, y2:1, stop:0 #8B8B8B, stop:0.3 #808080, stop:0.34 #747474, stop:1 #484848);
}

LM's avatar
LM committed
441 442 443 444
QLabel {
    background-color: transparent;
}

445 446 447 448
QLabel:disabled {
    color: #353535;
}

LM's avatar
LM committed
449
QLabel#toolBarNameLabel {
450 451
    font: bold 16px;
    color: #3C7B9E;
LM's avatar
LM committed
452 453 454
}

QLabel#toolBarModeLabel {
455
    font: 12px;
LM's avatar
LM committed
456 457 458
}

QLabel#toolBarStateLabel {
459 460
    font: 12px;
    color: #3C7B9E;
LM's avatar
LM committed
461 462 463
}

QLabel#toolBarMessageLabel {
464
    font: 12px;
LM's avatar
LM committed
465
    font-style: italic;
466
    color: #3C7B9E;
LM's avatar
LM committed
467 468
}