Now About Social Code
aboutsummaryrefslogtreecommitdiff
path: root/src/gtk/chat.ui
diff options
context:
space:
mode:
authorLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-04 20:53:17 +0100
committerLucas Fryzek <lucas.fryzek@fryzekconcepts.com>2024-10-04 20:53:17 +0100
commitbe71bf80d290c98c0f6a66d3dcab28515b4ea371 (patch)
treed936090c5b5c9435febfe220770ff7f25399a235 /src/gtk/chat.ui
Initial commit
Diffstat (limited to 'src/gtk/chat.ui')
-rw-r--r--src/gtk/chat.ui67
1 files changed, 67 insertions, 0 deletions
diff --git a/src/gtk/chat.ui b/src/gtk/chat.ui
new file mode 100644
index 0000000..23477ad
--- /dev/null
+++ b/src/gtk/chat.ui
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk" version="4.0"/>
+ <requires lib="libadwaita" version="1.0"/>
+ <template class="WeegtkChat" parent="AdwBin">
+ <style>
+ <class name="view"/>
+ </style>
+ <property name="child">
+ <object class="AdwToolbarView">
+ <child type="top">
+ <object class="AdwHeaderBar">
+ <property name="show-title">True</property>
+ </object>
+ </child>
+ <property name="content">
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkScrolledWindow" id="window">
+ <property name="vexpand">True</property>
+ <property name="hscrollbar_policy">3</property>
+ <child>
+ <object class="AdwClampScrollable">
+ <property name="maximum-size">750</property>
+ <property name="tightening-threshold">550</property>
+ <property name="child">
+ <object class="GtkListView" id="messages">
+ <property name="orientation">1</property>
+ <style>
+ <class name="navigation-sidebar"/>
+ </style>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="AdwClamp">
+ <property name="maximum-size">750</property>
+ <property name="tightening-threshold">550</property>
+ <property name="child">
+ <object class="GtkBox">
+ <property name="margin-top">5</property>
+ <property name="margin-bottom">5</property>
+ <child>
+ <object class="GtkEntry" id="text_entry">
+ <property name="halign">fill</property>
+ <property name="hexpand">True</property>
+ <property name="hexpand-set">True</property>
+ <property name="width-request">50</property>
+ <property name="margin-start">5</property>
+ <property name="margin-end">5</property>
+ <signal name="activate" handler="entry_activate"/>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </child>
+ </object>
+ </property>
+ </object>
+ </property>
+ </template>
+</interface>