forked from qarmin/czkawka
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathabout.slint
More file actions
73 lines (63 loc) · 2.03 KB
/
about.slint
File metadata and controls
73 lines (63 loc) · 2.03 KB
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
import { Button } from "std-widgets.slint";
import { Callabler } from "callabler.slint";
import { Translations } from "translations.slint";
import { FontSizes } from "fonts.slint";
export component About inherits VerticalLayout {
preferred-height: 300px;
preferred-width: 400px;
img := Image {
source: @image-url("../icons/krokiet_logo_flag_name_vertical.png"); // TODO simplify svg, to be able to use here svg version with text
image-fit: ImageFit.contain;
}
Text {
text: "11.0.1";
horizontal-alignment: center;
font-size: max(min(img.width / 20, FontSizes.header), FontSizes.small);
}
VerticalLayout {
spacing: 10px;
padding-bottom: 10px;
Text {
text: "2020 - 2026 Rafał Mikrut(qarmin)";
horizontal-alignment: center;
font-size: FontSizes.header;
}
Text {
text <=> Translations.motto_text;
horizontal-alignment: center;
font-size: FontSizes.normal;
}
Text {
text <=> Translations.unicorn_text;
horizontal-alignment: center;
font-size: FontSizes.normal;
}
}
HorizontalLayout {
spacing: 5px;
Button {
text <=> Translations.repository_text;
clicked => {
Callabler.open_link("https://github.com/qarmin/czkawka");
}
}
Button {
text <=> Translations.instruction_text;
clicked => {
Callabler.open_link("https://github.com/qarmin/czkawka/blob/master/instructions/Instruction.md");
}
}
Button {
text <=> Translations.donation_text;
clicked => {
Callabler.open_link("https://github.com/sponsors/qarmin");
}
}
Button {
text <=> Translations.translation_text;
clicked => {
Callabler.open_link("https://crowdin.com/project/czkawka");
}
}
}
}