[gnome-logs] Add rounded corners on titlebar



commit 5112d2a33e9d139860df5789a9b5ef1f8f4452d4
Author: David King <davidk gnome org>
Date:   Tue Oct 1 11:15:13 2013 +0100

    Add rounded corners on titlebar

 data/gl-style.css |   12 ++++++++++++
 data/gl-window.ui |    8 ++++++++
 2 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/data/gl-style.css b/data/gl-style.css
index f92bb74..13446db 100644
--- a/data/gl-style.css
+++ b/data/gl-style.css
@@ -1,3 +1,15 @@
+/* Fix rounded corners for side-by-side header bars. */
+.left_toolbar:dir(ltr),
+.right_toolbar:dir(rtl) {
+    border-top-right-radius: 0;
+}
+
+.right_toolbar:dir(ltr),
+.left_toolbar:dir(rtl) {
+    border-top-left-radius: 0;
+}
+
+/* Theme overrides. */
 .categories {
     background-color: shade(@theme_bg_color, 0.99)
 }
diff --git a/data/gl-window.ui b/data/gl-window.ui
index 75904ee..39185d0 100644
--- a/data/gl-window.ui
+++ b/data/gl-window.ui
@@ -10,6 +10,10 @@
                 <child>
                     <object class="GtkHeaderBar" id="left_toolbar">
                         <property name="visible">True</property>
+                        <style>
+                            <class name="titlebar"/>
+                            <class name="left_toolbar"/>
+                        </style>
                         <child type="title">
                             <object class="GtkLabel" id="categories_title">
                                 <property name="label" translatable="yes">Categories</property>
@@ -30,6 +34,10 @@
                 <child>
                     <object class="GlEventToolbar" id="right_toolbar">
                         <property name="visible">True</property>
+                        <style>
+                            <class name="titlebar"/>
+                            <class name="right_toolbar"/>
+                        </style>
                     </object>
                 </child>
             </object>


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