diff options
author | fiaxh <git@lightrise.org> | 2020-02-21 02:11:23 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-02-22 02:58:36 +0100 |
commit | 28c44380ba89e51c5aeac01ca9549633fbeb7e11 (patch) | |
tree | 8172f1d6c3bcd2450082fa8fa1fb76e9a214cfc5 /main/data | |
parent | a7e92960a3f4d31cfb2fbe2e3ba4941cf3b8faf2 (diff) | |
download | dino-28c44380ba89e51c5aeac01ca9549633fbeb7e11.tar.gz dino-28c44380ba89e51c5aeac01ca9549633fbeb7e11.zip |
Move ConversationContentView+ChatInput into ConversationView, handle drag'n'drop on ConversationView level
Diffstat (limited to 'main/data')
-rw-r--r-- | main/data/conversation_view.ui | 54 | ||||
-rw-r--r-- | main/data/unified_main_content.ui | 49 |
2 files changed, 55 insertions, 48 deletions
diff --git a/main/data/conversation_view.ui b/main/data/conversation_view.ui new file mode 100644 index 00000000..df9df7e0 --- /dev/null +++ b/main/data/conversation_view.ui @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <template class="DinoUiConversationView" parent="GtkBox"> + <property name="orientation">vertical</property> + <property name="visible">True</property> + <style> + <class name="dino-conversation"/> + </style> + <child> + <object class="GtkOverlay"> + <property name="visible">True</property> + <child> + <object class="DinoUiConversationSummaryConversationView" id="conversation_frame"> + <property name="visible">True</property> + </object> + </child> + <child type="overlay"> + <object class="GtkRevealer" id="goto_end_revealer"> + <property name="halign">end</property> + <property name="valign">end</property> + <property name="transition-type">crossfade</property> + <property name="visible">True</property> + <property name="margin-end">30</property> + <property name="margin-bottom">30</property> + <child> + <object class="GtkButton" id="goto_end_button"> + <property name="vexpand">False</property> + <property name="halign">end</property> + <property name="valign">end</property> + <property name="visible">True</property> + <style> + <class name="circular"/> + </style> + <child> + <object class="GtkImage"> + <property name="icon-name">go-down-symbolic</property> + <property name="icon-size">1</property> + <property name="visible">True</property> + </object> + </child> + </object> + </child> + </object> + + </child> + </object> + </child> + <child> + <object class="DinoUiChatInputView" id="chat_input"> + <property name="visible">True</property> + </object> + </child> + </template> +</interface> diff --git a/main/data/unified_main_content.ui b/main/data/unified_main_content.ui index 25faf0fa..03c206c1 100644 --- a/main/data/unified_main_content.ui +++ b/main/data/unified_main_content.ui @@ -69,55 +69,8 @@ <object class="GtkStack" id="right_stack"> <property name="visible">True</property> <child> - <object class="GtkOverlay"> + <object class="DinoUiConversationView" id="conversation_view"> <property name="visible">True</property> - <child> - <object class="GtkBox"> - <property name="orientation">vertical</property> - <property name="visible">True</property> - <style> - <class name="dino-conversation"/> - </style> - <child> - <object class="DinoUiConversationSummaryConversationView" id="conversation_frame"> - <property name="visible">True</property> - </object> - </child> - <child> - <object class="DinoUiChatInputView" id="chat_input"> - <property name="visible">True</property> - </object> - </child> - </object> - </child> - <child type="overlay"> - <object class="GtkRevealer" id="goto_end_revealer"> - <property name="halign">end</property> - <property name="valign">end</property> - <property name="transition-type">crossfade</property> - <property name="visible">True</property> - <property name="margin-end">30</property> - <property name="margin-bottom">70</property> - <child> - <object class="GtkButton" id="goto_end_button"> - <property name="vexpand">False</property> - <property name="halign">end</property> - <property name="valign">end</property> - <property name="visible">True</property> - <style> - <class name="circular"/> - </style> - <child> - <object class="GtkImage"> - <property name="icon-name">go-down-symbolic</property> - <property name="icon-size">1</property> - <property name="visible">True</property> - </object> - </child> - </object> - </child> - </object> - </child> </object> <packing> <property name="name">content</property> |