diff options
author | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 11:04:12 +0100 |
---|---|---|
committer | Lucas Fryzek <lucas.fryzek@fryzekconcepts.com> | 2024-10-06 11:04:12 +0100 |
commit | cb2ff26daacde20e9d347bc0e720ed27ea2bea52 (patch) | |
tree | 3e0b23db908c1e3d2a4fecd0741f086d379389d6 /src/gtk | |
parent | c21a3405a455f65f13beb5a72af87cc717a13aea (diff) |
chat: Add autoscroll to bottom button
Diffstat (limited to 'src/gtk')
-rw-r--r-- | src/gtk/chat.ui | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/gtk/chat.ui b/src/gtk/chat.ui index a768f5c..65765e5 100644 --- a/src/gtk/chat.ui +++ b/src/gtk/chat.ui @@ -48,6 +48,38 @@ <property name="maximum-size">750</property> <property name="tightening-threshold">500</property> <property name="child"> + <object class="GtkOverlay" id="content"> + <child type="overlay"> + <object class="GtkRevealer" id="scroll_button_revealer"> + <property name="visible">False</property> + <property name="transition_type">crossfade</property> + <property name="valign">end</property> + <property name="halign">end</property> + <property name="margin-end">5</property> + <property name="margin-bottom">5</property> + <child> + <object class="GtkButton" id="scroll_button"> + <property name="icon-name">go-bottom-symbolic</property> + <property name="tooltip-text" translatable="yes">Scroll to Bottom</property> + <signal name="clicked" handler="scroll_bottom"/> + <style> + <class name="osd"/> + <class name="circular"/> + <class name="overlaid"/> + </style> + </object> + </child> + </object> + </child> + </object> + </property> + </object> + </child> + <child> + <object class="AdwClamp"> + <property name="maximum-size">750</property> + <property name="tightening-threshold">500</property> + <property name="child"> <object class="GtkBox"> <property name="margin-top">5</property> <property name="margin-bottom">5</property> |