[polari/wip/fmuellner/window-experiments: 355/356] mainWindow: Hide left headerbar when in single-room mode



commit 159684048f0d2d3a9b415c504f26cf475c78db89
Author: Florian Müllner <fmuellner gnome org>
Date:   Thu Jul 21 04:18:37 2016 +0200

    mainWindow: Hide left headerbar when in single-room mode

 data/resources/application.css |    8 ++++++--
 data/resources/main-window.ui  |    8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/data/resources/application.css b/data/resources/application.css
index ab94219..cc90fce 100644
--- a/data/resources/application.css
+++ b/data/resources/application.css
@@ -108,9 +108,13 @@ treeview.polari-server-room-list {
 
 /* Hack: Move separator by 1px so that it aligns with the sidebar */
 .titlebar > separator:dir(ltr) { margin-left: -1px; }
-.titlebar > headerbar:first-child:dir(ltr) { margin-right: 1px; }
+.titlebar > headerbar:first-child:not(:last-child):dir(ltr) {
+    margin-right: 1px;
+}
 .titlebar > separator:dir(rtl) { margin-right: -1px; }
-.titlebar > headerbar:first-child:dir(rtl) { margin-left: 1px; }
+.titlebar > headerbar:first-child:not(:last-child):dir(rtl) {
+    margin-left: 1px;
+}
 
 .polari-user-list-button {
     padding: 0px 4px;
diff --git a/data/resources/main-window.ui b/data/resources/main-window.ui
index d586beb..1835fb4 100644
--- a/data/resources/main-window.ui
+++ b/data/resources/main-window.ui
@@ -43,7 +43,9 @@
         <property name="visible">True</property>
         <child>
           <object class="GtkHeaderBar" id="titlebarLeft">
-            <property name="visible">True</property>
+            <property name="visible" bind-source="Gjs_MainWindow"
+                      bind-property="single-room"
+                      bind-flags="sync-create|invert-boolean"/>
             <property name="hexpand">False</property>
             <property name="show-close-button">True</property>
             <child>
@@ -77,7 +79,9 @@
         </child>
         <child>
           <object class="GtkSeparator">
-            <property name="visible">True</property>
+            <property name="visible" bind-source="Gjs_MainWindow"
+                      bind-property="single-room"
+                      bind-flags="sync-create|invert-boolean"/>
             <property name="orientation">vertical</property>
           </object>
         </child>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]