@@ -46,7 +46,7 @@ QMenuBar::item:pressed
46
46
}
47
47
48
48
QAbstractSpinBox {
49
- padding: 3px 0px 3px 3px ;
49
+ padding: 0.1em 0em 0.1em 0.1em ;
50
50
border: 1px solid #222;
51
51
border-radius:0px;
52
52
background-color: @darkgradient;
@@ -56,14 +56,20 @@ QAbstractSpinBox {
56
56
QAbstractSpinBox::up-button {
57
57
subcontrol-origin: border;
58
58
subcontrol-position: top right;
59
- width: 16px;
59
+ padding-top:-0.2em;
60
+ padding-right:0.05em;
61
+ width: 0.8em;
62
+ height: 1.2em;
60
63
image: url(@theme_path/icons/arrow-up.svg);
61
64
}
62
65
63
66
QAbstractSpinBox::down-button {
64
67
subcontrol-origin: border;
65
68
subcontrol-position: bottom right;
66
- width: 16px;
69
+ padding-top:0.2em;
70
+ padding-right:0.05em;
71
+ width: 0.8em;
72
+ height: 1.2em;
67
73
image: url(@theme_path/icons/arrow-down.svg);
68
74
}
69
75
@@ -76,21 +82,21 @@ QMenu
76
82
{
77
83
background: #444;
78
84
border: 1px solid #222;
79
- padding: 4px ;
80
- padding-right: 0px ;
85
+ padding: 0.2em ;
86
+ padding-right: 0em ;
81
87
}
82
88
83
89
QMenu::item
84
90
{
85
91
background: transparent;
86
- padding: 5px 20px 5px 20px ;
92
+ padding: 0.2em 1.3em 0.2em 1.3em ;
87
93
}
88
94
89
95
QMenu::item:disabled
90
96
{
91
97
color: #555;
92
98
background: transparent;
93
- padding: 2px 20px 2px 20px ;
99
+ padding: 0.2em 1.3em 0.2em 1.3em ;
94
100
}
95
101
96
102
@@ -108,15 +114,15 @@ QWidget:disabled
108
114
109
115
QLineEdit
110
116
{
111
- padding: 3px ;
117
+ padding: 0.1em ;
112
118
border: 1px solid #111;
113
119
background-color: #888;
114
120
color: #111;
115
121
}
116
122
117
123
QTextEdit, QPlainTextEdit
118
124
{
119
- padding: 3px ;
125
+ padding: 0.1em ;
120
126
border-width: 1px;
121
127
border-color: @itemdarkbackground;
122
128
border-style: solid;
@@ -127,7 +133,7 @@ QTextEdit, QPlainTextEdit
127
133
128
134
QPushButton
129
135
{
130
- padding: 3px ;
136
+ padding: 0.1em ;
131
137
border-width: 1px;
132
138
border-color: @itembackground;
133
139
border-style: solid;
@@ -138,7 +144,7 @@ QPushButton
138
144
139
145
QToolButton
140
146
{
141
- padding: 2px ;
147
+ padding: 0.1em ;
142
148
border-width: 1px;
143
149
border-color: @itembackground;
144
150
border-style: solid;
@@ -148,10 +154,10 @@ QToolButton
148
154
}
149
155
QToolButton[popupMode="1"]
150
156
{
151
- padding-right: 18px ;
157
+ padding-right: 0.9em ;
152
158
}
153
159
QToolButton::menu-button {
154
- width: 14px ;
160
+ width: 0.8em ;
155
161
border-width: 1px;
156
162
border-color: none;
157
163
border-radius: 0px;
@@ -172,6 +178,8 @@ QToolButton:checked
172
178
QToolButton::menu-arrow
173
179
{
174
180
image: url(@theme_path/icons/arrow-down.svg);
181
+ width: 0.8em;
182
+ height: 1.2em;
175
183
}
176
184
QToolBar QToolButton, QToolButton::menu-button
177
185
{
@@ -190,7 +198,7 @@ QComboBox {
190
198
border-style: solid;
191
199
border: 1px solid #1e1e1e;
192
200
border-radius: 0px;
193
- padding: 3px ;
201
+ padding: 0.1em ;
194
202
}
195
203
196
204
@@ -199,8 +207,8 @@ QComboBox:hover,QPushButton:hover,QToolButton:hover,QAbstractSpinBox:hover {
199
207
}
200
208
201
209
QComboBox:on {
202
- padding-top: 1px ;
203
- padding-left: 3px ;
210
+ padding: 0.1em ;
211
+ padding-left: 0.2em ;
204
212
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
205
213
stop: 0 #555,
206
214
stop: 0.1 #4C4C4C,
@@ -222,7 +230,7 @@ QComboBox:editable QLineEdit {
222
230
QComboBox QAbstractItemView, QComboBox QListView {
223
231
border: none;
224
232
border-radius: 0px;
225
- padding: 3px ;
233
+ padding: 0.1em ;
226
234
background: @itemdarkbackground;
227
235
color: @text;
228
236
selection-background-color: @selection;
@@ -231,13 +239,15 @@ QComboBox QAbstractItemView, QComboBox QListView {
231
239
QComboBox::drop-down {
232
240
subcontrol-origin: padding;
233
241
subcontrol-position: top right;
234
- width: 15px ;
242
+ width: 0.8em ;
235
243
border: 0px;
236
244
}
237
245
238
246
QComboBox::down-arrow
239
247
{
240
248
image: url(@theme_path/icons/arrow-down.svg);
249
+ width: 0.8em;
250
+ height: 1.2em;
241
251
}
242
252
243
253
@@ -258,7 +268,7 @@ QTextEdit:focus
258
268
259
269
QScrollBar:horizontal {
260
270
background-color: #333;
261
- height: 8px ;
271
+ height: 0.5em ;
262
272
margin: 0px;
263
273
padding: 0px;
264
274
}
@@ -276,7 +286,7 @@ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
276
286
277
287
QScrollBar:vertical {
278
288
background-color: #333;
279
- width: 8px ;
289
+ width: 0.5em ;
280
290
margin: 0;
281
291
}
282
292
@@ -294,14 +304,14 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
294
304
295
305
QSizeGrip
296
306
{
297
- width: 1px ;
307
+ width: 0.1em ;
298
308
}
299
309
300
310
QHeaderView::section
301
311
{
302
312
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #616161, stop: 0.5 #505050, stop: 0.6 #434343, stop:1 #656565);*/
303
313
color: @text;
304
- padding-left: 4px ;
314
+ padding-left: 0.5em ;
305
315
border: 1px solid #6c6c6c;
306
316
}
307
317
QDockWidget
@@ -317,9 +327,9 @@ QDockWidget::separator
317
327
QDockWidget::title
318
328
{
319
329
text-align: center;
320
- spacing: 3px ; /* spacing between items in the tool bar */
330
+ spacing: 0.1em ; /* spacing between items in the tool bar */
321
331
background-color: @background;
322
- font-weight: bold;
332
+ font-weight: bold;
323
333
}
324
334
325
335
QDockWidget::close-button, QDockWidget::float-button
@@ -342,19 +352,19 @@ QMainWindow::separator
342
352
{
343
353
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #161616, stop: 0.5 #151515, stop: 0.6 #212121, stop:1 #343434);*/
344
354
color: white;
345
- padding-left: 4px ;
355
+ padding-left: 0.2em ;
346
356
border: 0px solid #4c4c4c;
347
- spacing: 3px ; /* spacing between items in the tool bar */
357
+ spacing: 0.1m ; /* spacing between items in the tool bar */
348
358
}
349
359
350
360
QMainWindow::separator:hover
351
361
{
352
362
353
363
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d7801a, stop:0.5 #b56c17 stop:1 #ffa02f);*/
354
364
color: white;
355
- padding-left: 4px ;
365
+ padding-left: 0.2em ;
356
366
border: 1px solid #6c6c6c;
357
- spacing: 3px ; /* spacing between items in the tool bar */
367
+ spacing: 0.1em ; /* spacing between items in the tool bar */
358
368
}
359
369
360
370
QToolBar {
@@ -365,21 +375,29 @@ QToolBar {
365
375
QToolBar::handle:horizontal
366
376
{
367
377
image: url(@theme_path/icons/handle-horizontal.svg);
378
+ width: 0.2em;
379
+ height: 0.5em;
368
380
}
369
381
370
382
QToolBar::handle:vertical
371
383
{
372
384
image: url(@theme_path/icons/handle-vertical.svg);
385
+ width: 0.5em;
386
+ height: 0.2em;
373
387
}
374
388
375
389
QToolBar::separator:horizontal
376
390
{
377
391
image: url(@theme_path/icons/separator-horizontal.svg);
392
+ width: 0.2em;
393
+ height: 0.5em;
378
394
}
379
395
380
396
QToolBar::separator:vertical
381
397
{
382
398
image: url(@theme_path/icons/separator-vertical.svg);
399
+ width: 0.5em;
400
+ height: 0.2em;
383
401
}
384
402
385
403
QMenu::separator
@@ -410,11 +428,11 @@ QTabBar::tab {
410
428
border: 1px solid @itemdarkbackground;
411
429
border-bottom: none;
412
430
background-color: @background;
413
- padding-left: 10px ;
414
- padding-right: 10px ;
415
- padding-top: 3px ;
416
- padding-bottom: 2px ;
417
- margin-right: -1px ;
431
+ padding-left: 0.8em ;
432
+ padding-right: 0.8em ;
433
+ padding-top: 0.1em ;
434
+ padding-bottom: 0.1em ;
435
+ margin-right: -0.05em ;
418
436
}
419
437
420
438
QTabBar::tab:last
@@ -434,7 +452,7 @@ QTabBar::tab:bottom {
434
452
435
453
QTabBar::tab:!selected
436
454
{
437
- margin-top: 5px ;
455
+ margin-top: 0.3em ;
438
456
}
439
457
440
458
QTabBar::tab:selected
@@ -467,11 +485,15 @@ QGroupBox::title {
467
485
QGroupBox::indicator:unchecked {
468
486
border: 1px solid @background;
469
487
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
488
+ width:0.8em;
489
+ height:0.8em;
470
490
}
471
491
472
492
QGroupBox::indicator:checked {
473
493
border: 1px solid @background;
474
494
image: url(@theme_path/icons/qcheckbox-checked.svg);
495
+ width:0.8em;
496
+ height:0.8em;
475
497
}
476
498
477
499
/* ==================================================================================== */
@@ -481,11 +503,15 @@ QGroupBox::indicator:checked {
481
503
QRadioButton::indicator:unchecked {
482
504
border: 1px solid @background;
483
505
image: url(@theme_path/icons/qradiobox-unchecked.svg);
506
+ width:0.8em;
507
+ height:0.8em;
484
508
}
485
509
486
510
QRadioButton::indicator:checked {
487
511
border: 1px solid @background;
488
512
image: url(@theme_path/icons/qradiobox-checked.svg);
513
+ width:0.8em;
514
+ height:0.8em;
489
515
}
490
516
491
517
/* ==================================================================================== */
@@ -495,11 +521,15 @@ QRadioButton::indicator:checked {
495
521
QCheckBox::indicator:unchecked {
496
522
border: 1px solid @background;
497
523
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
524
+ width:0.8em;
525
+ height:0.8em;
498
526
}
499
527
500
528
QCheckBox::indicator:checked {
501
529
border: 1px solid @background;
502
530
image: url(@theme_path/icons/qcheckbox-checked.svg);
531
+ width:0.8em;
532
+ height:0.8em;
503
533
}
504
534
505
535
/* ==================================================================================== */
@@ -509,22 +539,22 @@ QCheckBox::indicator:checked {
509
539
QSlider::groove:horizontal,
510
540
QSlider::groove:vertical {
511
541
border: 1px solid @itemdarkbackground;
512
- height: 8px ; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
542
+ height: 0.4em ; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
513
543
background-color: @itembackground;
514
544
margin: 2px 0;
515
545
}
516
546
517
547
QSlider::handle:horizontal {
518
548
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
519
549
border: 1px solid itemdarkbackground;
520
- width: 18px ;
550
+ width: 1em ;
521
551
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
522
552
border-radius: 0px;
523
553
}
524
554
QSlider::handle:vertical {
525
555
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
526
556
border: 1px solid itemdarkbackground;
527
- height: 18px ;
557
+ height: 1em ;
528
558
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
529
559
border-radius: 0px;
530
560
}
@@ -594,7 +624,7 @@ QTreeView#viewRules::item
594
624
{
595
625
border-top: 0.5px solid rgba(108,108,108,50);
596
626
border-bottom: 0.5px solid rgba(108,108,108,50);
597
- padding: 1px 0px 1px 0px ;
627
+ padding: 0.1em 0em 0.1em 0em ;
598
628
}
599
629
600
630
QgsLayerTreeView::indicator:unchecked,
@@ -626,7 +656,7 @@ QHeaderView::section {
626
656
background-color: @background;
627
657
color: @text;
628
658
border-right: 1px solid @itemdarkbackground;
629
- padding: 0 0 2px 3px
659
+ padding: 0 0 0.1em 0.2em;
630
660
}
631
661
632
662
/* ==================================================================================== */
@@ -653,5 +683,5 @@ QListWidget#mOptionsListWidget {
653
683
}
654
684
655
685
QListWidget#mOptionsListWidget::item {
656
- padding: 3px ;
686
+ padding: 0.1em ;
657
687
}
0 commit comments