|
1 | 1 | using Gtk 4.0; |
2 | 2 |
|
3 | | -template $GradiaDrawingToolsGroup : Box { |
| 3 | +template $GradiaDrawingToolsGroup: Box { |
4 | 4 | orientation: vertical; |
5 | 5 |
|
6 | 6 | Text { |
7 | 7 | text: _("Annotation Tools"); |
8 | | - margin-bottom:12; |
9 | | - sensitive:false; |
10 | | - |
11 | | - styles ["heading", "h4"] |
| 8 | + margin-bottom: 12; |
| 9 | + sensitive: false; |
12 | 10 |
|
| 11 | + styles [ |
| 12 | + "heading", |
| 13 | + "h4", |
| 14 | + ] |
13 | 15 | } |
14 | 16 |
|
15 | 17 | $GradiaDrawingToolsGrid drawing_tools_grid { |
16 | 18 | tool-changed => $on_tool_changed(); |
17 | 19 | } |
18 | 20 |
|
19 | 21 | $GradiaQuickColorPicker color_picker { |
20 | | - margin-top:6; |
| 22 | + margin-top: 6; |
21 | 23 | color-changed => $on_primary_color_changed(); |
22 | 24 | } |
23 | 25 |
|
24 | 26 | Scale size_scale { |
25 | | - orientation: horizontal; |
26 | | - margin-bottom: 6; |
27 | | - margin-top: 6; |
28 | | - adjustment: Adjustment { |
29 | | - value-changed => $on_size_scale_changed(); |
30 | | - lower: 3; |
31 | | - upper: 25; |
32 | | - value: 14; |
33 | | - step-increment: 2; |
34 | | - }; |
| 27 | + orientation: horizontal; |
| 28 | + margin-bottom: 6; |
| 29 | + margin-top: 6; |
| 30 | + |
| 31 | + adjustment: Adjustment { |
| 32 | + value-changed => $on_size_scale_changed(); |
| 33 | + lower: 3; |
| 34 | + upper: 25; |
| 35 | + value: 14; |
| 36 | + step-increment: 2; |
| 37 | + }; |
35 | 38 | } |
| 39 | + |
36 | 40 | Revealer extra_stack_revealer { |
37 | 41 | reveal-child: true; |
38 | 42 | transition-type: slide_up; |
39 | 43 | transition-duration: 200; |
40 | | - margin-bottom:6; |
| 44 | + margin-bottom: 6; |
41 | 45 | valign: start; |
| 46 | + |
42 | 47 | child: Stack extra_stack { |
43 | 48 | transition-type: crossfade; |
44 | 49 | transition-duration: 200; |
45 | 50 |
|
46 | 51 | StackPage { |
47 | | - name: "empty"; |
48 | | - child: Box { |
49 | | - visible: true; |
50 | | - }; |
| 52 | + name: "empty"; |
| 53 | + |
| 54 | + child: Box { |
| 55 | + visible: true; |
| 56 | + }; |
51 | 57 | } |
52 | 58 |
|
53 | 59 | StackPage { |
54 | | - name: "fill"; |
55 | | - child:Box { |
56 | | - spacing: 6; |
57 | | - homogeneous: true; |
58 | | - |
59 | | - $GradiaSimpleColorPicker fill_0 { |
60 | | - icon-name: "fill-symbolic"; |
61 | | - text: _("Fill"); |
62 | | - hexpand: true; |
63 | | - color-changed => $on_fill_color_changed(); |
64 | | - } |
65 | | - }; |
| 60 | + name: "fill"; |
| 61 | + |
| 62 | + child: Box { |
| 63 | + spacing: 6; |
| 64 | + homogeneous: true; |
| 65 | + |
| 66 | + $GradiaSimpleColorPicker fill_0 { |
| 67 | + icon-name: "fill-symbolic"; |
| 68 | + text: _("Fill"); |
| 69 | + hexpand: true; |
| 70 | + color-changed => $on_fill_color_changed(); |
| 71 | + } |
| 72 | + }; |
66 | 73 | } |
67 | 74 |
|
68 | 75 | StackPage { |
69 | | - name: "fill-border"; |
70 | | - child:Box { |
71 | | - spacing: 6; |
72 | | - homogeneous: true; |
73 | | - |
74 | | - $GradiaSimpleColorPicker fill_1 { |
75 | | - icon-name: "fill-symbolic"; |
76 | | - text: _("Fill"); |
77 | | - hexpand: true; |
78 | | - color-changed => $on_fill_color_changed(); |
79 | | - } |
80 | | - |
81 | | - $GradiaSimpleColorPicker outline_1 { |
82 | | - icon-name: "outline-color-symbolic"; |
83 | | - text: _("Border"); |
84 | | - hexpand: true; |
85 | | - color-changed => $on_outline_color_changed(); |
86 | | - } |
87 | | - }; |
| 76 | + name: "fill-border"; |
| 77 | + |
| 78 | + child: Box { |
| 79 | + spacing: 6; |
| 80 | + homogeneous: true; |
| 81 | + |
| 82 | + $GradiaSimpleColorPicker fill_1 { |
| 83 | + icon-name: "fill-symbolic"; |
| 84 | + text: _("Fill"); |
| 85 | + hexpand: true; |
| 86 | + color-changed => $on_fill_color_changed(); |
| 87 | + } |
| 88 | + |
| 89 | + $GradiaSimpleColorPicker outline_1 { |
| 90 | + icon-name: "outline-color-symbolic"; |
| 91 | + text: _("Border"); |
| 92 | + hexpand: true; |
| 93 | + color-changed => $on_outline_color_changed(); |
| 94 | + } |
| 95 | + }; |
88 | 96 | } |
89 | 97 |
|
90 | 98 | StackPage { |
91 | | - name: "text"; |
92 | | - child: Box { |
93 | | - spacing: 6; |
94 | | - |
95 | | - $GradiaSimpleColorPicker fill_2 { |
96 | | - icon-name: "fill-symbolic"; |
97 | | - hexpand: true; |
98 | | - color-changed => $on_fill_color_changed(); |
99 | | - tooltip-text: _("Fill Color Picker"); |
100 | | - } |
101 | | - |
102 | | - $GradiaSimpleColorPicker outline_2 { |
103 | | - icon-name: "outline-color-symbolic"; |
104 | | - hexpand: true; |
105 | | - color-changed => $on_outline_color_changed(); |
106 | | - tooltip-text: _("Outline Color Picker"); |
107 | | - } |
108 | | - |
109 | | - $GradiaFontDropdown font_dropdown { |
110 | | - width-request:160; |
111 | | - font-changed => $on_font_changed(); |
112 | | - } |
113 | | - }; |
| 99 | + name: "text"; |
| 100 | + |
| 101 | + child: Box { |
| 102 | + spacing: 6; |
| 103 | + |
| 104 | + $GradiaSimpleColorPicker fill_2 { |
| 105 | + icon-name: "fill-symbolic"; |
| 106 | + hexpand: true; |
| 107 | + color-changed => $on_fill_color_changed(); |
| 108 | + tooltip-text: _("Fill Color Picker"); |
| 109 | + } |
| 110 | + |
| 111 | + $GradiaSimpleColorPicker outline_2 { |
| 112 | + icon-name: "outline-color-symbolic"; |
| 113 | + hexpand: true; |
| 114 | + color-changed => $on_outline_color_changed(); |
| 115 | + tooltip-text: _("Outline Color Picker"); |
| 116 | + } |
| 117 | + |
| 118 | + $GradiaFontDropdown font_dropdown { |
| 119 | + width-request: 160; |
| 120 | + font-changed => $on_font_changed(); |
| 121 | + } |
| 122 | + }; |
114 | 123 | } |
115 | 124 | }; |
116 | 125 | } |
117 | 126 | } |
| 127 | + |
0 commit comments