native-theme 0.6.1

Cross-platform native theme detection and loading for Rust GUI applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
# KDE Breeze live preset - geometry/metrics only (no colors, fonts, or icons)
# Used by the OS-first pipeline as merge base; OS reader provides colors/fonts.
name = "KDE Breeze"

# === Light variant ===

[light.defaults]
# platform-facts.md:1115 (§2.1.6): 1.0, Breeze dims a disabled control by its colours alone
disabled_opacity = 1.0
line_height = 1.36
focus_ring_width_px = 1.0
focus_ring_offset_px = 2.0


[light.defaults.border]
corner_radius_px = 5.0
corner_radius_lg_px = 8.0
line_width_px = 1.0
opacity = 0.2
shadow_enabled = true
[light.defaults.icon_sizes]
toolbar_px = 22.0
small_px = 16.0
large_px = 48.0
dialog_px = 32.0
panel_px = 48.0

[light.text_scale.caption]
# platform-facts.md:1435 (§2.19): smallestReadableFont, default 8pt, 400 (:573)
size_pt =8.0
weight = 400

[light.text_scale.section_heading]
# platform-facts.md:1436 (§2.19): Kirigami Heading level 2, the 10pt body
# (:571) × 1.20, Font.Normal (kirigami 8319acc, controls/Heading.qml:20-21,35)
size_pt =12.0
weight = 400

[light.text_scale.dialog_title]
# platform-facts.md:1437 (§2.19): Kirigami Heading level 1, the 10pt body
# (:571) × 1.35, Font.Normal (kirigami 8319acc, controls/Heading.qml:17-18,35)
size_pt =13.5
weight = 400

# No display: platform-facts.md:1438 (§2.19) gives KDE none; it resolves
# from the body font.

[light.button]
min_width_px = 80.0
min_height_px = 32.0
icon_text_gap_px = 4.0


[light.button.border]
# platform-facts.md:1171-1172 (§2.3): Button_MarginWidth = 6, both axes
padding_horizontal_px = 6.0
padding_vertical_px = 6.0
[light.input]
min_height_px = 32.0


[light.input.border]
# platform-facts.md:1196-1197 (§2.4): inside the frame line, LineEdit_FrameWidth 6 + QLineEdit's
# margins 2 / 1 − the 1px line (measured 2026-09-28: 8 / 7 from the outer edge)
padding_horizontal_px = 7.0
padding_vertical_px = 6.0
[light.text_area.border]
# platform-facts.md:1639-1640 (§2.29): inside the frame line, Frame_FrameWidth 2 + QTextDocument's
# documentMargin 4 − the 1px line (measured 2026-09-28: 6 from the outer edge)
padding_horizontal_px = 5.0
padding_vertical_px = 5.0
[light.checkbox]
indicator_width_px = 20.0
# platform-facts.md:1220 (§2.5): Breeze's dot, radius (18 - 12) / 2 = 3
radio_dot_diameter_px = 6.0
# platform-facts.md:1221 (§2.5): Breeze's check pen, PenWidth::Frame * 2 = 2.002
check_mark_stroke_width_px = 2.0
label_gap_px = 4.0

[light.tooltip]
max_width_px = 300.0


[light.tooltip.border]
# platform-facts.md:1257-1258 (§2.7): ToolTip_FrameWidth = 3
padding_horizontal_px = 3.0
padding_vertical_px = 3.0
[light.scrollbar]
groove_width_px = 21.0
min_thumb_length_px = 20.0
thumb_width_px = 8.0
overlay_mode = false

[light.slider]
track_height_px = 6.0
thumb_diameter_px = 20.0
tick_mark_length_px = 8.0

[light.progress_bar]
track_height_px = 6.0
min_width_px = 6.0

[light.tab]
min_width_px = 80.0
min_height_px = 30.0
# platform-facts.md:1326 (§2.11): QTabBar lays the tabs edge to edge (qtabbar.cpp:459-468)
item_gap_px = 0.0
# platform-facts.md:1328-1329 (§2.11): a TabBar_ActiveEffectSize 3 strip along a North tab's top edge (breezemetrics.h:137, breezehelper.cpp:1471-1487)
active_indicator_width_px = 3.0
active_indicator_side = "top"


