Przeglądaj źródła

Push html view next to input

Matthias Vogelgesang 7 lat temu
rodzic
commit
735a101ac7
1 zmienionych plików z 21 dodań i 19 usunięć
  1. 21 19
      src/iridium-window.ui

+ 21 - 19
src/iridium-window.ui

@@ -80,22 +80,22 @@
             <child>
               <object class="GtkBox">
                 <property name="visible">True</property>
+                <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
+                <child>
+                  <object class="GtkEntry" id="title_entry">
+                    <property name="name">title-entry</property>
+                    <property name="visible">True</property>
+                    <property name="placeholder-text">Add title …</property>
+                    <property name="margin-top">6</property>
+                    <property name="margin-left">6</property>
+                    <property name="margin-right">6</property>
+                    <property name="halign">GTK_ALIGN_FILL</property>
+                    <property name="hexpand">TRUE</property>
+                  </object>
+                </child>
                 <child>
                   <object class="GtkBox">
                     <property name="visible">True</property>
-                    <property name="orientation">GTK_ORIENTATION_VERTICAL</property>
-                    <child>
-                      <object class="GtkEntry" id="title_entry">
-                        <property name="name">title-entry</property>
-                        <property name="visible">True</property>
-                        <property name="placeholder-text">Add title …</property>
-                        <property name="margin-top">6</property>
-                        <property name="margin-left">6</property>
-                        <property name="margin-right">6</property>
-                        <property name="halign">GTK_ALIGN_FILL</property>
-                        <property name="hexpand">TRUE</property>
-                      </object>
-                    </child>
                     <child>
                       <object class="GtkScrolledWindow">
                         <property name="visible">True</property>
@@ -109,14 +109,16 @@
                         </child>
                       </object>
                     </child>
-                  </object>
-                </child>
-                <child>
-                  <object class="GtkRevealer" id="html_view_revealer">
-                    <property name="visible">True</property>
                     <child>
-                      <object class="WebKitWebView" id="html_view">
+                      <object class="GtkRevealer" id="html_view_revealer">
                         <property name="visible">True</property>
+                        <property name="transition-type">GTK_REVEALER_TRANSITION_TYPE_SLIDE_LEFT</property>
+                        <child>
+                          <object class="WebKitWebView" id="html_view">
+                            <property name="visible">True</property>
+                            <property name="expand">True</property>
+                          </object>
+                        </child>
                       </object>
                     </child>
                   </object>