@@ -46,24 +46,30 @@ 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
- border-radius:4px ;
51
+ border-radius: 0.2em ;
52
52
background-color: @darkgradient;
53
53
color:@itembackground;
54
54
}
55
55
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,53 +114,53 @@ QWidget:disabled
108
114
109
115
QLineEdit, QTextEdit, QPlainTextEdit
110
116
{
111
- padding: 3px ;
117
+ padding: 0.1em ;
112
118
border-width: 1px;
113
119
border-color: @itemdarkbackground;
114
120
border-style: solid;
115
- border-radius: 4px ;
121
+ border-radius: 0.2em ;
116
122
background-color:@itembackground;
117
123
color:@text;
118
124
}
119
125
120
126
QPushButton
121
127
{
122
- padding: 3px ;
128
+ padding: 0.1em ;
123
129
border-width: 1px;
124
130
border-color: @itemdarkbackground;
125
131
border-style: solid;
126
- border-radius: 4px ;
132
+ border-radius: 0.2em ;
127
133
background-color:@itembackground;
128
134
color:@text;
129
135
}
130
136
131
137
QToolButton
132
138
{
133
- padding: 2px ;
139
+ padding: 0.1em ;
134
140
border-width: 1px;
135
141
border-color: @itemdarkbackground;
136
142
border-style: solid;
137
- border-radius: 4px ;
143
+ border-radius: 0.2em ;
138
144
background-color:@itembackground;
139
145
color:@text;
140
146
}
141
147
QToolButton[popupMode="1"]
142
148
{
143
- padding-right: 18px ;
149
+ padding-right: 0.9em ;
144
150
}
145
151
QToolButton::menu-button {
146
- width: 14px ;
152
+ width: 0.8em ;
147
153
border-width: 1px;
148
154
border-color: none;
149
- border-radius: 4px ;
155
+ border-radius: 0.2em ;
150
156
background:@itemdarkbackground;
151
157
}
152
158
QToolButton::hover, QToolButton::menu-button::hover
153
159
{
154
160
border-width: 1px;
155
161
border-color: #1e1e1e;
156
162
border-style: solid;
157
- border-radius: 4px ;
163
+ border-radius: 0.2em ;
158
164
background-color: none;
159
165
}
160
166
QToolButton:checked
@@ -164,6 +170,8 @@ QToolButton:checked
164
170
QToolButton::menu-arrow
165
171
{
166
172
image: url(@theme_path/icons/arrow-down.svg);
173
+ width: 0.8em;
174
+ height: 1.2em;
167
175
}
168
176
QToolBar QToolButton, QToolButton::menu-button
169
177
{
@@ -180,9 +188,9 @@ QComboBox {
180
188
background-color: @darkgradient;
181
189
color:@itembackground;
182
190
border-style: solid;
183
- border: 1px solid #1e1e1e;
184
- border-radius:4px ;
185
- padding: 3px ;
191
+ border: 1px solid #1e1e1e;
192
+ border-radius: 0.2em ;
193
+ padding: 0.1em ;
186
194
}
187
195
188
196
@@ -191,8 +199,8 @@ QComboBox:hover,QPushButton:hover,QToolButton:hover,QAbstractSpinBox:hover {
191
199
}
192
200
193
201
QComboBox:on {
194
- padding-top: 1px ;
195
- padding-left: 3px ;
202
+ padding: 0.1em ;
203
+ padding-left: 0.2em ;
196
204
background-color: QLinearGradient( x1: 0, y1: 0, x2: 0, y2: 1,
197
205
stop: 0 #555,
198
206
stop: 0.1 #4C4C4C,
@@ -213,7 +221,7 @@ QComboBox:editable QLineEdit {
213
221
QComboBox QAbstractItemView, QComboBox QListView {
214
222
border: none;
215
223
border-radius: 0;
216
- padding: 3px ;
224
+ padding: 0.1em ;
217
225
background: @itemdarkbackground;
218
226
color: @itembackground;
219
227
selection-background-color: @selection;
@@ -222,13 +230,15 @@ QComboBox QAbstractItemView, QComboBox QListView {
222
230
QComboBox::drop-down {
223
231
subcontrol-origin: padding;
224
232
subcontrol-position: top right;
225
- width: 15px ;
233
+ width: 0.8em ;
226
234
border: 0px;
227
235
}
228
236
229
237
QComboBox::down-arrow
230
238
{
231
239
image: url(@theme_path/icons/arrow-down.svg);
240
+ width: 0.8em;
241
+ height: 1.2em;
232
242
}
233
243
234
244
@@ -249,7 +259,7 @@ QTextEdit:focus
249
259
250
260
QScrollBar:horizontal {
251
261
background-color: #333;
252
- height: 8px ;
262
+ height: 0.5em ;
253
263
margin: 0px;
254
264
padding: 0px;
255
265
}
@@ -267,7 +277,7 @@ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
267
277
268
278
QScrollBar:vertical {
269
279
background-color: #333;
270
- width: 8px ;
280
+ width: 0.5em ;
271
281
margin: 0;
272
282
}
273
283
@@ -285,14 +295,14 @@ QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
285
295
286
296
QSizeGrip
287
297
{
288
- width: 1px ;
298
+ width: 0.1em ;
289
299
}
290
300
291
301
QHeaderView::section
292
302
{
293
303
/*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);*/
294
304
color: @text;
295
- padding-left: 4px ;
305
+ padding-left: 0.5em ;
296
306
border: 1px solid #6c6c6c;
297
307
}
298
308
QDockWidget
@@ -308,9 +318,9 @@ QDockWidget::separator
308
318
QDockWidget::title
309
319
{
310
320
text-align: center;
311
- spacing: 3px ; /* spacing between items in the tool bar */
321
+ spacing: 0.1em ; /* spacing between items in the tool bar */
312
322
background-color: @background;
313
- font-weight: bold;
323
+ font-weight: bold;
314
324
}
315
325
316
326
QDockWidget::close-button, QDockWidget::float-button
@@ -333,19 +343,19 @@ QMainWindow::separator
333
343
{
334
344
/*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);*/
335
345
color: white;
336
- padding-left: 4px ;
346
+ padding-left: 0.2em ;
337
347
border: 0px solid #4c4c4c;
338
- spacing: 3px ; /* spacing between items in the tool bar */
348
+ spacing: 0.1em ; /* spacing between items in the tool bar */
339
349
}
340
350
341
351
QMainWindow::separator:hover
342
352
{
343
353
344
354
/*background-color: QLinearGradient(x1:0, y1:0, x2:0, y2:1, stop:0 #d7801a, stop:0.5 #b56c17 stop:1 #ffa02f);*/
345
355
color: white;
346
- padding-left: 4px ;
356
+ padding-left: 0.2em ;
347
357
border: 1px solid #6c6c6c;
348
- spacing: 3px ; /* spacing between items in the tool bar */
358
+ spacing: 0.1em ; /* spacing between items in the tool bar */
349
359
}
350
360
351
361
QToolBar {
@@ -356,21 +366,29 @@ QToolBar {
356
366
QToolBar::handle:horizontal
357
367
{
358
368
image: url(@theme_path/icons/handle-horizontal.svg);
369
+ width: 0.2em;
370
+ height: 0.5em;
359
371
}
360
372
361
373
QToolBar::handle:vertical
362
374
{
363
375
image: url(@theme_path/icons/handle-vertical.svg);
376
+ width: 0.5em;
377
+ height: 0.2em;
364
378
}
365
379
366
380
QToolBar::separator:horizontal
367
381
{
368
382
image: url(@theme_path/icons/separator-horizontal.svg);
383
+ width: 0.2em;
384
+ height: 0.5em;
369
385
}
370
386
371
387
QToolBar::separator:vertical
372
388
{
373
389
image: url(@theme_path/icons/separator-vertical.svg);
390
+ width: 0.5em;
391
+ height: 0.2em;
374
392
}
375
393
376
394
QMenu::separator
@@ -401,11 +419,11 @@ QTabBar::tab {
401
419
border: 1px solid @itemdarkbackground;
402
420
border-bottom: none;
403
421
background-color: @background;
404
- padding-left: 10px ;
405
- padding-right: 10px ;
406
- padding-top: 3px ;
407
- padding-bottom: 2px ;
408
- margin-right: -1px ;
422
+ padding-left: 0.8em ;
423
+ padding-right: 0.8em ;
424
+ padding-top: 0.1em ;
425
+ padding-bottom: 0.1em ;
426
+ margin-right: -0.05em ;
409
427
}
410
428
411
429
QTabBar::tab:last
@@ -415,7 +433,7 @@ QTabBar::tab:last
415
433
416
434
QTabBar::tab:first:!selected
417
435
{
418
- margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
436
+ margin-left: 0px; /* the last selected tab has nothing to overlap with on the right */
419
437
}
420
438
421
439
QTabBar::tab:bottom {
@@ -425,7 +443,7 @@ QTabBar::tab:bottom {
425
443
426
444
QTabBar::tab:!selected
427
445
{
428
- margin-top: 5px ;
446
+ margin-top: 0.3em ;
429
447
}
430
448
431
449
QTabBar::tab:selected
@@ -458,11 +476,15 @@ QGroupBox::title {
458
476
QGroupBox::indicator:unchecked {
459
477
border: 1px solid @background;
460
478
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
479
+ width:0.8em;
480
+ height:0.8em;
461
481
}
462
482
463
483
QGroupBox::indicator:checked {
464
484
border: 1px solid @background;
465
485
image: url(@theme_path/icons/qcheckbox-checked.svg);
486
+ width:0.8em;
487
+ height:0.8em;
466
488
}
467
489
468
490
/* ==================================================================================== */
@@ -472,11 +494,15 @@ QGroupBox::indicator:checked {
472
494
QRadioButton::indicator:unchecked {
473
495
border: 1px solid @background;
474
496
image: url(@theme_path/icons/qradiobox-unchecked.svg);
497
+ width:0.8em;
498
+ height:0.8em;
475
499
}
476
500
477
501
QRadioButton::indicator:checked {
478
502
border: 1px solid @background;
479
503
image: url(@theme_path/icons/qradiobox-checked.svg);
504
+ width:0.8em;
505
+ height:0.8em;
480
506
}
481
507
482
508
/* ==================================================================================== */
@@ -486,11 +512,15 @@ QRadioButton::indicator:checked {
486
512
QCheckBox::indicator:unchecked {
487
513
border: 1px solid @background;
488
514
image: url(@theme_path/icons/qcheckbox-unchecked.svg);
515
+ width:0.8em;
516
+ height:0.8em;
489
517
}
490
518
491
519
QCheckBox::indicator:checked {
492
520
border: 1px solid @background;
493
521
image: url(@theme_path/icons/qcheckbox-checked.svg);
522
+ width:0.8em;
523
+ height:0.8em;
494
524
}
495
525
496
526
/* ==================================================================================== */
@@ -500,24 +530,24 @@ QCheckBox::indicator:checked {
500
530
QSlider::groove:horizontal,
501
531
QSlider::groove:vertical {
502
532
border: 1px solid @itemdarkbackground;
503
- height: 8px ; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
533
+ height: 0.4em ; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */
504
534
background-color: @itembackground;
505
535
margin: 2px 0;
506
536
}
507
537
508
538
QSlider::handle:horizontal {
509
539
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
510
540
border: 1px solid itemdarkbackground;
511
- width: 18px ;
541
+ width: 1em ;
512
542
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
513
- border-radius: 3px ;
543
+ border-radius: 0.15em ;
514
544
}
515
545
QSlider::handle:vertical {
516
546
background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 #b4b4b4, stop:1 #8f8f8f);
517
547
border: 1px solid itemdarkbackground;
518
- height: 18px ;
548
+ height: 1em ;
519
549
margin: -2px 0; /* handle is placed by default on the contents rect of the groove. Expand outside the groove */
520
- border-radius: 3px ;
550
+ border-radius: 0.15em ;
521
551
}
522
552
523
553
/* ==================================================================================== */
@@ -530,7 +560,7 @@ QAbstractItemView, QListView
530
560
alternate-background-color: @itemalternativebackground;
531
561
color: @text;
532
562
border: none;
533
- border-radius: 3px ;
563
+ border-radius: 0.15em ;
534
564
padding: 1px;
535
565
selection-color: @text;
536
566
selection-background-color: @selection;
@@ -583,7 +613,7 @@ QTreeView#viewGraduated::item,
583
613
QTreeView#viewCategories::item,
584
614
QTreeView#viewRules::item
585
615
{
586
- padding: 1px 0px 1px 0px ;
616
+ padding: 0.1em 0em 0.1em 0em ;
587
617
}
588
618
589
619
QgsLayerTreeView::indicator:unchecked,
@@ -615,7 +645,7 @@ QHeaderView::section {
615
645
background-color: @background;
616
646
color: @text;
617
647
border-right: 1px solid @itemdarkbackground;
618
- padding: 0 0 2px 3px
648
+ padding: 0 0 0.1em 0.2em;
619
649
}
620
650
621
651
/* ==================================================================================== */
@@ -642,5 +672,5 @@ QListWidget#mOptionsListWidget {
642
672
}
643
673
644
674
QListWidget#mOptionsListWidget::item {
645
- padding: 3px ;
675
+ padding: 0.1em ;
646
676
}
0 commit comments