[light.tab.border]
# platform-facts.md:1321 (§2.11): PenWidth::Frame = 1.001, rounded as defaults.border.line_width_px is
line_width_px = 1.0
# platform-facts.md:1322 (§2.11): Frame_FrameRadius 5 − 0.5 × int(PenWidth::Frame), top corners
corner_radius_px = 4.5
# platform-facts.md:1323 (§2.11): no shadow
shadow_enabled = false
# platform-facts.md:1318-1319 (§2.11): TabBar_TabMarginWidth = 8; TabBar_TabMarginHeight = 4
padding_horizontal_px = 8.0
padding_vertical_px = 4.0
[light.menu]
# row_height not stated: platform-facts.md:1234 (§2.6), (none), sizes to font
icon_text_gap_px = 8.0


[light.menu.border]
# platform-facts.md:1235-1236 (§2.6): MenuItem_MarginWidth = 4; MenuItem_MarginHeight = 4
padding_horizontal_px = 4.0
padding_vertical_px = 4.0
[light.list]
# row_height not stated: platform-facts.md:1389 (§2.15), (none), sizes to content


[light.list.border]
# platform-facts.md:1390-1391 (§2.15): 2; 1
padding_horizontal_px = 2.0
padding_vertical_px = 1.0
[light.toolbar]
# bar_height not stated: platform-facts.md:1351 (§2.13), (none), sizes to content
# platform-facts.md:1352 (§2.13): ToolBar_ItemSpacing = 0
item_gap_px = 0.0


[light.toolbar.border]
# platform-facts.md:1353-1354 (§2.13): ToolBar_ItemMargin = 6 on all four sides
padding_horizontal_px = 6.0
padding_vertical_px = 6.0
# platform-facts.md:1354 (§2.13): ToolBar_FrameWidth = 0, no frame round the toolbar
line_width_px = 0.0


[light.status_bar.border]
# platform-facts.md:1372-1373 (§2.14): QStatusBar, 2 left, 3 top / 2 bottom; 14 right, the size grip's 1 + 13px (qstatusbar.cpp:466-467, qsizegrip.cpp:198-202), which Breeze paints as nothing (breezestyle.cpp:1505-1506), in a window that is not maximized
padding_right_px = 14.0
padding_left_px = 2.0
padding_top_px = 3.0
padding_bottom_px = 2.0

[light.splitter]
divider_width_px = 1.0

[light.switch]
track_width_px = 36.0
track_height_px = 18.0
thumb_diameter_px = 18.0
track_radius_px = 9.0

[light.dialog]
# button_order: provided by platform reader via resolve_platform_defaults
min_width_px = 320.0
max_width_px = 560.0
min_height_px = 140.0
max_height_px = 600.0
button_gap_px = 6.0
icon_size_px =32.0


[light.dialog.border]
# platform-facts.md:1491-1492 (§2.22): Layout_TopLevelMarginWidth = 10
padding_horizontal_px = 10.0
padding_vertical_px = 10.0

[light.link]
underline_enabled = true

[light.spinner]
diameter_px = 36.0
min_diameter_px = 16.0
stroke_width_px = 2.0

[light.combo_box]
min_height_px = 32.0
min_width_px = 120.0
# platform-facts.md:1553 (§2.24): renderArrow draws min(w, h, ArrowSize = 10) in the 20px arrow column
arrow_icon_size_px = 10.0
arrow_area_width_px = 20.0


[light.combo_box.border]
# platform-facts.md:1552, :1557 (§2.24): ComboBox_FrameWidth = 6 left, top and bottom; 0 right, where the edit field meets the 20px arrow column
padding_left_px = 6.0
padding_right_px = 0.0
padding_vertical_px = 6.0
[light.segmented_control]
segment_height_px = 30.0
separator_width_px = 1.0


[light.card]

[light.expander]
header_height_px = 40.0
arrow_icon_size_px =10.0
# platform-facts.md:1613-1616 (§2.27): KCollapsibleGroupBox, the arrow in the indicator
# before the title, 9 from it, the content 20 in (PM_IndicatorWidth), no frame
arrow_side = "leading"
arrow_gap_px = 9.0
content_indent_px = 20.0
frame_enabled = false

