diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 00:39:55 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 00:39:55 +0100 |
commit | ba4fbab831b09bd66fca8136333db384b44ff6c1 (patch) | |
tree | db385c694fba440063562354741a79cbc9ea5ef7 /src/gtk | |
parent | d68dbc893c4b76627b28b189b870aedddcad55bb (diff) |
chat: Add support for file upload
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/chat.ui | 18 | ||||
-rw-r--r-- | src/gtk/preferences.ui | 11 |
2 files changed, 29 insertions, 0 deletions
diff --git a/src/gtk/chat.ui b/src/gtk/chat.ui index 233c362..6959d45 100644 --- a/src/gtk/chat.ui +++ b/src/gtk/chat.ui @@ -52,6 +52,15 @@ <property name="margin-top">5</property> <property name="margin-bottom">5</property> <child> + <object class="GtkButton"> + <property name="icon-name">mail-attachment</property> + <style> + <class name="image-button"/> + </style> + <signal name="clicked" handler="attach_file"/> + </object> + </child> + <child> <object class="GtkEntry" id="text_entry"> <property name="halign">fill</property> <property name="hexpand">True</property> @@ -62,6 +71,15 @@ <signal name="activate" handler="entry_activate"/> </object> </child> + <child> + <object class="GtkButton"> + <property name="icon-name">mail-forward</property> + <style> + <class name="image-button"/> + </style> + <signal name="clicked" handler="entry_activate"/> + </object> + </child> </object> </property> </object> diff --git a/src/gtk/preferences.ui b/src/gtk/preferences.ui index 5823d2f..9e4d9fc 100644 --- a/src/gtk/preferences.ui +++ b/src/gtk/preferences.ui @@ -77,6 +77,17 @@ </child> </object> </child> + <child> + <object class="AdwPreferencesGroup"> + <property name="title" translatable="yes">Upload</property> + <child> + <object class="AdwEntryRow" id="upload_url"> + <property name="title" translatable="yes">Upload URL</property> + <property name="use_underline">True</property> + </object> + </child> + </object> + </child> </object> </child> </template> |