aboutsummaryrefslogtreecommitdiff
path: root/libdino/data/conversation_selector
diff options
context:
space:
mode:
Diffstat (limited to 'libdino/data/conversation_selector')
-rw-r--r--libdino/data/conversation_selector/chat_row_tooltip.ui23
-rw-r--r--libdino/data/conversation_selector/conversation_row.ui146
-rw-r--r--libdino/data/conversation_selector/view.ui33
3 files changed, 202 insertions, 0 deletions
diff --git a/libdino/data/conversation_selector/chat_row_tooltip.ui b/libdino/data/conversation_selector/chat_row_tooltip.ui
new file mode 100644
index 00000000..90fbd712
--- /dev/null
+++ b/libdino/data/conversation_selector/chat_row_tooltip.ui
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="3.0"/>
+ <object class="GtkBox" id="main_box">
+ <property name="orientation">vertical</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel" id="jid_label">
+ <property name="xalign">0</property>
+ <property name="visible">True</property>
+ <attributes>
+ <attribute name="weight" value="PANGO_WEIGHT_BOLD"/>
+ </attributes>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox" id="inner_box">
+ <property name="orientation">vertical</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+</interface>
diff --git a/libdino/data/conversation_selector/conversation_row.ui b/libdino/data/conversation_selector/conversation_row.ui
new file mode 100644
index 00000000..5f8498e9
--- /dev/null
+++ b/libdino/data/conversation_selector/conversation_row.ui
@@ -0,0 +1,146 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="3.0"/>
+ <template class="DinoUiConversationSelectorConversationRow">
+ <property name="visible">True</property>
+ <style>
+ <class name="no_padding"/>
+ </style>
+ <child>
+ <object class="GtkRevealer" id="main_revealer">
+ <property name="transition-type">slide-down</property>
+ <property name="transition-duration">200</property>
+ <property name="reveal-child">False</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkGrid">
+ <property name="orientation">horizontal</property>
+ <property name="margin">7</property>
+ <property name="margin-right">14</property>
+ <property name="column-spacing">10</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkImage" id="image">
+ <property name="height_request">40</property>
+ <property name="width_request">40</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkGrid">
+ <property name="orientation">vertical</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel" id="name_label">
+ <property name="max_width_chars">1</property>
+ <property name="ellipsize">end</property>
+ <property name="expand">True</property>
+ <property name="margin-right">7</property>
+ <property name="xalign">0</property>
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRevealer" id="time_revealer">
+ <property name="transition-type">slide-right</property>
+ <property name="transition-duration">100</property>
+ <property name="reveal-child">True</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkLabel" id="time_label">
+ <property name="hexpand">False</property>
+ <property name="xalign">1</property>
+ <attributes>
+ <attribute name="scale" value="0.7"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="message_label">
+ <property name="max_width_chars">1</property>
+ <property name="ellipsize">end</property>
+ <property name="expand">True</property>
+ <property name="xalign">0</property>
+ <attributes>
+ <attribute name="scale" value="0.8"/>
+ </attributes>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">2</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="orientation">vertical</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkBox">
+ <property name="vexpand">True</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkRevealer" id="xbutton_revealer">
+ <property name="transition-type">slide-left</property>
+ <property name="transition-duration">100</property>
+ <property name="reveal-child">False</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkButton" id="x_button">
+ <property name="vexpand">False</property>
+ <property name="visible">True</property>
+ <style>
+ <class name="conversation_list_row_xbutton"/>
+ <class name="circular"/>
+ <class name="flat"/>
+ </style>
+ <child>
+ <object class="GtkImage">
+ <property name="icon-name">window-close-symbolic</property>
+ <property name="icon-size">1</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkBox">
+ <property name="vexpand">True</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="left_attach">2</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">2</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ </template>
+</interface>
diff --git a/libdino/data/conversation_selector/view.ui b/libdino/data/conversation_selector/view.ui
new file mode 100644
index 00000000..4bac39bc
--- /dev/null
+++ b/libdino/data/conversation_selector/view.ui
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <requires lib="gtk+" version="3.0"/>
+ <template class="DinoUiConversationSelectorView">
+ <property name="can_focus">True</property>
+ <property name="width_request">40</property>
+ <property name="expand">True</property>
+ <property name="orientation">vertical</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkSearchBar" id="search_bar">
+ <property name="hexpand">True</property>
+ <property name="show_close_button">True</property>
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkSearchEntry" id="search_entry">
+ <property name="primary_icon_name">edit-find-symbolic</property>
+ <property name="placeholder_text" translatable="yes">Search</property>
+ <property name="hexpand">True</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child>
+ <object class="GtkScrolledWindow" id="scrolled">
+ <property name="expand">True</property>
+ <property name="hscrollbar_policy">never</property>
+ <property name="visible">True</property>
+ </object>
+ </child>
+ </template>
+</interface>