# === Dark variant ===

[dark.defaults]
# platform-facts.md:1115 (§2.1.6): 1.0, Breeze dims a disabled control by its colours alone
disabled_opacity = 1.0
line_height = 1.36
focus_ring_width_px = 1.0
focus_ring_offset_px = 2.0


[dark.defaults.border]
corner_radius_px = 5.0
corner_radius_lg_px = 8.0
line_width_px = 1.0
opacity = 0.2
shadow_enabled = true
[dark.defaults.icon_sizes]
toolbar_px = 22.0
small_px = 16.0
large_px = 48.0
dialog_px = 32.0
panel_px = 48.0

[dark.text_scale.caption]
# platform-facts.md:1435 (§2.19): smallestReadableFont, default 8pt, 400 (:573)
size_pt =8.0
weight = 400

[dark.text_scale.section_heading]
# platform-facts.md:1436 (§2.19): Kirigami Heading level 2, the 10pt body
# (:571) × 1.20, Font.Normal (kirigami 8319acc, controls/Heading.qml:20-21,35)
size_pt =12.0
weight = 400

[dark.text_scale.dialog_title]
# platform-facts.md:1437 (§2.19): Kirigami Heading level 1, the 10pt body
# (:571) × 1.35, Font.Normal (kirigami 8319acc, controls/Heading.qml:17-18,35)
size_pt =13.5
weight = 400

# No display: platform-facts.md:1438 (§2.19) gives KDE none; it resolves
# from the body font.

[dark.button]
min_width_px = 80.0
min_height_px = 32.0
icon_text_gap_px = 4.0


[dark.button.border]
# platform-facts.md:1171-1172 (§2.3): Button_MarginWidth = 6, both axes
padding_horizontal_px = 6.0
padding_vertical_px = 6.0
[dark.input]
min_height_px = 32.0


[dark.input.border]
# platform-facts.md:1196-1197 (§2.4): inside the frame line, LineEdit_FrameWidth 6 + QLineEdit's
# margins 2 / 1 − the 1px line (measured 2026-09-28: 8 / 7 from the outer edge)
padding_horizontal_px = 7.0
padding_vertical_px = 6.0
[dark.text_area.border]
# platform-facts.md:1639-1640 (§2.29): inside the frame line, Frame_FrameWidth 2 + QTextDocument's
# documentMargin 4 − the 1px line (measured 2026-09-28: 6 from the outer edge)
padding_horizontal_px = 5.0
padding_vertical_px = 5.0
[dark.checkbox]
indicator_width_px = 20.0
# platform-facts.md:1220 (§2.5): Breeze's dot, radius (18 - 12) / 2 = 3
radio_dot_diameter_px = 6.0
# platform-facts.md:1221 (§2.5): Breeze's check pen, PenWidth::Frame * 2 = 2.002
check_mark_stroke_width_px = 2.0
label_gap_px = 4.0

[dark.tooltip]
max_width_px = 300.0


[dark.tooltip.border]
# platform-facts.md:1257-1258 (§2.7): ToolTip_FrameWidth = 3
padding_horizontal_px = 3.0
padding_vertical_px = 3.0
[dark.scrollbar]
groove_width_px = 21.0
min_thumb_length_px = 20.0
thumb_width_px = 8.0
overlay_mode = false

[dark.slider]
track_height_px = 6.0
thumb_diameter_px = 20.0
tick_mark_length_px = 8.0

[dark.progress_bar]
track_height_px = 6.0
min_width_px = 6.0

[dark.tab]
min_width_px = 80.0
min_height_px = 30.0
# platform-facts.md:1326 (§2.11): QTabBar lays the tabs edge to edge (qtabbar.cpp:459-468)
item_gap_px = 0.0
# platform-facts.md:1328-1329 (§2.11): a TabBar_ActiveEffectSize 3 strip along a North tab's top edge (breezemetrics.h:137, breezehelper.cpp:1471-1487)
active_indicator_width_px = 3.0
active_indicator_side = "top"


