File tree 1 file changed +57
-13
lines changed
1 file changed +57
-13
lines changed Original file line number Diff line number Diff line change 1
1
using Gtk 4.0;
2
+ using Gio 2.0;
2
3
3
4
template $ShutterWindow: ApplicationWindow {
4
5
default-width: 600;
5
6
default-height: 300;
6
7
7
- child: Box {
8
+ Box {
8
9
orientation: vertical;
9
10
10
11
Box {
11
- Label {
12
- label: "Hello";
12
+ Button {
13
+ tooltip-text: _("Redo last screenshot");
14
+ icon-name: "view-refresh";
15
+ }
16
+ Separator {}
17
+ Button {
18
+ tooltip-text: _("Draw a rectangular capture area with your mouse\nto select a specified screen area");
19
+ Box {
20
+ Image {
21
+ gicon: Gio.ThemedIcon {
22
+ name: "select-rectangular";
23
+ };
24
+ }
25
+ Label {
26
+ label: _("Selection");
27
+ }
28
+ }
29
+ }
30
+ Button {
31
+ tooltip-text: _("Take a screenshot of your whole desktop");
32
+ Box {
33
+ Image {
34
+ gicon: Gio.ThemedIcon {
35
+ name: "desktop";
36
+ };
37
+ }
38
+ Label {
39
+ label: _("Desktop");
40
+ }
41
+ }
42
+ }
43
+ MenuButton {
44
+ tooltip-text: _("Capture a specific workspace");
45
+ }
46
+ Button {
47
+ tooltip-text: _("Select a window with your mouse");
48
+ Box {
49
+ Image {
50
+ gicon: Gio.FileIcon {
51
+ file: "resource:///org/shutter-project/Shutter/icons/sel_window.svg";
52
+ };
53
+ }
54
+ Label {
55
+ label: _("Window");
56
+ }
57
+ }
58
+ }
59
+ MenuButton {
60
+ tooltip-text: _("Take a screenshot of a specific window");
61
+ }
62
+ Button {
63
+ tooltip-text: _("Select a single menu or cascading menus from any application");
13
64
}
14
65
66
+
15
67
styles [
16
68
"toolbar",
17
69
]
@@ -21,7 +73,7 @@ template $ShutterWindow: ApplicationWindow {
21
73
vexpand: true;
22
74
23
75
Label {
24
- label: "Hello";
76
+ label: "Hello World ";
25
77
}
26
78
[tab]
27
79
Label {
@@ -31,7 +83,7 @@ template $ShutterWindow: ApplicationWindow {
31
83
Box{
32
84
orientation: vertical;
33
85
Label {
34
- label: "World ";
86
+ label: "First line ";
35
87
}
36
88
Label {
37
89
label: "Second line";
@@ -49,12 +101,4 @@ template $ShutterWindow: ApplicationWindow {
49
101
}
50
102
}
51
103
}
52
-
53
- /* child: Label label {
54
- label: "Hello, World!";
55
-
56
- styles [
57
- "title-1",
58
- ]
59
- }*/;
60
104
}
You can’t perform that action at this time.
0 commit comments