You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: _("Display images at their natural sizes");
7
+
8
+
child: Box {
9
+
orientation: vertical;
10
+
spacing: 12;
11
+
margin-end: 24;
12
+
margin-start: 24;
13
+
14
+
StackSwitcher {
15
+
stack: stack;
16
+
halign: center;
17
+
}
18
+
19
+
Stack stack {
20
+
21
+
StackPage {
22
+
title: _("Fill");
23
+
24
+
child: Box {
25
+
spacing: 12;
26
+
orientation: vertical;
27
+
28
+
Picture picture_fill {
29
+
halign: center;
30
+
valign: center;
31
+
can-shrink: true;
32
+
content-fit: fill;
33
+
}
34
+
35
+
Label {
36
+
label: _("Make the content fill the entire allocation, without taking its aspect ratio in consideration. The resulting content will appear as stretched if its aspect ratio is different from the allocation aspect ratio.");
37
+
wrap: true;
38
+
margin-bottom: 24;
39
+
}
40
+
};
41
+
}
42
+
43
+
StackPage {
44
+
title: _("Contain");
45
+
46
+
child: Box {
47
+
spacing: 12;
48
+
orientation: vertical;
49
+
Picture picture_contain {
50
+
halign: center;
51
+
valign: center;
52
+
can-shrink: true;
53
+
content-fit: contain;
54
+
}
55
+
56
+
Label {
57
+
label: _("Scale the content to fit the allocation, while taking its aspect ratio in consideration. The resulting content will appear as letterboxed if its aspect ratio is different from the allocation aspect ratio.");
58
+
wrap: true;
59
+
margin-bottom: 24;
60
+
}
61
+
};
62
+
}
63
+
64
+
StackPage {
65
+
title: _("Cover");
66
+
67
+
child: Box {
68
+
spacing: 12;
69
+
orientation: vertical;
70
+
Picture picture_cover {
71
+
halign: center;
72
+
valign: center;
73
+
can-shrink: true;
74
+
content-fit: cover;
75
+
}
76
+
77
+
Label {
78
+
label: _("Cover the entire allocation, while taking the content aspect ratio in consideration. The resulting content will appear as clipped if its aspect ratio is different from the allocation aspect ratio.");
79
+
wrap: true;
80
+
margin-bottom: 24;
81
+
}
82
+
};
83
+
}
84
+
85
+
StackPage {
86
+
title: _("Scale Down");
87
+
88
+
child: Box {
89
+
spacing: 12;
90
+
orientation: vertical;
91
+
Picture picture_scale_down {
92
+
halign: center;
93
+
valign: center;
94
+
can-shrink: true;
95
+
content-fit: scale_down;
96
+
}
97
+
98
+
Label {
99
+
label: _("The content is scaled down to fit the allocation, if needed, otherwise its original size is used.");
0 commit comments