diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 17:34:29 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 17:34:29 +0100 |
commit | db10dc4fdd656b25442c63eb02ea30931eee300e (patch) | |
tree | 9b2a4e835d6d52b48c0e7fb9bcb83884999ee1da /src/gtk | |
parent | 0dc8409b168b293e9566dc5a35bded510fbd043d (diff) |
window: Add interface for connecting and disconnecting
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/preferences.ui | 12 | ||||
-rw-r--r-- | src/gtk/welcome.ui | 38 |
2 files changed, 49 insertions, 1 deletions
diff --git a/src/gtk/preferences.ui b/src/gtk/preferences.ui index 9e4d9fc..77f3c14 100644 --- a/src/gtk/preferences.ui +++ b/src/gtk/preferences.ui @@ -13,7 +13,12 @@ <property name="use-underline">True</property> <child> <object class="AdwPreferencesGroup"> - <property name="title" translatable="yes">Connection</property> + <property name="title" translatable="yes">Relay Connection</property> + <child> + <object class="AdwSwitchRow" id="autoconnect"> + <property name="title" translatable="yes">Autoconnect</property> + </object> + </child> <child> <object class="AdwEntryRow" id="hostname"> <property name="title" translatable="yes">Hostname</property> @@ -31,6 +36,11 @@ <property name="title" translatable="yes">Password</property> </object> </child> + </object> + </child> + <child> + <object class="AdwPreferencesGroup"> + <property name="title" translatable="yes">SSH Connection</property> <child> <object class="AdwEntryRow" id="ssh_host"> <property name="title" translatable="yes">SSH host</property> diff --git a/src/gtk/welcome.ui b/src/gtk/welcome.ui new file mode 100644 index 0000000..9b6ad76 --- /dev/null +++ b/src/gtk/welcome.ui @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <requires lib="gtk" version="4.0"/> + <requires lib="libadwaita" version="1.0"/> + <template class="WeegtkWelcome" parent="AdwBin"> + <property name="child"> + <object class="AdwToolbarView"> + <child type="top"> + <object class="AdwHeaderBar"> + <property name="show-title">False</property> + </object> + </child> + <property name="content"> + <object class="AdwStatusPage"> + <property name="icon-name">com.fryzekconcepts.weegtk-symbolic</property> + <property name="title" translatable="yes">Welcome to Weegtk</property> + <property name="description" translatable="yes">Change connection settings in preferences</property> + <property name="child"> + <object class="GtkButton"> + <signal name="clicked" handler="connect_network"/> + <style> + <class name="suggested-action"/> + </style> + <property name="child"> + <object class="AdwButtonContent"> + <property name="icon-name">network-wired-symbolic</property> + <property name="label" translatable="yes">_Connect</property> + <property name="use-underline">True</property> + </object> + </property> + </object> + </property> + </object> + </property> + </object> + </property> + </template> +</interface> |