Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtquickcontrols-imagine.qdoc
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4
/*!
5
\page qtquickcontrols-imagine.html
6
\title Imagine Style
7
8
The Imagine Style is based on configurable image assets. \l{detailed-desc-imagine}{More...}
9
10
\styleimport {QtQuick.Controls.Imagine} {Qt 5.10}
11
12
\section1 Attached Properties
13
14
\list
15
\li \l {imagine-path-attached-prop}{\b path} : string
16
\endlist
17
18
\section1 Detailed Description
19
\target detailed-desc-imagine
20
21
The Imagine style is based on image assets. The style comes with a default
22
set of images, but the images can be easily changed by providing a directory
23
with images using a predefined naming convention.
24
25
\image qtquickcontrols-imagine.png
26
{Gallery of controls in Imagine style}
27
\caption The Imagine style with the default images
28
29
To run an application with the Imagine style, see
30
\l {Using Styles in Qt Quick Controls}.
31
32
\section2 File Names
33
34
The image files are named using the following convention:
35
36
\c <control>-<element>-<states>
37
38
The \c <control> and \c <element> sections are mandatory, but the
39
\c <states> section is optional. For example, if a single file named
40
\c "button-background.9.png" is provided for \l {Button}, it will be used
41
for every state that \c Button supports. It is up to the developer to
42
decide the set of states that they will provide images for. However, it
43
is recommended to provide images for the most common control states where
44
possible, such as \c disabled, \c pressed, etc. This will ensure that
45
interactive controls visually behave as the end user would expect them to.
46
47
\section2 Element Reference
48
49
The following table lists which elements are supported for each control,
50
along with the possible states for that element, and the file extension
51
that it expects. An element is an image that represents a certain visual
52
part of the control. For example, \c {Button}'s \c "background" element
53
represents its \l {Control::}{background}.
54
55
\table
56
\header
57
\li Control
58
\li Element
59
\li States
60
\li Extension
61
\row
62
\li \l ApplicationWindow
63
\li background
64
\li active
65
\li .9.png (or .png)
66
\row
67
\li \l BusyIndicator
68
\li animation
69
\li disabled, running, mirrored, hovered
70
\li .webp
71
\row
72
\li
73
\li background
74
\li same as above
75
\li .webp
76
\row
77
\li \l Button
78
\li background
79
\li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
80
\li .9.png
81
\row
82
\li \l CheckBox
83
\li background
84
\li disabled, pressed, checked, partially-checked, focused, mirrored, hovered
85
\li .9.png (or .png)
86
\row
87
\li
88
\li indicator
89
\li same as above
90
\li .png
91
\row
92
\li \l CheckDelegate
93
\li background
94
\li disabled, pressed, checked, partially-checked, focused, highlighted, mirrored, hovered
95
\li .9.png (or .png)
96
\row
97
\li
98
\li indicator
99
\li same as above
100
\li .png
101
\row
102
\li \l ComboBox
103
\li background
104
\li disabled, pressed, editable, open, focused, mirrored, hovered, flat
105
\li .9.png (or .png)
106
\row
107
\li
108
\li indicator
109
\li same as above
110
\li .png
111
\row
112
\li
113
\li popup
114
\li same as above
115
\li .9.png (or .png)
116
\row
117
\li \l DelayButton
118
\li background
119
\li disabled, pressed, checked, checkable, focused, mirrored, hovered
120
\li .9.png (or .png)
121
\row
122
\li
123
\li progress
124
\li same as above
125
\li .9.png (or .png)
126
\row
127
\li
128
\li mask
129
\li same as above
130
\li .9.png (or .png)
131
\row
132
\li \l Dial
133
\li background\sup{1}
134
\li disabled, pressed, focused, mirrored, hovered
135
\li .9.png (or .png)
136
\row
137
\li
138
\li handle
139
\li same as above
140
\li .9.png (or .png)
141
\row
142
\li \l Dialog
143
\li background
144
\li modal, dim
145
\li .9.png (or .png)
146
\row
147
\li
148
\li title
149
\li same as above
150
\li .9.png (or .png)
151
\row
152
\li
153
\li overlay
154
\li modal
155
\li .9.png (or .png)
156
\row
157
\li \l DialogButtonBox
158
\li background
159
\li disabled, mirrored
160
\li .9.png (or .png)
161
\row
162
\li \l Drawer
163
\li background
164
\li modal, dim, top, left, right, bottom
165
\li .9.png (or .png)
166
\row
167
\li
168
\li overlay
169
\li modal
170
\li .9.png (or .png)
171
\row
172
\li \l Frame
173
\li background
174
\li disabled, mirrored
175
\li .9.png (or .png)
176
\row
177
\li \l GroupBox
178
\li background
179
\li disabled, mirrored
180
\li .9.png (or .png)
181
\row
182
\li
183
\li title
184
\li same as above
185
\li .9.png (or .png)
186
\row
187
\li \l ItemDelegate
188
\li background
189
\li disabled, pressed, focused, highlighted, mirrored, hovered
190
\li .9.png (or .png)
191
\row
192
\li \l Label
193
\li background
194
\li disabled, mirrored, hovered
195
\li .9.png (or .png)
196
\row
197
\li \l Menu
198
\li background
199
\li modal, dim
200
\li .9.png (or .png)
201
\row
202
\li
203
\li overlay
204
\li modal
205
\li .9.png (or .png)
206
\row
207
\li \l MenuItem
208
\li arrow
209
\li disabled, pressed, checked, focused, highlighted, mirrored, hovered
210
\li .png
211
\row
212
\li
213
\li background
214
\li same as above
215
\li .9.png (or .png)
216
\row
217
\li
218
\li indicator
219
\li same as above
220
\li .png
221
\row
222
\li \l MenuSeparator
223
\li background
224
\li disabled, mirrored
225
\li .9.png (or .png)
226
\row
227
\li
228
\li separator
229
\li same as above
230
\li .9.png (or .png)
231
\row
232
\li \l Page
233
\li background
234
\li disabled, mirrored
235
\li .9.png (or .png)
236
\row
237
\li \l PageIndicator
238
\li background
239
\li disabled, mirrored, hovered
240
\li .9.png (or .png)
241
\row
242
\li
243
\li delegate
244
\li disabled, pressed, current, mirrored, hovered
245
\li .png
246
\row
247
\li \l Pane
248
\li background
249
\li disabled, mirrored
250
\li .9.png (or .png)
251
\row
252
\li \l Popup
253
\li background
254
\li modal, dim
255
\li .9.png (or .png)
256
\row
257
\li
258
\li overlay
259
\li modal
260
\li .9.png (or .png)
261
\row
262
\li \l ProgressBar
263
\li animation
264
\li disabled, mirrored, hovered
265
\li .png
266
\row
267
\li
268
\li background
269
\li disabled, indeterminate, mirrored, hovered
270
\li .9.png (or .png)
271
\row
272
\li
273
\li mask
274
\li same as above
275
\li .9.png (or .png)
276
\row
277
\li
278
\li progress
279
\li same as above
280
\li .9.png (or .png)
281
\row
282
\li \l RadioButton
283
\li background
284
\li disabled, pressed, checked, focused, mirrored, hovered
285
\li .9.png (or .png)
286
\row
287
\li
288
\li indicator
289
\li same as above
290
\li .png
291
\row
292
\li \l RadioDelegate
293
\li background
294
\li disabled, pressed, checked, focused, highlighted, mirrored, hovered
295
\li .9.png (or .png)
296
\row
297
\li
298
\li indicator
299
\li same as above
300
\li .png
301
\row
302
\li \l RangeSlider
303
\li background
304
\li vertical, horizontal, disabled, focused, mirrored, hovered
305
\li .9.png (or .png)
306
\row
307
\li \l RangeSlider
308
\li progress
309
\li same as above
310
\li .9.png (or .png)
311
\row
312
\li
313
\li handle
314
\li first, second, vertical, horizontal, disabled, pressed, focused, mirrored, hovered
315
\li .png
316
\row
317
\li \l RoundButton
318
\li background
319
\li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
320
\li .9.png (or .png)
321
\row
322
\li \l ScrollBar
323
\li background
324
\li vertical, horizontal, disabled, interactive, pressed, mirrored, hovered
325
\li .9.png (or .png)
326
\row
327
\li
328
\li handle
329
\li same as above
330
\li .9.png (or .png)
331
\row
332
\li \l ScrollIndicator
333
\li background
334
\li vertical, horizontal, disabled, mirrored, hovered
335
\li .9.png (or .png)
336
\row
337
\li
338
\li handle
339
\li same as above
340
\li .9.png (or .png)
341
\row
342
\li \l ScrollView
343
\li background
344
\li disabled, mirrored
345
\li .9.png (or .png)
346
\row
347
\li \l Slider
348
\li background
349
\li vertical, horizontal, disabled, pressed, focused, mirrored, hovered
350
\li .9.png (or .png)
351
\row
352
\li
353
\li handle
354
\li same as above
355
\li .9.png (or .png)
356
\row
357
\li
358
\li progress
359
\li same as above
360
\li .9.png (or .png)
361
\row
362
\li \l SpinBox
363
\li background
364
\li disabled, editable, focused, mirrored, hovered
365
\li .9.png (or .png)
366
\row
367
\li
368
\li editor
369
\li disabled, focused, mirrored, hovered
370
\li .9.png (or .png)
371
\row
372
\li
373
\li indicator
374
\li up, down, disabled, editable, pressed, focused, mirrored, hovered
375
\li .9.png (or .png)
376
\row
377
\li \l StackView
378
\li background
379
\li disabled, mirrored
380
\li .9.png (or .png)
381
\row
382
\li \l SwipeDelegate
383
\li background
384
\li disabled, pressed, focused, highlighted, mirrored, hovered
385
\li .9.png (or .png)
386
\row
387
\li \l SwipeView
388
\li background
389
\li vertical, horizontal, disabled, interactive, focused, mirrored
390
\li .9.png (or .png)
391
\row
392
\li \l Switch
393
\li background
394
\li disabled, pressed, checked, focused, mirrored, hovered
395
\li .9.png (or .png)
396
\row
397
\li
398
\li handle
399
\li same as above
400
\li .9.png (or .png)
401
\row
402
\li
403
\li indicator
404
\li same as above
405
\li .9.png (or .png)
406
\row
407
\li \l SwitchDelegate
408
\li background
409
\li disabled, pressed, checked, focused, highlighted, mirrored, hovered
410
\li .9.png (or .png)
411
\row
412
\li
413
\li handle
414
\li same as above
415
\li .9.png (or .png)
416
\row
417
\li
418
\li indicator
419
\li same as above
420
\li .9.png (or .png)
421
\row
422
\li \l TabBar
423
\li background
424
\li disabled, header, footer, mirrored
425
\li .9.png (or .png)
426
\row
427
\li \l TabButton
428
\li background
429
\li disabled, pressed, checked, focused, mirrored, hovered
430
\li .9.png (or .png)
431
\row
432
\li \l TextArea
433
\li background
434
\li disabled, focused, mirrored, hovered
435
\li .9.png (or .png)
436
\row
437
\li \l TextField
438
\li background
439
\li disabled, focused, mirrored, hovered
440
\li .9.png (or .png)
441
\row
442
\li \l ToolBar
443
\li background
444
\li disabled, header, footer, mirrored
445
\li .9.png (or .png)
446
\row
447
\li \l ToolButton
448
\li background
449
\li disabled, pressed, checked, checkable, focused, highlighted, flat, mirrored, hovered
450
\li .9.png (or .png)
451
\row
452
\li \l ToolSeparator
453
\li background
454
\li vertical, horizontal, disabled, mirrored
455
\li .9.png (or .png)
456
\row
457
\li
458
\li separator
459
\li same as above
460
\li .9.png (or .png)
461
\row
462
\li \l ToolTip
463
\li background
464
\li
465
\li .9.png (or .png)
466
\row
467
\li \l Tumbler
468
\li background
469
\li disabled, focused, mirrored, hovered
470
\li .9.png (or .png)
471
\endtable
472
473
\note \sup{1}) The Imagine style Dial does not yet support the
474
\l {Dial::}{startAngle} and \l {Dial::}{endAngle} properties that were
475
introduced in Qt 6.6, and instead uses a fixed background image.
476
477
\section2 Asset Examples
478
479
The following table lists examples of assets (taken from the
480
\l {https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quickcontrols/imagine/images}
481
{default Imagine style assets}) for all controls. The list is not
482
exhaustive, as not all elements need assets, but it can be used as a guide
483
when creating your own assets.
484
485
The template that these assets were \l {Exporting 9-Patch Images}
486
{exported from} is available as a
487
\l {https://code.qt.io/cgit/qt/qtdeclarative.git/plain/src/quickcontrols/imagine/design/imagine.sketch}
488
{Sketch project}.
489
490
\table
491
\header
492
\li Control
493
\li Element
494
\li States
495
\li Asset
496
\li Notes
497
\row
498
\li \l ApplicationWindow
499
\li background
500
\li
501
\li \image imagine/images/applicationwindow-background.png
502
{ApplicationWindow background asset}
503
\li \l {sup1}{See footnote} \sup 1
504
\row
505
\li
506
\li overlay
507
\li
508
\li \image imagine/images/applicationwindow-overlay.png
509
{ApplicationWindow overlay asset}
510
\li \l {sup1}{See footnote} \sup 1
511
\row
512
\li
513
\li overlay
514
\li modal
515
\li \image imagine/images/applicationwindow-overlay-modal.png
516
{ApplicationWindow overlay modal asset}
517
\li \l {sup1}{See footnote} \sup 1
518
\row
519
\li \l Button
520
\li background
521
\li
522
\li \image imagine/images/button-background.9.png
523
{Button background asset}
524
\li
525
\row
526
\li
527
\li background
528
\li disabled
529
\li \image imagine/images/button-background-disabled.9.png
530
{Button background disabled asset}
531
\li
532
\row
533
\li
534
\li background
535
\li focused
536
\li \image imagine/images/button-background-focused.9.png
537
{Button background focused asset}
538
\li
539
\row
540
\li
541
\li background
542
\li pressed
543
\li \image imagine/images/button-background-pressed.9.png
544
{Button background pressed asset}
545
\li
546
\row
547
\li
548
\li background
549
\li checked
550
\li \image imagine/images/button-background-checked.9.png
551
{Button background checked asset}
552
\li
553
\row
554
\li
555
\li background
556
\li checked, disabled
557
\li \image imagine/images/button-background-checked-disabled.9.png
558
{Button background checked disabled asset}
559
\li
560
\row
561
\li
562
\li background
563
\li checked, focused
564
\li \image imagine/images/button-background-checked-focused.9.png
565
{Button background checked focused asset}
566
\li
567
\row
568
\li
569
\li background
570
\li checked, hovered
571
\li \image imagine/images/button-background-checked-hovered.9.png
572
{Button background checked hovered asset}
573
\li
574
\row
575
\li
576
\li background
577
\li highlighted
578
\li \image imagine/images/button-background-highlighted.9.png
579
{Button background highlighted asset}
580
\li
581
\row
582
\li
583
\li background
584
\li highlighted, disabled
585
\li \image imagine/images/button-background-highlighted-disabled.9.png
586
{Button background highlighted disabled asset}
587
\li
588
\row
589
\li
590
\li background
591
\li highlighted, focused
592
\li \image imagine/images/button-background-highlighted-focused.9.png
593
{Button background highlighted focused asset}
594
\li
595
\row
596
\li
597
\li background
598
\li highlighted, hovered
599
\li \image imagine/images/button-background-highlighted-hovered.9.png
600
{Button background highlighted hovered asset}
601
\li
602
\row
603
\li
604
\li background
605
\li highlighted, pressed
606
\li \image imagine/images/button-background-highlighted-pressed.9.png
607
{Button background highlighted pressed asset}
608
\li
609
\row
610
\li
611
\li background
612
\li highlighted, checked
613
\li \image imagine/images/button-background-highlighted-checked.9.png
614
{Button background highlighted checked asset}
615
\li
616
\row
617
\li
618
\li background
619
\li hovered
620
\li \image imagine/images/button-background-hovered.9.png
621
{Button background hovered asset}
622
\li
623
\row
624
\li
625
\li background
626
\li flat
627
\li \image imagine/images/button-background-flat.9.png
628
{Button background flat asset}
629
\li
630
\row
631
\li
632
\li background
633
\li flat, disabled
634
\li \image imagine/images/button-background-flat-disabled.9.png
635
{Button background flat disabled asset}
636
\li
637
\row
638
\li
639
\li background
640
\li flat, hovered
641
\li \image imagine/images/button-background-flat-hovered.9.png
642
{Button background flat hovered asset}
643
\li
644
\row
645
\li
646
\li background
647
\li flat, pressed
648
\li \image imagine/images/button-background-flat-pressed.9.png
649
{Button background flat pressed asset}
650
\li
651
\row
652
\li
653
\li background
654
\li flat, checked
655
\li \image imagine/images/button-background-flat-checked.9.png
656
{Button background flat checked asset}
657
\li
658
\row
659
\li \l CheckBox
660
\li indicator
661
\li
662
\li \image imagine/images/checkbox-indicator.png
663
{CheckBox indicator asset}
664
\li
665
\row
666
\li
667
\li indicator
668
\li disabled
669
\li \image imagine/images/checkbox-indicator-disabled.png
670
{CheckBox indicator disabled asset}
671
\li
672
\row
673
\li
674
\li indicator
675
\li pressed
676
\li \image imagine/images/checkbox-indicator-pressed.png
677
{CheckBox indicator pressed asset}
678
\li
679
\row
680
\li
681
\li indicator
682
\li checked
683
\li \image imagine/images/checkbox-indicator-checked.png
684
{CheckBox indicator checked asset}
685
\li
686
\row
687
\li
688
\li indicator
689
\li checked, pressed
690
\li \image imagine/images/checkbox-indicator-checked-pressed.png
691
{CheckBox indicator checked pressed asset}
692
\li
693
\row
694
\li
695
\li indicator
696
\li checked, hovered
697
\li \image imagine/images/checkbox-indicator-checked-hovered.png
698
{CheckBox indicator checked hovered asset}
699
\li
700
\row
701
\li
702
\li indicator
703
\li checked, focused
704
\li \image imagine/images/checkbox-indicator-checked-focused.png
705
{CheckBox indicator checked focused asset}
706
\li
707
\row
708
\li
709
\li indicator
710
\li partially, checked
711
\li \image imagine/images/checkbox-indicator-partially-checked.png
712
{CheckBox indicator partially checked asset}
713
\li
714
\row
715
\li
716
\li indicator
717
\li partially, checked, pressed
718
\li \image imagine/images/checkbox-indicator-partially-checked-pressed.png
719
{CheckBox indicator partially checked pressed asset}
720
\li
721
\row
722
\li
723
\li indicator
724
\li partially, checked, focused
725
\li \image imagine/images/checkbox-indicator-partially-checked-focused.png
726
{CheckBox indicator partially checked focused asset}
727
\li
728
\row
729
\li
730
\li indicator
731
\li partially, checked, hovered
732
\li \image imagine/images/checkbox-indicator-partially-checked-hovered.png
733
{CheckBox indicator partially checked hovered asset}
734
\li
735
\row
736
\li
737
\li indicator
738
\li focused
739
\li \image imagine/images/checkbox-indicator-focused.png
740
{CheckBox indicator focused asset}
741
\li
742
\row
743
\li
744
\li indicator
745
\li hovered
746
\li \image imagine/images/checkbox-indicator-hovered.png
747
{CheckBox indicator hovered asset}
748
\li
749
\row
750
\li \l CheckDelegate
751
\li background
752
\li
753
\li \image imagine/images/checkdelegate-background.9.png
754
{CheckDelegate background asset}
755
\li
756
\row
757
\li
758
\li background
759
\li disabled
760
\li \image imagine/images/checkdelegate-background-disabled.9.png
761
{CheckDelegate background disabled asset}
762
\li
763
\row
764
\li
765
\li background
766
\li pressed
767
\li \image imagine/images/checkdelegate-background-pressed.9.png
768
{CheckDelegate background pressed asset}
769
\li
770
\row
771
\li
772
\li background
773
\li focused
774
\li \image imagine/images/checkdelegate-background-focused.9.png
775
{CheckDelegate background focused asset}
776
\li
777
\row
778
\li
779
\li background
780
\li hovered
781
\li \image imagine/images/checkdelegate-background-hovered.9.png
782
{CheckDelegate background hovered asset}
783
\li
784
\row
785
\li
786
\li indicator
787
\li
788
\li \image imagine/images/checkdelegate-indicator.png
789
{CheckDelegate indicator asset}
790
\li
791
\row
792
\li
793
\li indicator
794
\li disabled
795
\li \image imagine/images/checkdelegate-indicator-disabled.png
796
{CheckDelegate indicator disabled asset}
797
\li
798
\row
799
\li
800
\li indicator
801
\li pressed
802
\li \image imagine/images/checkdelegate-indicator-pressed.png
803
{CheckDelegate indicator pressed asset}
804
\li
805
\row
806
\li
807
\li indicator
808
\li checked
809
\li \image imagine/images/checkdelegate-indicator-checked.png
810
{CheckDelegate indicator checked asset}
811
\li
812
\row
813
\li
814
\li indicator
815
\li checked, pressed
816
\li \image imagine/images/checkdelegate-indicator-checked-pressed.png
817
{CheckDelegate indicator checked pressed asset}
818
\li
819
\row
820
\li
821
\li indicator
822
\li checked, focused
823
\li \image imagine/images/checkdelegate-indicator-checked-focused.png
824
{CheckDelegate indicator checked focused asset}
825
\li
826
\row
827
\li
828
\li indicator
829
\li checked, hovered
830
\li \image imagine/images/checkdelegate-indicator-checked-hovered.png
831
{CheckDelegate indicator checked hovered asset}
832
\li
833
\row
834
\li
835
\li indicator
836
\li focused
837
\li \image imagine/images/checkdelegate-indicator-focused.png
838
{CheckDelegate indicator focused asset}
839
\li
840
\row
841
\li
842
\li indicator
843
\li hovered
844
\li \image imagine/images/checkdelegate-indicator-hovered.png
845
{CheckDelegate indicator hovered asset}
846
\li
847
\row
848
\li
849
\li indicator
850
\li partially, checked
851
\li \image imagine/images/checkdelegate-indicator-partially-checked.png
852
{CheckDelegate indicator partial checked asset}
853
\li
854
\row
855
\li
856
\li indicator
857
\li partially, checked, pressed
858
\li \image imagine/images/checkdelegate-indicator-partially-checked-pressed.png
859
{CheckDelegate indicator partial checked pressed asset}
860
\li
861
\row
862
\li
863
\li indicator
864
\li partially, checked, focused
865
\li \image imagine/images/checkdelegate-indicator-partially-checked-focused.png
866
{CheckDelegate indicator partial checked focused asset}
867
\li
868
\row
869
\li
870
\li indicator
871
\li partially, checked, hovered
872
\li \image imagine/images/checkdelegate-indicator-partially-checked-hovered.png
873
{CheckDelegate indicator partial checked hovered asset}
874
\li
875
\row
876
\li
877
\li indicator
878
\li hovered
879
\li \image imagine/images/checkdelegate-indicator-hovered.png
880
{CheckDelegate indicator hovered asset}
881
\li
882
\row
883
\li \l ComboBox
884
\li background
885
\li
886
\li \image imagine/images/combobox-background.9.png
887
{ComboBox background asset}
888
\li
889
\row
890
\li
891
\li background
892
\li disabled
893
\li \image imagine/images/combobox-background-disabled.9.png
894
{ComboBox background disabled asset}
895
\li
896
\row
897
\li
898
\li background
899
\li focused
900
\li \image imagine/images/combobox-background-focused.9.png
901
{ComboBox background focused asset}
902
\li
903
\row
904
\li
905
\li background
906
\li hovered
907
\li \image imagine/images/combobox-background-hovered.9.png
908
{ComboBox background hovered asset}
909
\li
910
\row
911
\li
912
\li background
913
\li pressed
914
\li \image imagine/images/combobox-background-pressed.9.png
915
{ComboBox background pressed asset}
916
\li
917
\row
918
\li
919
\li background
920
\li open
921
\li \image imagine/images/combobox-background-open.9.png
922
{ComboBox background open asset}
923
\li
924
\row
925
\li
926
\li background
927
\li editable
928
\li \image imagine/images/combobox-background-editable.9.png
929
{ComboBox background editable asset}
930
\li
931
\row
932
\li
933
\li background
934
\li editable, focused
935
\li \image imagine/images/combobox-background-editable-focused.9.png
936
{ComboBox background editable focused asset}
937
\li
938
\row
939
\li
940
\li background
941
\li editable, disabled
942
\li \image imagine/images/combobox-background-editable-disabled.9.png
943
{ComboBox background editable disabled asset}
944
\li
945
\row
946
\li
947
\li indicator
948
\li
949
\li \image imagine/images/combobox-indicator.png
950
{ComboBox indicator asset}
951
\li
952
\row
953
\li
954
\li indicator
955
\li disabled
956
\li \image imagine/images/combobox-indicator-disabled.png
957
{ComboBox indicator disabled asset}
958
\li
959
\row
960
\li
961
\li indicator
962
\li editable
963
\li \image imagine/images/combobox-indicator-editable.png
964
{ComboBox indicator editable asset}
965
\li
966
\row
967
\li
968
\li indicator
969
\li editable, disabled
970
\li \image imagine/images/combobox-indicator-editable-disabled.png
971
{ComboBox indicator editable disabled asset}
972
\li
973
\row
974
\li
975
\li indicator
976
\li editable, mirrored
977
\li \image imagine/images/combobox-indicator-editable-mirrored.png
978
{ComboBox indicator editable mirrored asset}
979
\li
980
\row
981
\li
982
\li indicator
983
\li editable, mirrored, disabled
984
\li \image imagine/images/combobox-indicator-editable-mirrored-disabled.png
985
{ComboBox indicator editable mirrored disabled asset}
986
\li
987
\row
988
\li
989
\li popup
990
\li
991
\li \image imagine/images/combobox-popup.9.png
992
{ComboBox popup asset}
993
\li
994
\row
995
\li \l DelayButton
996
\li background
997
\li
998
\li \image imagine/images/delaybutton-background.9.png
999
{DelayButton background asset}
1000
\li
1001
\row
1002
\li
1003
\li background
1004
\li disabled
1005
\li \image imagine/images/delaybutton-background-disabled.9.png
1006
{DelayButton background disabled asset}
1007
\li
1008
\row
1009
\li
1010
\li background
1011
\li disabled, checked
1012
\li \image imagine/images/delaybutton-background-disabled-checked.9.png
1013
{DelayButton background disabled checked asset}
1014
\li
1015
\row
1016
\li
1017
\li background
1018
\li focused
1019
\li \image imagine/images/delaybutton-background-focused.9.png
1020
{DelayButton background focused asset}
1021
\li
1022
\row
1023
\li
1024
\li background
1025
\li pressed
1026
\li \image imagine/images/delaybutton-background-pressed.9.png
1027
{DelayButton background pressed asset}
1028
\li
1029
\row
1030
\li
1031
\li background
1032
\li checked
1033
\li \image imagine/images/delaybutton-background-checked.9.png
1034
{DelayButton background checked asset}
1035
\li
1036
\row
1037
\li
1038
\li background
1039
\li checked, focused
1040
\li \image imagine/images/delaybutton-background-checked-focused.9.png
1041
{DelayButton background checked focused asset}
1042
\li
1043
\row
1044
\li
1045
\li background
1046
\li checked, hovered
1047
\li \image imagine/images/delaybutton-background-checked-hovered.9.png
1048
{DelayButton background checked hovered asset}
1049
\li
1050
\row
1051
\li
1052
\li background
1053
\li hovered
1054
\li \image imagine/images/delaybutton-background-hovered.9.png
1055
{DelayButton background hovered asset}
1056
\li
1057
\row
1058
\li
1059
\li progress
1060
\li
1061
\li \image imagine/images/delaybutton-progress.9.png
1062
{DelayButton progress asset}
1063
\li
1064
\row
1065
\li
1066
\li progress
1067
\li disabled
1068
\li \image imagine/images/delaybutton-progress-disabled.9.png
1069
{DelayButton progress disabled asset}
1070
\li
1071
\row
1072
\li
1073
\li mask
1074
\li
1075
\li \image imagine/images/delaybutton-mask.9.png
1076
{DelayButton mask asset}
1077
\li
1078
\row
1079
\li \l Dial
1080
\li background
1081
\li
1082
\li \image imagine/images/dial-background.png
1083
{Dial background asset}
1084
\li
1085
\row
1086
\li
1087
\li background
1088
\li disabled
1089
\li \image imagine/images/dial-background-disabled.png
1090
{Dial background disabled asset}
1091
\li
1092
\row
1093
\li
1094
\li background
1095
\li focused
1096
\li \image imagine/images/dial-background-focused.png
1097
{Dial background focused asset}
1098
\li
1099
\row
1100
\li
1101
\li handle
1102
\li
1103
\li \image imagine/images/dial-handle.png
1104
{Dial handle asset}
1105
\li
1106
\row
1107
\li
1108
\li handle
1109
\li disabled
1110
\li \image imagine/images/dial-handle-disabled.png
1111
{Dial handle disabled asset}
1112
\li
1113
\row
1114
\li
1115
\li handle
1116
\li focused
1117
\li \image imagine/images/dial-handle-focused.png
1118
{Dial handle focused asset}
1119
\li
1120
\row
1121
\li
1122
\li handle
1123
\li focused, pressed
1124
\li \image imagine/images/dial-handle-focused-pressed.png
1125
{Dial handle focused pressed asset}
1126
\li
1127
\row
1128
\li
1129
\li handle
1130
\li focused, hovered
1131
\li \image imagine/images/dial-handle-focused-hovered.png
1132
{Dial handle focused hovered asset}
1133
\li
1134
\row
1135
\li
1136
\li handle
1137
\li pressed
1138
\li \image imagine/images/dial-handle-pressed.png
1139
{Dial handle pressed asset}
1140
\li
1141
\row
1142
\li
1143
\li handle
1144
\li hovered
1145
\li \image imagine/images/dial-handle-hovered.png
1146
{Dial handle hovered asset}
1147
\li
1148
\row
1149
\li \l Dialog
1150
\li background
1151
\li
1152
\li \image imagine/images/dialog-background.9.png
1153
{Dialog background asset}
1154
\li
1155
\row
1156
\li
1157
\li overlay
1158
\li
1159
\li \image imagine/images/dialog-overlay.png
1160
{Dialog overlay asset}
1161
\li \l {sup1}{See footnote} \sup 1
1162
\row
1163
\li
1164
\li overlay
1165
\li modal
1166
\li \image imagine/images/dialog-overlay-modal.png
1167
{Dialog overlay modal asset}
1168
\li \l {sup1}{See footnote} \sup 1
1169
\row
1170
\li \l DialogButtonBox
1171
\li background
1172
\li
1173
\li \image imagine/images/dialogbuttonbox-background.9.png
1174
{DialogButtonBox background asset}
1175
\li
1176
\row
1177
\li \l Drawer
1178
\li background
1179
\li left
1180
\li \image imagine/images/drawer-background-left.9.png
1181
{Drawer background left asset}
1182
\li
1183
\row
1184
\li
1185
\li background
1186
\li right
1187
\li \image imagine/images/drawer-background-right.9.png
1188
{Drawer background right asset}
1189
\li
1190
\row
1191
\li
1192
\li background
1193
\li top
1194
\li \image imagine/images/drawer-background-top.9.png
1195
{Drawer background top asset}
1196
\li
1197
\row
1198
\li
1199
\li background
1200
\li bottom
1201
\li \image imagine/images/drawer-background-bottom.9.png
1202
{Drawer background bottom asset}
1203
\li
1204
\row
1205
\li
1206
\li overlay
1207
\li
1208
\li \image imagine/images/drawer-overlay.png
1209
{Drawer overlay asset}
1210
\li \l {sup1}{See footnote} \sup 1
1211
\row
1212
\li
1213
\li overlay
1214
\li modal
1215
\li \image imagine/images/drawer-overlay-modal.png
1216
{Drawer overlay modal asset}
1217
\li \l {sup1}{See footnote} \sup 1
1218
\row
1219
\li \l Frame
1220
\li background
1221
\li
1222
\li \image imagine/images/frame-background.9.png
1223
{Frame background asset}
1224
\li
1225
\row
1226
\li \l GroupBox
1227
\li background
1228
\li
1229
\li \image imagine/images/groupbox-background.9.png
1230
{GroupBox background asset}
1231
\li
1232
\row
1233
\li
1234
\li title
1235
\li
1236
\li \image imagine/images/groupbox-title.9.png
1237
{GroupBox title asset}
1238
\li
1239
\row
1240
\li \l ItemDelegate
1241
\li background
1242
\li
1243
\li \image imagine/images/itemdelegate-background.9.png
1244
{ItemDelegate background asset}
1245
\li
1246
\row
1247
\li
1248
\li background
1249
\li disabled
1250
\li \image imagine/images/itemdelegate-background-disabled.9.png
1251
{ItemDelegate background disabled asset}
1252
\li
1253
\row
1254
\li
1255
\li background
1256
\li pressed
1257
\li \image imagine/images/itemdelegate-background-pressed.9.png
1258
{ItemDelegate background pressed asset}
1259
\li
1260
\row
1261
\li
1262
\li background
1263
\li focused
1264
\li \image imagine/images/itemdelegate-background-focused.9.png
1265
{ItemDelegate background focused asset}
1266
\li
1267
\row
1268
\li
1269
\li background
1270
\li hovered
1271
\li \image imagine/images/itemdelegate-background-hovered.9.png
1272
{ItemDelegate background hovered asset}
1273
\li
1274
\row
1275
\li
1276
\li background
1277
\li highlighted
1278
\li \image imagine/images/itemdelegate-background-highlighted.9.png
1279
{ItemDelegate background highlighted asset}
1280
\li
1281
\row
1282
\li \l Menu
1283
\li background
1284
\li
1285
\li \image imagine/images/menu-background.9.png
1286
{Menu background asset}
1287
\li
1288
\row
1289
\li \l MenuItem
1290
\li background
1291
\li
1292
\li \image imagine/images/menuitem-background.9.png
1293
{MenuItem background asset}
1294
\li
1295
\row
1296
\li
1297
\li background
1298
\li highlighted
1299
\li \image imagine/images/menuitem-background-highlighted.9.png
1300
{MenuItem background highlighted asset}
1301
\li
1302
\row
1303
\li
1304
\li arrow
1305
\li
1306
\li \image imagine/images/menuitem-arrow.png
1307
{MenuItem arrow asset}
1308
\li
1309
\row
1310
\li
1311
\li arrow
1312
\li mirrored
1313
\li \image imagine/images/menuitem-arrow-mirrored.png
1314
{MenuItem arrow mirrored asset}
1315
\li
1316
\row
1317
\li
1318
\li arrow
1319
\li disabled
1320
\li \image imagine/images/menuitem-arrow-disabled.png
1321
{MenuItem arrow disabled asset}
1322
\li
1323
\row
1324
\li
1325
\li arrow
1326
\li mirrored, disabled
1327
\li \image imagine/images/menuitem-arrow-mirrored-disabled.png
1328
{MenuItem arrow mirrored disabled asset}
1329
\li
1330
\row
1331
\li
1332
\li indicator
1333
\li
1334
\li \image imagine/images/menuitem-indicator.png
1335
{MenuItem indicator asset}
1336
\li
1337
\row
1338
\li
1339
\li indicator
1340
\li disabled
1341
\li \image imagine/images/menuitem-indicator-disabled.png
1342
{MenuItem indicator disabled asset}
1343
\li
1344
\row
1345
\li
1346
\li indicator
1347
\li pressed
1348
\li \image imagine/images/menuitem-indicator-pressed.png
1349
{MenuItem indicator pressed asset}
1350
\li
1351
\row
1352
\li
1353
\li indicator
1354
\li checked
1355
\li \image imagine/images/menuitem-indicator-checked.png
1356
{MenuItem indicator checked asset}
1357
\li
1358
\row
1359
\li
1360
\li indicator
1361
\li checked, pressed
1362
\li \image imagine/images/menuitem-indicator-checked-pressed.png
1363
{MenuItem indicator checked pressed asset}
1364
\li
1365
\row
1366
\li
1367
\li indicator
1368
\li checked, focused
1369
\li \image imagine/images/menuitem-indicator-checked-focused.png
1370
{MenuItem indicator checked focused asset}
1371
\li
1372
\row
1373
\li
1374
\li indicator
1375
\li checked, hovered
1376
\li \image imagine/images/menuitem-indicator-checked-hovered.png
1377
{MenuItem indicator checked hovered asset}
1378
\li
1379
\row
1380
\li
1381
\li indicator
1382
\li focused
1383
\li \image imagine/images/menuitem-indicator-focused.png
1384
{MenuItem indicator focused asset}
1385
\li
1386
\row
1387
\li
1388
\li indicator
1389
\li hovered
1390
\li \image imagine/images/menuitem-indicator-hovered.png
1391
{MenuItem indicator hovered asset}
1392
\li
1393
\row
1394
\li \l MenuSeparator
1395
\li separator
1396
\li
1397
\li \image imagine/images/menuseparator-separator.9.png
1398
{MenuSeparator separator asset}
1399
\li
1400
\row
1401
\li \l Page
1402
\li background
1403
\li
1404
\li \image imagine/images/page-background.png
1405
{Page background asset}
1406
\li \l {sup1}{See footnote} \sup 1
1407
\row
1408
\li \l PageIndicator
1409
\li delegate
1410
\li
1411
\li \image imagine/images/pageindicator-delegate.png
1412
{PageIndicator delegate asset}
1413
\li
1414
\row
1415
\li
1416
\li delegate
1417
\li disabled
1418
\li \image imagine/images/pageindicator-delegate-disabled.png
1419
{PageIndicator delegate disabled asset}
1420
\li
1421
\row
1422
\li
1423
\li delegate
1424
\li disabled, current
1425
\li \image imagine/images/pageindicator-delegate-disabled-current.png
1426
{PageIndicator delegate disabled current asset}
1427
\li
1428
\row
1429
\li
1430
\li delegate
1431
\li pressed
1432
\li \image imagine/images/pageindicator-delegate-pressed.png
1433
{PageIndicator delegate pressed asset}
1434
\li
1435
\row
1436
\li
1437
\li delegate
1438
\li current
1439
\li \image imagine/images/pageindicator-delegate-current.png
1440
{PageIndicator delegate current asset}
1441
\li
1442
\row
1443
\li \l Pane
1444
\li background
1445
\li
1446
\li \image imagine/images/pane-background.9.png
1447
{Pane background asset}
1448
\li
1449
\row
1450
\li \l Popup
1451
\li background
1452
\li
1453
\li \image imagine/images/popup-background.9.png
1454
{Popup background asset}
1455
\li \l {sup1}{See footnote} \sup 1
1456
\row
1457
\li
1458
\li overlay
1459
\li
1460
\li \image imagine/images/popup-overlay.png
1461
{Popup overlay asset}
1462
\li \l {sup1}{See footnote} \sup 1
1463
\row
1464
\li
1465
\li overlay
1466
\li modal
1467
\li \image imagine/images/popup-overlay-modal.png
1468
{Popup overlay modal asset}
1469
\li
1470
\row
1471
\li \l ProgressBar
1472
\li background
1473
\li
1474
\li \image imagine/images/progressbar-background.9.png
1475
{ProgressBar background asset}
1476
\li
1477
\row
1478
\li
1479
\li progress
1480
\li
1481
\li \image imagine/images/progressbar-progress.png
1482
{ProgressBar progress asset}
1483
\li
1484
\row
1485
\li
1486
\li mask
1487
\li
1488
\li \image imagine/images/progressbar-mask.9.png
1489
{ProgressBar mask asset}
1490
\li
1491
\row
1492
\li \l RadioButton
1493
\li indicator
1494
\li
1495
\li \image imagine/images/radiobutton-indicator.png
1496
{RadioButton indicator asset}
1497
\li
1498
\row
1499
\li
1500
\li indicator
1501
\li disabled
1502
\li \image imagine/images/radiobutton-indicator-disabled.png
1503
{RadioButton indicator disabled asset}
1504
\li
1505
\row
1506
\li
1507
\li indicator
1508
\li pressed
1509
\li \image imagine/images/radiobutton-indicator-pressed.png
1510
{RadioButton indicator pressed asset}
1511
\li
1512
\row
1513
\li
1514
\li indicator
1515
\li checked
1516
\li \image imagine/images/radiobutton-indicator-checked.png
1517
{RadioButton indicator checked asset}
1518
\li
1519
\row
1520
\li
1521
\li indicator
1522
\li checked, focused
1523
\li \image imagine/images/radiobutton-indicator-checked-focused.png
1524
{RadioButton indicator checked focused asset}
1525
\li
1526
\row
1527
\li
1528
\li indicator
1529
\li checked, hovered
1530
\li \image imagine/images/radiobutton-indicator-checked-hovered.png
1531
{RadioButton indicator checked hovered asset}
1532
\li
1533
\row
1534
\li
1535
\li indicator
1536
\li checked, pressed
1537
\li \image imagine/images/radiobutton-indicator-checked-pressed.png
1538
{RadioButton indicator checked pressed asset}
1539
\li
1540
\row
1541
\li
1542
\li indicator
1543
\li focused
1544
\li \image imagine/images/radiobutton-indicator-focused.png
1545
{RadioButton indicator focused asset}
1546
\li
1547
\row
1548
\li
1549
\li indicator
1550
\li hovered
1551
\li \image imagine/images/radiobutton-indicator-hovered.png
1552
{RadioButton indicator hovered asset}
1553
\li
1554
\row
1555
\li \l RadioDelegate
1556
\li background
1557
\li
1558
\li \image imagine/images/radiodelegate-background.9.png
1559
{RadioDelegate background asset}
1560
\li
1561
\row
1562
\li
1563
\li background
1564
\li disabled
1565
\li \image imagine/images/radiodelegate-background-disabled.9.png
1566
{RadioDelegate background disabled asset}
1567
\li
1568
\row
1569
\li
1570
\li background
1571
\li pressed
1572
\li \image imagine/images/radiodelegate-background-pressed.9.png
1573
{RadioDelegate background pressed asset}
1574
\li
1575
\row
1576
\li
1577
\li background
1578
\li focused
1579
\li \image imagine/images/radiodelegate-background-focused.9.png
1580
{RadioDelegate background focused asset}
1581
\li
1582
\row
1583
\li
1584
\li background
1585
\li hovered
1586
\li \image imagine/images/radiodelegate-background-hovered.9.png
1587
{RadioDelegate background hovered asset}
1588
\li
1589
\row
1590
\li
1591
\li indicator
1592
\li
1593
\li \image imagine/images/radiodelegate-indicator.png
1594
{RadioDelegate indicator asset}
1595
\li
1596
\row
1597
\li
1598
\li indicator
1599
\li disabled
1600
\li \image imagine/images/radiodelegate-indicator-disabled.png
1601
{RadioDelegate indicator disabled asset}
1602
\li
1603
\row
1604
\li
1605
\li indicator
1606
\li pressed
1607
\li \image imagine/images/radiodelegate-indicator-pressed.png
1608
{RadioDelegate indicator pressed asset}
1609
\li
1610
\row
1611
\li
1612
\li indicator
1613
\li checked
1614
\li \image imagine/images/radiodelegate-indicator-checked.png
1615
{RadioDelegate indicator checked asset}
1616
\li
1617
\row
1618
\li
1619
\li indicator
1620
\li checked, focused
1621
\li \image imagine/images/radiodelegate-indicator-checked-focused.png
1622
{RadioDelegate indicator checked focused asset}
1623
\li
1624
\row
1625
\li
1626
\li indicator
1627
\li checked, hovered
1628
\li \image imagine/images/radiodelegate-indicator-checked-hovered.png
1629
{RadioDelegate indicator checked hovered asset}
1630
\li
1631
\row
1632
\li
1633
\li indicator
1634
\li checked, pressed
1635
\li \image imagine/images/radiodelegate-indicator-checked-pressed.png
1636
{RadioDelegate indicator checked pressed asset}
1637
\li
1638
\row
1639
\li
1640
\li indicator
1641
\li focused
1642
\li \image imagine/images/radiodelegate-indicator-focused.png
1643
{RadioDelegate indicator focused asset}
1644
\li
1645
\row
1646
\li
1647
\li indicator
1648
\li hovered
1649
\li \image imagine/images/radiodelegate-indicator-hovered.png
1650
{RadioDelegate indicator hovered asset}
1651
\li
1652
\row
1653
\li \l RangeSlider
1654
\li background
1655
\li vertical
1656
\li \image imagine/images/rangeslider-background-vertical.9.png
1657
{RangeSlider background vertical asset}
1658
\li
1659
\row
1660
\li
1661
\li background
1662
\li horizontal
1663
\li \image imagine/images/rangeslider-background-horizontal.9.png
1664
{RangeSlider background horizontal asset}
1665
\li
1666
\row
1667
\li
1668
\li progress
1669
\li vertical
1670
\li \image imagine/images/rangeslider-progress-vertical.9.png
1671
{RangeSlider progress vertical asset}
1672
\li
1673
\row
1674
\li
1675
\li progress
1676
\li vertical, disabled
1677
\li \image imagine/images/rangeslider-progress-vertical-disabled.9.png
1678
{RangeSlider progress vertical disabled asset}
1679
\li
1680
\row
1681
\li
1682
\li progress
1683
\li horizontal
1684
\li \image imagine/images/rangeslider-progress-horizontal.9.png
1685
{RangeSlider progress horizontal asset}
1686
\li
1687
\row
1688
\li
1689
\li progress
1690
\li horizontal, disabled
1691
\li \image imagine/images/rangeslider-progress-horizontal-disabled.9.png
1692
{RangeSlider progress horizontal disabled asset}
1693
\li
1694
\row
1695
\li
1696
\li handle
1697
\li
1698
\li \image imagine/images/rangeslider-handle.png
1699
{RangeSlider handle asset}
1700
\li
1701
\row
1702
\li
1703
\li handle
1704
\li disabled
1705
\li \image imagine/images/rangeslider-handle-disabled.png
1706
{RangeSlider handle disabled asset}
1707
\li
1708
\row
1709
\li
1710
\li handle
1711
\li focused
1712
\li \image imagine/images/rangeslider-handle-focused.png
1713
{RangeSlider handle focused asset}
1714
\li
1715
\row
1716
\li
1717
\li handle
1718
\li focused, hovered
1719
\li \image imagine/images/rangeslider-handle-focused-hovered.png
1720
{RangeSlider handle focused hovered asset}
1721
\li
1722
\row
1723
\li
1724
\li handle
1725
\li focused, pressed
1726
\li \image imagine/images/rangeslider-handle-focused-pressed.png
1727
{RangeSlider handle focused pressed asset}
1728
\li
1729
\row
1730
\li
1731
\li handle
1732
\li hovered
1733
\li \image imagine/images/rangeslider-handle-hovered.png
1734
{RangeSlider handle hovered asset}
1735
\li
1736
\row
1737
\li
1738
\li handle
1739
\li pressed
1740
\li \image imagine/images/rangeslider-handle-pressed.png
1741
{RangeSlider handle pressed asset}
1742
\li
1743
\row
1744
\li \l RoundButton
1745
\li background
1746
\li
1747
\li \image imagine/images/roundbutton-background.png
1748
{RoundButton background asset}
1749
\li
1750
\row
1751
\li
1752
\li background
1753
\li disabled
1754
\li \image imagine/images/roundbutton-background-disabled.png
1755
{RoundButton background disabled asset}
1756
\li
1757
\row
1758
\li
1759
\li background
1760
\li disabled, checked
1761
\li \image imagine/images/roundbutton-background-disabled-checked.png
1762
{RoundButton background disabled checked asset}
1763
\li
1764
\row
1765
\li
1766
\li background
1767
\li focused
1768
\li \image imagine/images/roundbutton-background-focused.png
1769
{RoundButton background focused asset}
1770
\li
1771
\row
1772
\li
1773
\li background
1774
\li pressed
1775
\li \image imagine/images/roundbutton-background-pressed.png
1776
{RoundButton background pressed asset}
1777
\li
1778
\row
1779
\li
1780
\li background
1781
\li checked
1782
\li \image imagine/images/roundbutton-background-checked.png
1783
{RoundButton background checked asset}
1784
\li
1785
\row
1786
\li
1787
\li background
1788
\li checked, focused
1789
\li \image imagine/images/roundbutton-background-checked-focused.png
1790
{RoundButton background checked focused asset}
1791
\li
1792
\row
1793
\li
1794
\li background
1795
\li checked, hovered
1796
\li \image imagine/images/roundbutton-background-checked-hovered.png
1797
{RoundButton background checked hovered asset}
1798
\li
1799
\row
1800
\li
1801
\li background
1802
\li highlighted
1803
\li \image imagine/images/roundbutton-background-highlighted.png
1804
{RoundButton background highlighted asset}
1805
\li
1806
\row
1807
\li
1808
\li background
1809
\li highlighted, pressed
1810
\li \image imagine/images/roundbutton-background-highlighted-pressed.png
1811
{RoundButton background highlighted pressed asset}
1812
\li
1813
\row
1814
\li
1815
\li background
1816
\li highlighted, focused
1817
\li \image imagine/images/roundbutton-background-highlighted-focused.png
1818
{RoundButton background highlighted focused asset}
1819
\li
1820
\row
1821
\li
1822
\li background
1823
\li highlighted, hovered
1824
\li \image imagine/images/roundbutton-background-highlighted-hovered.png
1825
{RoundButton background highlighted hovered asset}
1826
\li
1827
\row
1828
\li
1829
\li background
1830
\li hovered
1831
\li \image imagine/images/roundbutton-background-hovered.png
1832
{RoundButton background hovered asset}
1833
\li
1834
\row
1835
\li \l ScrollBar
1836
\li handle
1837
\li
1838
\li \image imagine/images/scrollbar-handle.png
1839
{ScrollBar handle asset}
1840
\li
1841
\row
1842
\li
1843
\li handle
1844
\li disabled
1845
\li \image imagine/images/scrollbar-handle-disabled.png
1846
{ScrollBar handle disabled asset}
1847
\li
1848
\row
1849
\li
1850
\li handle
1851
\li interactive
1852
\li \image imagine/images/scrollbar-handle-interactive.png
1853
{ScrollBar handle interactive asset}
1854
\li
1855
\row
1856
\li
1857
\li handle
1858
\li interactive, disabled
1859
\li \image imagine/images/scrollbar-handle-interactive-disabled.png
1860
{ScrollBar handle interactive disabled asset}
1861
\li
1862
\row
1863
\li
1864
\li handle
1865
\li interactive, pressed
1866
\li \image imagine/images/scrollbar-handle-interactive-pressed.png
1867
{ScrollBar handle interactive pressed asset}
1868
\li
1869
\row
1870
\li
1871
\li handle
1872
\li interactive, hovered
1873
\li \image imagine/images/scrollbar-handle-interactive-hovered.png
1874
{ScrollBar handle interactive hovered asset}
1875
\li
1876
\row
1877
\li \l ScrollIndicator
1878
\li handle
1879
\li
1880
\li \image imagine/images/scrollindicator-handle.png
1881
{ScrollIndicator handle asset}
1882
\li
1883
\row
1884
\li \l Slider
1885
\li background
1886
\li vertical
1887
\li \image imagine/images/slider-background-vertical.9.png
1888
{Slider background vertical asset}
1889
\li
1890
\row
1891
\li
1892
\li background
1893
\li horizontal
1894
\li \image imagine/images/slider-background-horizontal.9.png
1895
{Slider background horizontal asset}
1896
\li
1897
\row
1898
\li
1899
\li progress
1900
\li vertical
1901
\li \image imagine/images/slider-progress-vertical.9.png
1902
{Slider progress vertical asset}
1903
\li
1904
\row
1905
\li
1906
\li progress
1907
\li vertical, disabled
1908
\li \image imagine/images/slider-progress-vertical-disabled.9.png
1909
{Slider progress vertical disabled asset}
1910
\li
1911
\row
1912
\li
1913
\li progress
1914
\li horizontal
1915
\li \image imagine/images/slider-progress-horizontal.9.png
1916
{Slider progress horizontal asset}
1917
\li
1918
\row
1919
\li
1920
\li progress
1921
\li horizontal, disabled
1922
\li \image imagine/images/slider-progress-horizontal-disabled.9.png
1923
{Slider progress horizontal disabled asset}
1924
\li
1925
\row
1926
\li
1927
\li handle
1928
\li
1929
\li \image imagine/images/slider-handle.png
1930
{Slider handle asset}
1931
\li
1932
\row
1933
\li
1934
\li handle
1935
\li disabled
1936
\li \image imagine/images/slider-handle-disabled.png
1937
{Slider handle disabled asset}
1938
\li
1939
\row
1940
\li
1941
\li handle
1942
\li focused
1943
\li \image imagine/images/slider-handle-focused.png
1944
{Slider handle focused asset}
1945
\li
1946
\row
1947
\li
1948
\li handle
1949
\li focused, hovered
1950
\li \image imagine/images/slider-handle-focused-hovered.png
1951
{Slider handle focused hovered asset}
1952
\li
1953
\row
1954
\li
1955
\li handle
1956
\li focused, pressed
1957
\li \image imagine/images/slider-handle-focused-pressed.png
1958
{Slider handle focused pressed asset}
1959
\li
1960
\row
1961
\li
1962
\li handle
1963
\li hovered
1964
\li \image imagine/images/slider-handle-hovered.png
1965
{Slider handle hovered asset}
1966
\li
1967
\row
1968
\li
1969
\li handle
1970
\li pressed
1971
\li \image imagine/images/slider-handle-pressed.png
1972
{Slider handle pressed asset}
1973
\li
1974
\row
1975
\li \l SpinBox
1976
\li background
1977
\li
1978
\li \image imagine/images/spinbox-background.9.png
1979
{SpinBox background asset}
1980
\li
1981
\row
1982
\li
1983
\li background
1984
\li disabled
1985
\li \image imagine/images/spinbox-background-disabled.9.png
1986
{SpinBox background disabled asset}
1987
\li
1988
\row
1989
\li
1990
\li background
1991
\li focused
1992
\li \image imagine/images/spinbox-background-focused.9.png
1993
{SpinBox background focused asset}
1994
\li
1995
\row
1996
\li
1997
\li background
1998
\li editable
1999
\li \image imagine/images/spinbox-background-editable.9.png
2000
{SpinBox background editable asset}
2001
\li
2002
\row
2003
\li
2004
\li indicator
2005
\li up
2006
\li \image imagine/images/spinbox-indicator-up.9.png
2007
{SpinBox indicator up asset}
2008
\li
2009
\row
2010
\li
2011
\li indicator
2012
\li up, disabled
2013
\li \image imagine/images/spinbox-indicator-up-disabled.9.png
2014
{SpinBox indicator up disabled asset}
2015
\li
2016
\row
2017
\li
2018
\li indicator
2019
\li up, pressed
2020
\li \image imagine/images/spinbox-indicator-up-pressed.9.png
2021
{SpinBox indicator up pressed asset}
2022
\li
2023
\row
2024
\li
2025
\li indicator
2026
\li up, focused
2027
\li \image imagine/images/spinbox-indicator-up-focused.9.png
2028
{SpinBox indicator up focused asset}
2029
\li
2030
\row
2031
\li
2032
\li indicator
2033
\li up, mirrored
2034
\li \image imagine/images/spinbox-indicator-up-mirrored.9.png
2035
{SpinBox indicator up mirrored asset}
2036
\li
2037
\row
2038
\li
2039
\li indicator
2040
\li up, hovered
2041
\li \image imagine/images/spinbox-indicator-up-hovered.9.png
2042
{SpinBox indicator up hovered asset}
2043
\li
2044
\row
2045
\li
2046
\li indicator
2047
\li up, editable
2048
\li \image imagine/images/spinbox-indicator-up-editable.9.png
2049
{SpinBox indicator up editable asset}
2050
\li
2051
\row
2052
\li
2053
\li indicator
2054
\li up, editable, pressed
2055
\li \image imagine/images/spinbox-indicator-up-editable-pressed.9.png
2056
{SpinBox indicator up editable pressed asset}
2057
\li
2058
\row
2059
\li
2060
\li indicator
2061
\li up, editable, focused
2062
\li \image imagine/images/spinbox-indicator-up-editable-focused.9.png
2063
{SpinBox indicator up editable focused asset}
2064
\li
2065
\row
2066
\li
2067
\li indicator
2068
\li up, editable, mirrored
2069
\li \image imagine/images/spinbox-indicator-up-editable-mirrored.9.png
2070
{SpinBox indicator up editable mirrored asset}
2071
\li
2072
\row
2073
\li
2074
\li indicator
2075
\li up, editable, hovered
2076
\li \image imagine/images/spinbox-indicator-up-editable-hovered.9.png
2077
{SpinBox indicator up editable hovered asset}
2078
\li
2079
\row
2080
\li
2081
\li indicator
2082
\li down
2083
\li \image imagine/images/spinbox-indicator-down.9.png
2084
{SpinBox indicator down asset}
2085
\li
2086
\row
2087
\li
2088
\li indicator
2089
\li down, disabled
2090
\li \image imagine/images/spinbox-indicator-down-disabled.9.png
2091
{SpinBox indicator down disabled asset}
2092
\li
2093
\row
2094
\li
2095
\li indicator
2096
\li down, pressed
2097
\li \image imagine/images/spinbox-indicator-down-pressed.9.png
2098
{SpinBox indicator down pressed asset}
2099
\li
2100
\row
2101
\li
2102
\li indicator
2103
\li down, focused
2104
\li \image imagine/images/spinbox-indicator-down-focused.9.png
2105
{SpinBox indicator down focused asset}
2106
\li
2107
\row
2108
\li
2109
\li indicator
2110
\li down, mirrored
2111
\li \image imagine/images/spinbox-indicator-down-mirrored.9.png
2112
{SpinBox indicator down mirrored asset}
2113
\li
2114
\row
2115
\li
2116
\li indicator
2117
\li down, hovered
2118
\li \image imagine/images/spinbox-indicator-down-hovered.9.png
2119
{SpinBox indicator down hovered asset}
2120
\li
2121
\row
2122
\li
2123
\li indicator
2124
\li down, editable
2125
\li \image imagine/images/spinbox-indicator-down-editable.9.png
2126
{SpinBox indicator down editable asset}
2127
\li
2128
\row
2129
\li
2130
\li indicator
2131
\li down, editable, pressed
2132
\li \image imagine/images/spinbox-indicator-down-editable-pressed.9.png
2133
{SpinBox indicator down editable pressed asset}
2134
\li
2135
\row
2136
\li
2137
\li indicator
2138
\li down, editable, focused
2139
\li \image imagine/images/spinbox-indicator-down-editable-focused.9.png
2140
{SpinBox indicator down editable focused asset}
2141
\li
2142
\row
2143
\li
2144
\li indicator
2145
\li down, editable, mirrored
2146
\li \image imagine/images/spinbox-indicator-down-editable-mirrored.9.png
2147
{SpinBox indicator down editable mirrored asset}
2148
\li
2149
\row
2150
\li
2151
\li indicator
2152
\li down, editable, hovered
2153
\li \image imagine/images/spinbox-indicator-down-editable-hovered.9.png
2154
{SpinBox indicator down editable hovered asset}
2155
\li
2156
\row
2157
\li \l SwipeDelegate
2158
\li background
2159
\li
2160
\li \image imagine/images/swipedelegate-background.9.png
2161
{SwipeDelegate background asset}
2162
\li
2163
\row
2164
\li
2165
\li background
2166
\li disabled
2167
\li \image imagine/images/swipedelegate-background-disabled.9.png
2168
{SwipeDelegate background disabled asset}
2169
\li
2170
\row
2171
\li
2172
\li background
2173
\li pressed
2174
\li \image imagine/images/swipedelegate-background-pressed.9.png
2175
{SwipeDelegate background pressed asset}
2176
\li
2177
\row
2178
\li
2179
\li background
2180
\li focused
2181
\li \image imagine/images/swipedelegate-background-focused.9.png
2182
{SwipeDelegate background focused asset}
2183
\li
2184
\row
2185
\li
2186
\li background
2187
\li hovered
2188
\li \image imagine/images/swipedelegate-background-hovered.9.png
2189
{SwipeDelegate background hovered asset}
2190
\li
2191
\row
2192
\li \l Switch
2193
\li indicator
2194
\li
2195
\li \image imagine/images/switch-indicator.png
2196
{Switch indicator asset}
2197
\li
2198
\row
2199
\li
2200
\li indicator
2201
\li disabled
2202
\li \image imagine/images/switch-indicator-disabled.png
2203
{Switch indicator disabled asset}
2204
\li
2205
\row
2206
\li
2207
\li indicator
2208
\li pressed
2209
\li \image imagine/images/switch-indicator-pressed.png
2210
{Switch indicator pressed asset}
2211
\li
2212
\row
2213
\li
2214
\li indicator
2215
\li checked
2216
\li \image imagine/images/switch-indicator-checked.png
2217
{Switch indicator checked asset}
2218
\li
2219
\row
2220
\li
2221
\li indicator
2222
\li checked, focused
2223
\li \image imagine/images/switch-indicator-checked-focused.png
2224
{Switch indicator checked focused asset}
2225
\li
2226
\row
2227
\li
2228
\li indicator
2229
\li checked, hovered
2230
\li \image imagine/images/switch-indicator-checked-hovered.png
2231
{Switch indicator checked hovered asset}
2232
\li
2233
\row
2234
\li
2235
\li indicator
2236
\li checked, pressed
2237
\li \image imagine/images/switch-indicator-checked-pressed.png
2238
{Switch indicator checked pressed asset}
2239
\li
2240
\row
2241
\li
2242
\li indicator
2243
\li focused
2244
\li \image imagine/images/switch-indicator-focused.png
2245
{Switch indicator focused asset}
2246
\li
2247
\row
2248
\li
2249
\li indicator
2250
\li hovered
2251
\li \image imagine/images/switch-indicator-hovered.png
2252
{Switch indicator hovered asset}
2253
\li
2254
\row
2255
\li
2256
\li handle
2257
\li
2258
\li \image imagine/images/switch-handle.png
2259
{Switch handle asset}
2260
\li
2261
\row
2262
\li
2263
\li handle
2264
\li disabled
2265
\li \image imagine/images/switch-handle-disabled.png
2266
{Switch handle disabled asset}
2267
\li
2268
\row
2269
\li
2270
\li handle
2271
\li pressed
2272
\li \image imagine/images/switch-handle-pressed.png
2273
{Switch handle pressed asset}
2274
\li
2275
\row
2276
\li \l SwitchDelegate
2277
\li background
2278
\li
2279
\li \image imagine/images/switchdelegate-background.9.png
2280
{SwitchDelegate background asset}
2281
\li
2282
\row
2283
\li
2284
\li background
2285
\li disabled
2286
\li \image imagine/images/switchdelegate-background-disabled.9.png
2287
{SwitchDelegate background disabled asset}
2288
\li
2289
\row
2290
\li
2291
\li background
2292
\li pressed
2293
\li \image imagine/images/switchdelegate-background-pressed.9.png
2294
{SwitchDelegate background pressed asset}
2295
\li
2296
\row
2297
\li
2298
\li background
2299
\li focused
2300
\li \image imagine/images/switchdelegate-background-focused.9.png
2301
{SwitchDelegate background focused asset}
2302
\li
2303
\row
2304
\li
2305
\li background
2306
\li hovered
2307
\li \image imagine/images/switchdelegate-background-hovered.9.png
2308
{SwitchDelegate background hovered asset}
2309
\li
2310
\row
2311
\li
2312
\li indicator
2313
\li
2314
\li \image imagine/images/switchdelegate-indicator.png
2315
{SwitchDelegate indicator asset}
2316
\li
2317
\row
2318
\li
2319
\li indicator
2320
\li disabled
2321
\li \image imagine/images/switchdelegate-indicator-disabled.png
2322
{SwitchDelegate indicator disabled asset}
2323
\li
2324
\row
2325
\li
2326
\li indicator
2327
\li pressed
2328
\li \image imagine/images/switchdelegate-indicator-pressed.png
2329
{SwitchDelegate indicator pressed asset}
2330
\li
2331
\row
2332
\li
2333
\li indicator
2334
\li checked
2335
\li \image imagine/images/switchdelegate-indicator-checked.png
2336
{SwitchDelegate indicator checked asset}
2337
\li
2338
\row
2339
\li
2340
\li indicator
2341
\li checked, focused
2342
\li \image imagine/images/switchdelegate-indicator-checked-focused.png
2343
{SwitchDelegate indicator checked focused asset}
2344
\li
2345
\row
2346
\li
2347
\li indicator
2348
\li checked, hovered
2349
\li \image imagine/images/switchdelegate-indicator-checked-hovered.png
2350
{SwitchDelegate indicator checked hovered asset}
2351
\li
2352
\row
2353
\li
2354
\li indicator
2355
\li checked, pressed
2356
\li \image imagine/images/switchdelegate-indicator-checked-pressed.png
2357
{SwitchDelegate indicator checked pressed asset}
2358
\li
2359
\row
2360
\li
2361
\li indicator
2362
\li focused
2363
\li \image imagine/images/switchdelegate-indicator-focused.png
2364
{SwitchDelegate indicator focused asset}
2365
\li
2366
\row
2367
\li
2368
\li indicator
2369
\li hovered
2370
\li \image imagine/images/switchdelegate-indicator-hovered.png
2371
{SwitchDelegate indicator hovered asset}
2372
\li
2373
\row
2374
\li
2375
\li handle
2376
\li
2377
\li \image imagine/images/switchdelegate-handle.png
2378
{SwitchDelegate handle asset}
2379
\li
2380
\row
2381
\li
2382
\li handle
2383
\li disabled
2384
\li \image imagine/images/switchdelegate-handle-disabled.png
2385
{SwitchDelegate handle disabled asset}
2386
\li
2387
\row
2388
\li \l TabBar
2389
\li background
2390
\li
2391
\li \image imagine/images/tabbar-background.png
2392
{TabBar background asset}
2393
\li
2394
\row
2395
\li \l TabButton
2396
\li background
2397
\li
2398
\li \image imagine/images/tabbutton-background.9.png
2399
{TabButton background asset}
2400
\li
2401
\row
2402
\li
2403
\li background
2404
\li disabled
2405
\li \image imagine/images/tabbutton-background-disabled.9.png
2406
{TabButton background disabled asset}
2407
\li
2408
\row
2409
\li
2410
\li background
2411
\li pressed
2412
\li \image imagine/images/tabbutton-background-pressed.9.png
2413
{TabButton background pressed asset}
2414
\li
2415
\row
2416
\li
2417
\li background
2418
\li checked
2419
\li \image imagine/images/tabbutton-background-checked.9.png
2420
{TabButton background checked asset}
2421
\li
2422
\row
2423
\li
2424
\li background
2425
\li hovered
2426
\li \image imagine/images/tabbutton-background-hovered.9.png
2427
{TabButton background hovered asset}
2428
\li
2429
\row
2430
\li
2431
\li background
2432
\li disabled, checked
2433
\li \image imagine/images/tabbutton-background-disabled-checked.9.png
2434
{TabButton background disabled checked asset}
2435
\li
2436
\row
2437
\li \l TextArea
2438
\li background
2439
\li
2440
\li \image imagine/images/textarea-background.9.png
2441
{TextArea background asset}
2442
\li
2443
\row
2444
\li
2445
\li background
2446
\li disabled
2447
\li \image imagine/images/textarea-background-disabled.9.png
2448
{TextArea background disabled asset}
2449
\li
2450
\row
2451
\li
2452
\li background
2453
\li focused
2454
\li \image imagine/images/textarea-background-focused.9.png
2455
{TextArea background focused asset}
2456
\li
2457
\row
2458
\li \l TextField
2459
\li background
2460
\li
2461
\li \image imagine/images/textfield-background.9.png
2462
{TextField background asset}
2463
\li
2464
\row
2465
\li
2466
\li background
2467
\li disabled
2468
\li \image imagine/images/textfield-background-disabled.9.png
2469
{TextField background disabled asset}
2470
\li
2471
\row
2472
\li
2473
\li background
2474
\li focused
2475
\li \image imagine/images/textfield-background-focused.9.png
2476
{TextField background focused asset}
2477
\li
2478
\row
2479
\li \l ToolBar
2480
\li background
2481
\li
2482
\li \image imagine/images/toolbar-background.png
2483
{ToolBar background asset}
2484
\li
2485
\row
2486
\li \l ToolButton
2487
\li background
2488
\li
2489
\li \image imagine/images/toolbutton-background.9.png
2490
{ToolButton background asset}
2491
\li
2492
\row
2493
\li
2494
\li background
2495
\li disabled, checked
2496
\li \image imagine/images/toolbutton-background-disabled-checked.9.png
2497
{ToolButton background disabled checked asset}
2498
\li
2499
\row
2500
\li
2501
\li background
2502
\li focused
2503
\li \image imagine/images/toolbutton-background-focused.9.png
2504
{ToolButton background focused asset}
2505
\li
2506
\row
2507
\li
2508
\li background
2509
\li pressed
2510
\li \image imagine/images/toolbutton-background-pressed.9.png
2511
{ToolButton background pressed asset}
2512
\li
2513
\row
2514
\li
2515
\li background
2516
\li checked
2517
\li \image imagine/images/toolbutton-background-checked.9.png
2518
{ToolButton background checked asset}
2519
\li
2520
\row
2521
\li
2522
\li background
2523
\li checked, focused
2524
\li \image imagine/images/toolbutton-background-checked-focused.9.png
2525
{ToolButton background checked focused asset}
2526
\li
2527
\row
2528
\li
2529
\li background
2530
\li checked, hovered
2531
\li \image imagine/images/toolbutton-background-checked-hovered.9.png
2532
{ToolButton background checked hovered asset}
2533
\li
2534
\row
2535
\li
2536
\li background
2537
\li hovered
2538
\li \image imagine/images/toolbutton-background-hovered.9.png
2539
{ToolButton background hovered asset}
2540
\li
2541
\row
2542
\li \l ToolSeparator
2543
\li separator
2544
\li horizontal
2545
\li \image imagine/images/toolseparator-separator-horizontal.9.png
2546
{ToolSeparator separator horizontal asset}
2547
\li
2548
\row
2549
\li
2550
\li separator
2551
\li vertical
2552
\li \image imagine/images/toolseparator-separator-vertical.9.png
2553
{ToolSeparator separator vertical asset}
2554
\li
2555
\row
2556
\li \l ToolTip
2557
\li background
2558
\li
2559
\li \image imagine/images/tooltip-background.9.png
2560
{ToolTip background asset}
2561
\li
2562
\endtable
2563
2564
\target sup1
2565
\sup 1 A 1x1 image containing one color, stretched to fill the control.
2566
2567
\section2 9-Patch Images
2568
2569
The Imagine style uses \l
2570
{https://developer.android.com/guide/topics/graphics/2d-graphics.html#nine-patch}{9-patch
2571
images} in order to give designers control over how a particular element
2572
responds to being resized. Here is an example of a 9-patch image that
2573
represents a \l {Button}'s \l {Control::}{background}, alongside a
2574
magnified version (to make it easier to see the 9-patch lines):
2575
2576
\image qtquickcontrols-imagine-9-patch-4x.png
2577
{Button background 9-patch image showing stretch and padding lines}
2578
2579
The content of the image is 44 pixels wide by 32 pixels high. Every 9-patch
2580
image needs a one pixel thick line (collectively referred to as
2581
"9-patch lines") around every side, so the actual size of the image becomes
2582
46 pixels wide by 34 pixels high. Note that the 9-patch lines must be one
2583
pixel thick regardless of the target DPI of the image. For example,
2584
the 9-patch lines for button-background.9.png and button-background@2x.9.png
2585
must both be one pixel thick.
2586
2587
The 9-patch lines must be black, and the remaining areas must be transparent
2588
or white:
2589
2590
\image qtquickcontrols-imagine-9-patch-size.png
2591
{Diagram showing 9-patch line color requirements}
2592
2593
\section3 Stretchable Areas
2594
2595
The 9-patch lines on the top and left edges determine which parts of the
2596
image are stretched when it is resized.
2597
2598
Below are examples of the 9-patch image being resized to one and a half
2599
times its original size in various dimensions:
2600
2601
\image qtquickcontrols-imagine-9-patch-resized-stretchable.png
2602
{Examples of 9-patch image resized showing stretchable areas}
2603
2604
Notice how the the rounded corners keep their original size, as they are
2605
outside the range of the lines.
2606
2607
\section3 Padding Areas
2608
2609
The 9-patch lines on the right and bottom edges determine how much space
2610
is available for the control's \l {Control::}{contentItem}, which means it
2611
can also be thought of as controlling the \l {Control::}{padding}. For a
2612
diagram that illustrates padding, see \l {Control Layout}.
2613
2614
Below are more examples of the 9-patch image being resized, but this time
2615
demonstrating how the padding 9-patch lines work.
2616
2617
\image qtquickcontrols-imagine-9-patch-resized-padding.png
2618
{Examples of 9-patch image resized showing padding areas}
2619
2620
The \c contentItem can take up as much space as it needs within the shaded
2621
areas. If the padding lines are left out, the \c contentItem will take as
2622
much space as it needs without exceeding the stretchable areas.
2623
2624
\section3 Inset Areas
2625
2626
In some cases it is necessary for a control to have a drop shadow, for
2627
example. However, if we were to add a drop shadow to the button above, it
2628
would affect its size, which presents problems for both layouting and
2629
mouse/touch input boundaries.
2630
2631
Inset areas accounts for this by telling the control that a certain area of
2632
the 9-patch image should go outside of the control:
2633
2634
\image qtquickcontrols-imagine-9-patch-inset.png
2635
{Diagram showing 9-patch inset lines for drop shadow}
2636
2637
In the image below, the dashed line represents the button's clickable area,
2638
as well as the space that it will take up in a layout. The shadow is marked
2639
by the striped area behind it:
2640
2641
\image qtquickcontrols-imagine-9-patch-inset-boundaries.png
2642
{Button with drop shadow showing clickable area and insets}
2643
2644
\section3 Exporting 9-Patch Images
2645
2646
Various vector and bitmap editors can be used to create 9-patch images
2647
suitable for use with the Imagine style. The following sections briefly
2648
explain the export process for each editor, and the last section explains
2649
how to ensure the exported images are 9-patch-conformant.
2650
2651
\section4 Affinity Designer
2652
2653
See Affinity's \l {https://affinity.help/publisher/en-US.lproj/pages/Publishing/exportSettings.html}
2654
{Export Settings} documentation.
2655
2656
\section4 Adobe Illustrator
2657
2658
See Adobe's
2659
\l {https://helpx.adobe.com/in/illustrator/using/collect-assets-export-for-screens.html#panel}
2660
{Asset Export panel} documentation.
2661
2662
\section4 Adobe Photoshop
2663
2664
See Adobe's
2665
\l {https://helpx.adobe.com/photoshop/using/generate-assets-layers.html}
2666
{Generate image assets from layers} documentation.
2667
2668
\section4 Inkscape
2669
2670
The \l {https://github.com/mitchcurtis/inkscape-9-patch-export}
2671
{Inkscape 9-Patch Export Extension} can be used to export assets with
2672
Inkscape.
2673
2674
\section4 Sketch
2675
2676
See Sketch's \l {https://sketchapp.com/docs/exporting/}{Exporting} documentation.
2677
2678
Qt Quick Controls also provides a
2679
\l {http://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/quickcontrols/imagine/design}
2680
{plugin} for Sketch that automatically fixes the thickness of the 9-patch lines
2681
after the assets are exported. To install this file, double-click on it.
2682
Once Sketch has confirmed that the 9-patch export plugin has been installed,
2683
the plugin will automatically process images when they are exported.
2684
2685
\section4 Fixing 9-Patch Lines
2686
2687
When exporting 9-patch images in several DPI variants (\c {@2x}, \c {@3x},
2688
etc.), the 9-patch lines will typically be scaled up along with the image.
2689
There are several ways to fix this, but perhaps the simplest approach is
2690
to use \l {https://www.imagemagick.org/script/mogrify.php}{ImageMagick's mogrify}
2691
tool. The tool has a \c -shave feature that can be used to crop the image
2692
to reduce the thickness of the 9-patch lines:
2693
2694
\badcode
2695
mogrify -shave 1x1 -path path/to/images *@2x.9.png
2696
mogrify -shave 2x2 -path path/to/images *@3x.9.png
2697
mogrify -shave 3x3 -path path/to/images *@4x.9.png
2698
\endcode
2699
2700
Regular DPI images (those without the \c @Nx prefix) are not affected, so it
2701
is only necessary to run the command on images intended for high DPI displays.
2702
2703
\section2 Animated Images
2704
2705
The \l {https://developers.google.com/speed/webp/}{WebP} and GIF animated
2706
image formats are supported by the Imagine style.
2707
2708
\section2 Customization
2709
2710
\section3 Path
2711
2712
The Imagine style allows customizing the \l {imagine-path-attached-prop}{path}
2713
that is used to do the image asset selection. The path can be specified for any
2714
window or item, and it automatically propagates to children in the same manner as
2715
\l {Control::font}{fonts}. In the following example, the window and all three radio
2716
buttons appear with dark image assets (files that are located in "qrc:/themes/dark").
2717
2718
\table
2719
\row
2720
\li
2721
\qml
2722
import QtQuick
2723
import QtQuick.Controls
2724
import QtQuick.Controls.Imagine
2725
2726
ApplicationWindow {
2727
visible: true
2728
2729
Imagine.path: "qrc:/themes/dark"
2730
2731
Column {
2732
anchors.centerIn: parent
2733
2734
RadioButton { text: qsTr("Small") }
2735
RadioButton { text: qsTr("Medium"); checked: true }
2736
RadioButton { text: qsTr("Large") }
2737
}
2738
}
2739
\endqml
2740
\li
2741
\image qtquickcontrols-imagine-customization-dark.png
2742
{Small, Medium, Large radio buttons in Imagine dark
2743
theme}
2744
\endtable
2745
2746
In addition to specifying the path in QML, it is also possible to specify
2747
it via an \l {imagine-customization-environment-variable}{environment variable}
2748
or in a \l {imagine-customization-configuration-file}{configuration file}.
2749
Attributes specified in QML take precedence over all other methods.
2750
2751
\section4 Configuration File
2752
\target imagine-customization-configuration-file
2753
2754
\include qquickimaginestyle.qdocinc conf
2755
2756
See \l {Qt Quick Controls Configuration File} for more details about the
2757
configuration file.
2758
2759
\section4 Environment Variables
2760
\target imagine-customization-environment-variable
2761
2762
\include qquickimaginestyle.qdocinc env
2763
2764
See \l {Supported Environment Variables in Qt Quick Controls} for the full
2765
list of supported environment variables.
2766
2767
\section3 Palette
2768
2769
The Imagine style supports palette customization via the \l {Item::}{palette}
2770
property and the \l {Palette Configuration}{qtquickcontrols2.conf} file.
2771
As with other styles, the exact \l[QML]{Palette}{palette roles}
2772
that the Imagine style uses are style-dependent. However, as most of the visual
2773
appearance of controls (for example: backgrounds) are managed through image assets,
2774
only the roles that are typically used for text will have an effect.
2775
2776
\section3 Font
2777
2778
Custom fonts can be set via the \l {Control::}{font} property and the
2779
\l {Font Configuration}{configuration} file.
2780
2781
\section2 Dependency
2782
2783
The Imagine style must be separately imported to gain access to the
2784
attributes that are specific to the Imagine style. It should be noted
2785
that regardless of the references to the Imagine style, the same
2786
application code runs with any other style. Imagine-specific attributes
2787
only have an effect when the application is run with the Imagine style.
2788
2789
If the Imagine style is imported in a QML file that is always loaded, the
2790
Imagine style must be deployed with the application in order to be able
2791
to run the application regardless of which style the application is run with.
2792
By using \l {Using File Selectors with Qt Quick Controls}{file selectors},
2793
style-specific tweaks can be applied without creating a hard dependency to
2794
a style.
2795
2796
\b {See also} \l {Styling Qt Quick Controls}
2797
2798
\section1 Attached Property Documentation
2799
2800
\styleproperty {Imagine.path} {string}
2801
\target imagine-path-attached-prop
2802
This attached property holds the path to the image assets...
2803
2804
\code
2805
Button {
2806
Imagine.path: "qrc:/themes/dark"
2807
}
2808
\endcode
2809
2810
\endstyleproperty
2811
2812
\section1 Related Information
2813
2814
\list
2815
\li \l{Styling Qt Quick Controls}
2816
\li \l{Qt Quick Controls - Imagine Style Example: Automotive}{Automotive Example}
2817
\endlist
2818
*/
qtdeclarative
src
quickcontrols
doc
src
qtquickcontrols-imagine.qdoc
Generated on
for Qt by
1.16.1