Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtk')
-rw-r--r--src/gtk/preferences.ui12
-rw-r--r--src/gtk/welcome.ui38
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>