diff options
Diffstat (limited to 'resources/ui')
-rw-r--r-- | resources/ui/message-sent.ui | 59 | ||||
-rw-r--r-- | resources/ui/message-status.ui | 106 | ||||
-rw-r--r-- | resources/ui/message.ui | 58 | ||||
-rw-r--r-- | resources/ui/message_content.ui | 187 | ||||
-rw-r--r-- | resources/ui/send_file.ui | 1 |
5 files changed, 226 insertions, 185 deletions
diff --git a/resources/ui/message-sent.ui b/resources/ui/message-sent.ui index 25ac52c..6e939ea 100644 --- a/resources/ui/message-sent.ui +++ b/resources/ui/message-sent.ui | |||
@@ -50,68 +50,13 @@ Author: Tobias Frisch | |||
50 | <property name="label-xalign">0</property> | 50 | <property name="label-xalign">0</property> |
51 | <property name="shadow-type">none</property> | 51 | <property name="shadow-type">none</property> |
52 | <child> | 52 | <child> |
53 | <object class="GtkBox"> | 53 | <object class="GtkBox" id="content_box"> |
54 | <property name="visible">True</property> | 54 | <property name="visible">True</property> |
55 | <property name="can-focus">False</property> | 55 | <property name="can-focus">False</property> |
56 | <property name="orientation">vertical</property> | 56 | <property name="orientation">vertical</property> |
57 | <property name="spacing">4</property> | ||
58 | <child> | 57 | <child> |
59 | <object class="GtkLabel" id="text_label"> | 58 | <placeholder/> |
60 | <property name="visible">True</property> | ||
61 | <property name="can-focus">False</property> | ||
62 | <property name="wrap">True</property> | ||
63 | <property name="max-width-chars">64</property> | ||
64 | <property name="xalign">0</property> | ||
65 | </object> | ||
66 | <packing> | ||
67 | <property name="expand">True</property> | ||
68 | <property name="fill">True</property> | ||
69 | <property name="position">0</property> | ||
70 | </packing> | ||
71 | </child> | 59 | </child> |
72 | <child> | ||
73 | <object class="GtkBox"> | ||
74 | <property name="visible">True</property> | ||
75 | <property name="can-focus">False</property> | ||
76 | <property name="spacing">4</property> | ||
77 | <child> | ||
78 | <object class="GtkImage" id="read_receipt_image"> | ||
79 | <property name="visible">True</property> | ||
80 | <property name="can-focus">False</property> | ||
81 | <property name="icon-name">emblem-default-symbolic</property> | ||
82 | </object> | ||
83 | <packing> | ||
84 | <property name="expand">False</property> | ||
85 | <property name="fill">True</property> | ||
86 | <property name="pack-type">end</property> | ||
87 | <property name="position">0</property> | ||
88 | </packing> | ||
89 | </child> | ||
90 | <child> | ||
91 | <object class="GtkLabel" id="timestamp_label"> | ||
92 | <property name="visible">True</property> | ||
93 | <property name="can-focus">False</property> | ||
94 | <attributes> | ||
95 | <attribute name="weight" value="light"/> | ||
96 | </attributes> | ||
97 | </object> | ||
98 | <packing> | ||
99 | <property name="expand">False</property> | ||
100 | <property name="fill">True</property> | ||
101 | <property name="pack-type">end</property> | ||
102 | <property name="position">1</property> | ||
103 | </packing> | ||
104 | </child> | ||
105 | </object> | ||
106 | <packing> | ||
107 | <property name="expand">False</property> | ||
108 | <property name="fill">True</property> | ||
109 | <property name="position">1</property> | ||
110 | </packing> | ||
111 | </child> | ||
112 | <style> | ||
113 | <class name="message-content"/> | ||
114 | </style> | ||
115 | </object> | 60 | </object> |
116 | </child> | 61 | </child> |
117 | <child type="label"> | 62 | <child type="label"> |
diff --git a/resources/ui/message-status.ui b/resources/ui/message-status.ui index fb2057e..8536162 100644 --- a/resources/ui/message-status.ui +++ b/resources/ui/message-status.ui | |||
@@ -39,15 +39,23 @@ Author: Tobias Frisch | |||
39 | <property name="can-focus">False</property> | 39 | <property name="can-focus">False</property> |
40 | <property name="spacing">8</property> | 40 | <property name="spacing">8</property> |
41 | <child> | 41 | <child> |
42 | <object class="GtkButton" id="deny_button"> | 42 | <object class="GtkRevealer" id="deny_revealer"> |
43 | <property name="can-focus">True</property> | 43 | <property name="visible">True</property> |
44 | <property name="receives-default">True</property> | 44 | <property name="can-focus">False</property> |
45 | <property name="relief">none</property> | 45 | <property name="transition-type">slide-left</property> |
46 | <property name="reveal-child">True</property> | ||
46 | <child> | 47 | <child> |
47 | <object class="GtkImage"> | 48 | <object class="GtkButton" id="deny_button"> |
48 | <property name="visible">True</property> | 49 | <property name="can-focus">True</property> |
49 | <property name="can-focus">False</property> | 50 | <property name="receives-default">True</property> |
50 | <property name="icon-name">edit-delete-symbolic</property> | 51 | <property name="relief">none</property> |
52 | <child> | ||
53 | <object class="GtkImage"> | ||
54 | <property name="visible">True</property> | ||
55 | <property name="can-focus">False</property> | ||
56 | <property name="icon-name">edit-delete-symbolic</property> | ||
57 | </object> | ||
58 | </child> | ||
51 | </object> | 59 | </object> |
52 | </child> | 60 | </child> |
53 | </object> | 61 | </object> |
@@ -58,65 +66,12 @@ Author: Tobias Frisch | |||
58 | </packing> | 66 | </packing> |
59 | </child> | 67 | </child> |
60 | <child> | 68 | <child> |
61 | <object class="GtkBox"> | 69 | <object class="GtkBox" id="content_box"> |
62 | <property name="visible">True</property> | 70 | <property name="visible">True</property> |
63 | <property name="can-focus">False</property> | 71 | <property name="can-focus">False</property> |
64 | <property name="orientation">vertical</property> | 72 | <property name="orientation">vertical</property> |
65 | <child> | 73 | <child> |
66 | <object class="GtkLabel" id="text_label"> | 74 | <placeholder/> |
67 | <property name="visible">True</property> | ||
68 | <property name="can-focus">False</property> | ||
69 | <property name="justify">center</property> | ||
70 | <property name="wrap">True</property> | ||
71 | <property name="xalign">0.5</property> | ||
72 | </object> | ||
73 | <packing> | ||
74 | <property name="expand">True</property> | ||
75 | <property name="fill">True</property> | ||
76 | <property name="position">0</property> | ||
77 | </packing> | ||
78 | </child> | ||
79 | <child> | ||
80 | <object class="GtkBox"> | ||
81 | <property name="visible">True</property> | ||
82 | <property name="can-focus">False</property> | ||
83 | <property name="spacing">4</property> | ||
84 | <child> | ||
85 | <object class="GtkImage" id="read_receipt_image"> | ||
86 | <property name="can-focus">False</property> | ||
87 | <property name="xalign">1</property> | ||
88 | <property name="icon-name">emblem-default-symbolic</property> | ||
89 | </object> | ||
90 | <packing> | ||
91 | <property name="expand">False</property> | ||
92 | <property name="fill">True</property> | ||
93 | <property name="pack-type">end</property> | ||
94 | <property name="position">0</property> | ||
95 | </packing> | ||
96 | </child> | ||
97 | <child> | ||
98 | <object class="GtkLabel" id="timestamp_label"> | ||
99 | <property name="can-focus">False</property> | ||
100 | <property name="justify">right</property> | ||
101 | <property name="xalign">1</property> | ||
102 | <attributes> | ||
103 | <attribute name="weight" value="light"/> | ||
104 | </attributes> | ||
105 | </object> | ||
106 | <packing> | ||
107 | <property name="expand">False</property> | ||
108 | <property name="fill">True</property> | ||
109 | <property name="pack-type">end</property> | ||
110 | <property name="position">1</property> | ||
111 | </packing> | ||
112 | </child> | ||
113 | </object> | ||
114 | <packing> | ||
115 | <property name="expand">False</property> | ||
116 | <property name="fill">True</property> | ||
117 | <property name="pack-type">end</property> | ||
118 | <property name="position">1</property> | ||
119 | </packing> | ||
120 | </child> | 75 | </child> |
121 | </object> | 76 | </object> |
122 | <packing> | 77 | <packing> |
@@ -126,22 +81,29 @@ Author: Tobias Frisch | |||
126 | </packing> | 81 | </packing> |
127 | </child> | 82 | </child> |
128 | <child> | 83 | <child> |
129 | <object class="GtkButton" id="accept_button"> | 84 | <object class="GtkRevealer" id="accept_revealer"> |
130 | <property name="can-focus">True</property> | 85 | <property name="visible">True</property> |
131 | <property name="receives-default">True</property> | 86 | <property name="can-focus">False</property> |
132 | <property name="relief">none</property> | 87 | <property name="transition-type">slide-right</property> |
88 | <property name="reveal-child">True</property> | ||
133 | <child> | 89 | <child> |
134 | <object class="GtkImage"> | 90 | <object class="GtkButton" id="accept_button"> |
135 | <property name="visible">True</property> | 91 | <property name="can-focus">True</property> |
136 | <property name="can-focus">False</property> | 92 | <property name="receives-default">True</property> |
137 | <property name="icon-name">emblem-ok-symbolic</property> | 93 | <property name="relief">none</property> |
94 | <child> | ||
95 | <object class="GtkImage"> | ||
96 | <property name="visible">True</property> | ||
97 | <property name="can-focus">False</property> | ||
98 | <property name="icon-name">emblem-ok-symbolic</property> | ||
99 | </object> | ||
100 | </child> | ||
138 | </object> | 101 | </object> |
139 | </child> | 102 | </child> |
140 | </object> | 103 | </object> |
141 | <packing> | 104 | <packing> |
142 | <property name="expand">False</property> | 105 | <property name="expand">False</property> |
143 | <property name="fill">True</property> | 106 | <property name="fill">True</property> |
144 | <property name="pack-type">end</property> | ||
145 | <property name="position">2</property> | 107 | <property name="position">2</property> |
146 | </packing> | 108 | </packing> |
147 | </child> | 109 | </child> |
diff --git a/resources/ui/message.ui b/resources/ui/message.ui index 42bde4d..9e501c8 100644 --- a/resources/ui/message.ui +++ b/resources/ui/message.ui | |||
@@ -49,67 +49,13 @@ Author: Tobias Frisch | |||
49 | <property name="label-xalign">0</property> | 49 | <property name="label-xalign">0</property> |
50 | <property name="shadow-type">none</property> | 50 | <property name="shadow-type">none</property> |
51 | <child> | 51 | <child> |
52 | <object class="GtkBox"> | 52 | <object class="GtkBox" id="content_box"> |
53 | <property name="visible">True</property> | 53 | <property name="visible">True</property> |
54 | <property name="can-focus">False</property> | 54 | <property name="can-focus">False</property> |
55 | <property name="orientation">vertical</property> | 55 | <property name="orientation">vertical</property> |
56 | <property name="spacing">4</property> | ||
57 | <child> | 56 | <child> |
58 | <object class="GtkLabel" id="text_label"> | 57 | <placeholder/> |
59 | <property name="visible">True</property> | ||
60 | <property name="can-focus">False</property> | ||
61 | <property name="wrap">True</property> | ||
62 | <property name="max-width-chars">64</property> | ||
63 | <property name="xalign">0</property> | ||
64 | </object> | ||
65 | <packing> | ||
66 | <property name="expand">True</property> | ||
67 | <property name="fill">True</property> | ||
68 | <property name="position">0</property> | ||
69 | </packing> | ||
70 | </child> | 58 | </child> |
71 | <child> | ||
72 | <object class="GtkBox"> | ||
73 | <property name="visible">True</property> | ||
74 | <property name="can-focus">False</property> | ||
75 | <property name="spacing">4</property> | ||
76 | <child> | ||
77 | <object class="GtkImage" id="read_receipt_image"> | ||
78 | <property name="can-focus">False</property> | ||
79 | <property name="icon-name">emblem-default-symbolic</property> | ||
80 | </object> | ||
81 | <packing> | ||
82 | <property name="expand">False</property> | ||
83 | <property name="fill">True</property> | ||
84 | <property name="pack-type">end</property> | ||
85 | <property name="position">0</property> | ||
86 | </packing> | ||
87 | </child> | ||
88 | <child> | ||
89 | <object class="GtkLabel" id="timestamp_label"> | ||
90 | <property name="visible">True</property> | ||
91 | <property name="can-focus">False</property> | ||
92 | <attributes> | ||
93 | <attribute name="weight" value="light"/> | ||
94 | </attributes> | ||
95 | </object> | ||
96 | <packing> | ||
97 | <property name="expand">False</property> | ||
98 | <property name="fill">True</property> | ||
99 | <property name="pack-type">end</property> | ||
100 | <property name="position">1</property> | ||
101 | </packing> | ||
102 | </child> | ||
103 | </object> | ||
104 | <packing> | ||
105 | <property name="expand">False</property> | ||
106 | <property name="fill">True</property> | ||
107 | <property name="position">1</property> | ||
108 | </packing> | ||
109 | </child> | ||
110 | <style> | ||
111 | <class name="message-content"/> | ||
112 | </style> | ||
113 | </object> | 59 | </object> |
114 | </child> | 60 | </child> |
115 | <child type="label"> | 61 | <child type="label"> |
diff --git a/resources/ui/message_content.ui b/resources/ui/message_content.ui new file mode 100644 index 0000000..bca5165 --- /dev/null +++ b/resources/ui/message_content.ui | |||
@@ -0,0 +1,187 @@ | |||
1 | <?xml version="1.0" encoding="UTF-8"?> | ||
2 | <!-- Generated with glade 3.38.2 | ||
3 | |||
4 | Copyright (C) 2021 GNUnet e.V. | ||
5 | |||
6 | GNUnet is free software: you can redistribute it and/or modify it | ||
7 | under the terms of the GNU Affero General Public License as published | ||
8 | by the Free Software Foundation, either version 3 of the License, | ||
9 | or (at your option) any later version. | ||
10 | |||
11 | GNUnet is distributed in the hope that it will be useful, but | ||
12 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
14 | Affero General Public License for more details. | ||
15 | |||
16 | You should have received a copy of the GNU Affero General Public License | ||
17 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
18 | |||
19 | SPDX-License-Identifier: AGPL3.0-or-later | ||
20 | Author: Tobias Frisch | ||
21 | |||
22 | --> | ||
23 | <interface> | ||
24 | <requires lib="gtk+" version="3.24"/> | ||
25 | <object class="GtkBox" id="message_content_box"> | ||
26 | <property name="visible">True</property> | ||
27 | <property name="can-focus">False</property> | ||
28 | <property name="orientation">vertical</property> | ||
29 | <property name="spacing">4</property> | ||
30 | <child> | ||
31 | <object class="GtkBox"> | ||
32 | <property name="visible">True</property> | ||
33 | <property name="can-focus">False</property> | ||
34 | <property name="spacing">4</property> | ||
35 | <child> | ||
36 | <object class="GtkImage" id="read_receipt_image"> | ||
37 | <property name="can-focus">False</property> | ||
38 | <property name="icon-name">emblem-default-symbolic</property> | ||
39 | </object> | ||
40 | <packing> | ||
41 | <property name="expand">False</property> | ||
42 | <property name="fill">True</property> | ||
43 | <property name="pack-type">end</property> | ||
44 | <property name="position">0</property> | ||
45 | </packing> | ||
46 | </child> | ||
47 | <child> | ||
48 | <object class="GtkLabel" id="timestamp_label"> | ||
49 | <property name="visible">True</property> | ||
50 | <property name="can-focus">False</property> | ||
51 | <attributes> | ||
52 | <attribute name="weight" value="ultralight"/> | ||
53 | </attributes> | ||
54 | <style> | ||
55 | <class name="timestamp-label"/> | ||
56 | </style> | ||
57 | </object> | ||
58 | <packing> | ||
59 | <property name="expand">False</property> | ||
60 | <property name="fill">True</property> | ||
61 | <property name="pack-type">end</property> | ||
62 | <property name="position">1</property> | ||
63 | </packing> | ||
64 | </child> | ||
65 | </object> | ||
66 | <packing> | ||
67 | <property name="expand">False</property> | ||
68 | <property name="fill">True</property> | ||
69 | <property name="pack-type">end</property> | ||
70 | <property name="position">0</property> | ||
71 | </packing> | ||
72 | </child> | ||
73 | <child> | ||
74 | <object class="GtkStack"> | ||
75 | <property name="visible">True</property> | ||
76 | <property name="can-focus">False</property> | ||
77 | <child> | ||
78 | <object class="GtkLabel" id="text_label"> | ||
79 | <property name="visible">True</property> | ||
80 | <property name="can-focus">False</property> | ||
81 | <property name="wrap">True</property> | ||
82 | <property name="max-width-chars">64</property> | ||
83 | <property name="xalign">0</property> | ||
84 | </object> | ||
85 | <packing> | ||
86 | <property name="name">text_page</property> | ||
87 | </packing> | ||
88 | </child> | ||
89 | <child> | ||
90 | <object class="GtkRevealer" id="file_revealer"> | ||
91 | <property name="visible">True</property> | ||
92 | <property name="can-focus">False</property> | ||
93 | <property name="transition-type">none</property> | ||
94 | <child> | ||
95 | <object class="GtkBox"> | ||
96 | <property name="visible">True</property> | ||
97 | <property name="can-focus">False</property> | ||
98 | <property name="spacing">4</property> | ||
99 | <child> | ||
100 | <object class="GtkBox"> | ||
101 | <property name="visible">True</property> | ||
102 | <property name="can-focus">False</property> | ||
103 | <property name="valign">center</property> | ||
104 | <property name="orientation">vertical</property> | ||
105 | <property name="spacing">4</property> | ||
106 | <child> | ||
107 | <object class="GtkLabel" id="filename_label"> | ||
108 | <property name="visible">True</property> | ||
109 | <property name="can-focus">False</property> | ||
110 | </object> | ||
111 | <packing> | ||
112 | <property name="expand">False</property> | ||
113 | <property name="fill">True</property> | ||
114 | <property name="position">0</property> | ||
115 | </packing> | ||
116 | </child> | ||
117 | <child> | ||
118 | <object class="GtkProgressBar"> | ||
119 | <property name="visible">True</property> | ||
120 | <property name="can-focus">False</property> | ||
121 | </object> | ||
122 | <packing> | ||
123 | <property name="expand">False</property> | ||
124 | <property name="fill">True</property> | ||
125 | <property name="position">1</property> | ||
126 | </packing> | ||
127 | </child> | ||
128 | </object> | ||
129 | <packing> | ||
130 | <property name="expand">True</property> | ||
131 | <property name="fill">True</property> | ||
132 | <property name="position">0</property> | ||
133 | </packing> | ||
134 | </child> | ||
135 | <child> | ||
136 | <object class="GtkButton" id="file_button"> | ||
137 | <property name="visible">True</property> | ||
138 | <property name="can-focus">True</property> | ||
139 | <property name="receives-default">True</property> | ||
140 | <property name="halign">center</property> | ||
141 | <property name="valign">center</property> | ||
142 | <property name="relief">none</property> | ||
143 | <child> | ||
144 | <object class="GtkImage"> | ||
145 | <property name="visible">True</property> | ||
146 | <property name="can-focus">False</property> | ||
147 | <property name="icon-name">folder-download-symbolic</property> | ||
148 | </object> | ||
149 | </child> | ||
150 | </object> | ||
151 | <packing> | ||
152 | <property name="expand">False</property> | ||
153 | <property name="fill">True</property> | ||
154 | <property name="pack-type">end</property> | ||
155 | <property name="position">1</property> | ||
156 | </packing> | ||
157 | </child> | ||
158 | </object> | ||
159 | </child> | ||
160 | </object> | ||
161 | <packing> | ||
162 | <property name="name">file_page</property> | ||
163 | <property name="position">1</property> | ||
164 | </packing> | ||
165 | </child> | ||
166 | <child> | ||
167 | <object class="GtkDrawingArea" id="preview_drawing_area"> | ||
168 | <property name="visible">True</property> | ||
169 | <property name="can-focus">False</property> | ||
170 | </object> | ||
171 | <packing> | ||
172 | <property name="name">preview_page</property> | ||
173 | <property name="position">2</property> | ||
174 | </packing> | ||
175 | </child> | ||
176 | </object> | ||
177 | <packing> | ||
178 | <property name="expand">True</property> | ||
179 | <property name="fill">True</property> | ||
180 | <property name="position">1</property> | ||
181 | </packing> | ||
182 | </child> | ||
183 | <style> | ||
184 | <class name="message-content"/> | ||
185 | </style> | ||
186 | </object> | ||
187 | </interface> | ||
diff --git a/resources/ui/send_file.ui b/resources/ui/send_file.ui index 38bd5e8..5603aea 100644 --- a/resources/ui/send_file.ui +++ b/resources/ui/send_file.ui | |||
@@ -78,6 +78,7 @@ Author: Tobias Frisch | |||
78 | <property name="spacing">4</property> | 78 | <property name="spacing">4</property> |
79 | <child> | 79 | <child> |
80 | <object class="GtkDrawingArea" id="file_drawing_area"> | 80 | <object class="GtkDrawingArea" id="file_drawing_area"> |
81 | <property name="width-request">250</property> | ||
81 | <property name="height-request">250</property> | 82 | <property name="height-request">250</property> |
82 | <property name="visible">True</property> | 83 | <property name="visible">True</property> |
83 | <property name="can-focus">False</property> | 84 | <property name="can-focus">False</property> |