[almanah] UI: Fixed entry scroll effect with Adwaita



commit a697e86cfad008db3c7275abdcf6466f2e614d1f
Author: Álvaro Peña <alvaropg gmail com>
Date:   Sat Sep 19 14:45:28 2015 +0200

    UI: Fixed entry scroll effect with Adwaita
    
    The main problem is the GtkScrolledWindow white background and the
    border styles, so we have removed it, including some left & right margin
    allowing a better look of the text.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=754966

 src/css/almanah.css |    8 +++-----
 src/ui/almanah.ui   |    9 +++------
 2 files changed, 6 insertions(+), 11 deletions(-)
---
diff --git a/src/css/almanah.css b/src/css/almanah.css
index a771c6d..b953df6 100644
--- a/src/css/almanah.css
+++ b/src/css/almanah.css
@@ -8,11 +8,9 @@ AlmanahTagEntry:focused {
    color: @theme_fg_color;
 }
 
-.almanah-mw-main-content GtkScrolledWindow {
-    border-style: solid;
-    border-radius: 0px;
-    border-width: 0px;
+.almanah-mw-scrolled {
     border-bottom-width: 1px;
     border-top-width: 0px;
-    background-color: #fff;
+    border-left-width: 0px;
+    border-right-width: 0px;
 }
diff --git a/src/ui/almanah.ui b/src/ui/almanah.ui
index 2281a9c..75f293b 100644
--- a/src/ui/almanah.ui
+++ b/src/ui/almanah.ui
@@ -112,19 +112,16 @@
                                                                <property name="hexpand">True</property>
                                                                <property name="vexpand">True</property>
                                                                <style>
-                                                                       <class 
name="almanah-main-content-scrolled"/>
+                                                                       <class name="almanah-mw-scrolled"/>
                                                                </style>
                                                                <child>
                                                                        <object class="GtkTextView" 
id="almanah_mw_entry_view">
                                                                                <property 
name="width-request">300</property>
-                                                                               <property 
name="height-request">300</property>
                                                                                <property 
name="can-focus">True</property>
                                                                                <property 
name="has-focus">True</property>
                                                                                <property 
name="wrap-mode">GTK_WRAP_WORD</property>
-                                                                               <property 
name="margin_top">6</property>
-                                                                               <property 
name="margin_start">10</property>
-                                                                               <property 
name="margin_end">10</property>
-                                                                               <property 
name="margin_top">4</property>
+                                                                               <property 
name="left-margin">6</property>
+                                                                               <property 
name="right-margin">6</property>
                                                                                <child 
internal-child="accessible">
                                                                                        <object 
class="AtkObject" id="a11y-almanah_mw_entry_view">
                                                                                                <property 
name="AtkObject::accessible-name" translatable="yes">Entry editing area</property>


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