[dark.tab.border]
# platform-facts.md:1321 (§2.11): PenWidth::Frame = 1.001, rounded as defaults.border.line_width_px is
line_width_px = 1.0
# platform-facts.md:1322 (§2.11): Frame_FrameRadius 5 − 0.5 × int(PenWidth::Frame), top corners
corner_radius_px = 4.5
# platform-facts.md:1323 (§2.11): no shadow
shadow_enabled = false
# platform-facts.md:1318-1319 (§2.11): TabBar_TabMarginWidth = 8; TabBar_TabMarginHeight = 4
padding_horizontal_px = 8.0
padding_vertical_px = 4.0
[dark.menu]
# row_height not stated: platform-facts.md:1234 (§2.6), (none), sizes to font
icon_text_gap_px = 8.0


[dark.menu.border]
# platform-facts.md:1235-1236 (§2.6): MenuItem_MarginWidth = 4; MenuItem_MarginHeight = 4
padding_horizontal_px = 4.0
padding_vertical_px = 4.0
[dark.list]
# row_height not stated: platform-facts.md:1389 (§2.15), (none), sizes to content


[dark.list.border]
# platform-facts.md:1390-1391 (§2.15): 2; 1
padding_horizontal_px = 2.0
padding_vertical_px = 1.0
[dark.toolbar]
# bar_height not stated: platform-facts.md:1351 (§2.13), (none), sizes to content
# platform-facts.md:1352 (§2.13): ToolBar_ItemSpacing = 0
item_gap_px = 0.0


[dark.toolbar.border]
# platform-facts.md:1353-1354 (§2.13): ToolBar_ItemMargin = 6 on all four sides
padding_horizontal_px = 6.0
padding_vertical_px = 6.0
# platform-facts.md:1354 (§2.13): ToolBar_FrameWidth = 0, no frame round the toolbar
line_width_px = 0.0


[dark.status_bar.border]
# platform-facts.md:1372-1373 (§2.14): QStatusBar, 2 left, 3 top / 2 bottom; 14 right, the size grip's 1 + 13px (qstatusbar.cpp:466-467, qsizegrip.cpp:198-202), which Breeze paints as nothing (breezestyle.cpp:1505-1506), in a window that is not maximized
padding_right_px = 14.0
padding_left_px = 2.0
padding_top_px = 3.0
padding_bottom_px = 2.0

[dark.splitter]
divider_width_px = 1.0

[dark.switch]
track_width_px = 36.0
track_height_px = 18.0
thumb_diameter_px = 18.0
track_radius_px = 9.0

[dark.dialog]
# button_order: provided by platform reader via resolve_platform_defaults
min_width_px = 320.0
max_width_px = 560.0
min_height_px = 140.0
max_height_px = 600.0
button_gap_px = 6.0
icon_size_px =32.0


[dark.dialog.border]
# platform-facts.md:1491-1492 (§2.22): Layout_TopLevelMarginWidth = 10
padding_horizontal_px = 10.0
padding_vertical_px = 10.0

[dark.link]
underline_enabled = true

[dark.spinner]
diameter_px = 36.0
min_diameter_px = 16.0
stroke_width_px = 2.0

[dark.combo_box]
min_height_px = 32.0
min_width_px = 120.0
# platform-facts.md:1553 (§2.24): renderArrow draws min(w, h, ArrowSize = 10) in the 20px arrow column
arrow_icon_size_px = 10.0
arrow_area_width_px = 20.0


[dark.combo_box.border]
# platform-facts.md:1552, :1557 (§2.24): ComboBox_FrameWidth = 6 left, top and bottom; 0 right, where the edit field meets the 20px arrow column
padding_left_px = 6.0
padding_right_px = 0.0
padding_vertical_px = 6.0
[dark.segmented_control]
segment_height_px = 30.0
separator_width_px = 1.0


[dark.card]

[dark.expander]
header_height_px = 40.0
arrow_icon_size_px =10.0
# platform-facts.md:1613-1616 (§2.27): KCollapsibleGroupBox, the arrow in the indicator
# before the title, 9 from it, the content 20 in (PM_IndicatorWidth), no frame
arrow_side = "leading"
arrow_gap_px = 9.0
content_indent_px = 20.0
frame_enabled = false