Skip to content

Commit fb96a82

Browse files
committed
starting toolbar, it looks bad
1 parent 3acf3e1 commit fb96a82

File tree

1 file changed

+57
-13
lines changed

1 file changed

+57
-13
lines changed

src/window.blp

Lines changed: 57 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,69 @@
11
using Gtk 4.0;
2+
using Gio 2.0;
23

34
template $ShutterWindow: ApplicationWindow {
45
default-width: 600;
56
default-height: 300;
67

7-
child: Box {
8+
Box {
89
orientation: vertical;
910

1011
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");
1364
}
1465

66+
1567
styles [
1668
"toolbar",
1769
]
@@ -21,7 +73,7 @@ template $ShutterWindow: ApplicationWindow {
2173
vexpand: true;
2274

2375
Label {
24-
label: "Hello";
76+
label: "Hello World";
2577
}
2678
[tab]
2779
Label {
@@ -31,7 +83,7 @@ template $ShutterWindow: ApplicationWindow {
3183
Box{
3284
orientation: vertical;
3385
Label {
34-
label: "World";
86+
label: "First line";
3587
}
3688
Label {
3789
label: "Second line";
@@ -49,12 +101,4 @@ template $ShutterWindow: ApplicationWindow {
49101
}
50102
}
51103
}
52-
53-
/* child: Label label {
54-
label: "Hello, World!";
55-
56-
styles [
57-
"title-1",
58-
]
59-
}*/;
60104
}

0 commit comments

Comments
 (0)