[gnome-builder] add header to project pad



commit 32ee638d9b44dea18324d642bba0357660514437
Author: Christian Hergert <christian hergert me>
Date:   Sun Mar 22 00:34:40 2015 -0700

    add header to project pad

 data/ui/gb-editor-workspace.ui        |   34 +++++++++++++++++--
 src/resources/css/builder.Adwaita.css |   59 +++------------------------------
 2 files changed, 36 insertions(+), 57 deletions(-)
---
diff --git a/data/ui/gb-editor-workspace.ui b/data/ui/gb-editor-workspace.ui
index f4fc293..3c43355 100644
--- a/data/ui/gb-editor-workspace.ui
+++ b/data/ui/gb-editor-workspace.ui
@@ -8,12 +8,40 @@
         <property name="position">250</property>
         <property name="visible">true</property>
         <child>
-          <object class="GtkScrolledWindow">
+          <object class="GtkBox">
+            <property name="vexpand">true</property>
+            <property name="orientation">vertical</property>
             <property name="visible">true</property>
             <child>
-              <object class="GbTree" id="project_tree">
-                <property name="headers-visible">false</property>
+              <object class="GtkBox">
+                <property name="orientation">horizontal</property>
                 <property name="visible">true</property>
+                <style>
+                  <class name="notebook"/>
+                  <class name="header"/>
+                </style>
+                <child type="center">
+                  <object class="GtkMenuButton">
+                    <property name="label">Project</property>
+                    <property name="margin">3</property>
+                    <property name="visible">true</property>
+                    <style>
+                      <class name="dim-label"/>
+                    </style>
+                  </object>
+                </child>
+              </object>
+            </child>
+            <child>
+              <object class="GtkScrolledWindow">
+                <property name="vexpand">true</property>
+                <property name="visible">true</property>
+                <child>
+                  <object class="GbTree" id="project_tree">
+                    <property name="headers-visible">false</property>
+                    <property name="visible">true</property>
+                  </object>
+                </child>
               </object>
             </child>
           </object>
diff --git a/src/resources/css/builder.Adwaita.css b/src/resources/css/builder.Adwaita.css
index aefadab..bd22798 100644
--- a/src/resources/css/builder.Adwaita.css
+++ b/src/resources/css/builder.Adwaita.css
@@ -137,59 +137,6 @@ GtkEntry.gb-command-bar-entry {
 }
 
 
-/*
- * Tab header styling.
- */
-GtkMenuButton.tab-header-first .button,
-GtkButton.tab-header-first {
-    border-left: none;
-    border-top-left-radius: 0px;
-    border-bottom-left-radius: 0px;
-    box-shadow: none;
-}
-GtkMenuButton.tab-header-last .button,
-GtkButton.tab-header-last {
-    border-right: none;
-    border-top-right-radius: 0px;
-    border-bottom-right-radius: 0px;
-    box-shadow: none;
-}
-GtkMenuButton.tab-control-first .button,
-GtkButton.tab-control-first {
-    border-left: none;
-    border-top-left-radius: 0px;
-    border-bottom-left-radius: 0px;
-    box-shadow: none;
-}
-GtkMenuButton.tab-control-last .button,
-GtkButton.tab-control-last {
-    border-right: none;
-    border-top-right-radius: 0px;
-    border-bottom-right-radius: 0px;
-    box-shadow: none;
-}
-
-
-
-#project-title {
-    border-left: none;
-    border-right: none;
-    border-top-left-radius: 0px;
-    border-bottom-left-radius: 0px;
-    border-top-right-radius: 0px;
-    border-bottom-right-radius: 0px;
-}
-
-
-GbCreditsWidget GtkEventBox {
-    background-color: #000000;
-}
-
-GbCreditsWidget GtkLabel {
-    color: #eeeeef;
-}
-
-
 GbSourceStyleSchemeWidget GtkSourceView {
     font-family: Monospace;
 }
@@ -211,10 +158,14 @@ GbDocumentStack .button {
     transition: none;
 }
 
+
 GbViewStack GtkBox.header.notebook {
     border-bottom: 1px solid @borders;
 }
-
 GbViewStack:not(.focused) GtkBox.header.notebook {
     background-color: shade (@theme_bg_color, 0.95);
 }
+
+GbEditorWorkspace > GtkPaned > GtkBox > GtkBox.header.notebook {
+    border-bottom: 1px solid @borders;
+}


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