[gtk+] Adwaita: Don't grow flat entries



commit 32804e098e02dc3ffcffaf954b41bc6f30944746
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Feb 11 22:35:11 2016 -0500

    Adwaita: Don't grow flat entries
    
    Entries in treeviews and similar embedded situations don't really
    work well if their height is forced to be big. Take out the min-height
    for these.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=761686

 gtk/theme/Adwaita/_common.scss           |    1 +
 gtk/theme/Adwaita/gtk-contained-dark.css |    1 +
 gtk/theme/Adwaita/gtk-contained.css      |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index b8d0851..47182d5 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -248,6 +248,7 @@ entry {
 
   &.flat,
   &.flat:focus {
+    min-height: 0;
     padding: 2px;
     @include entry(normal, $edge:none);
     border: none;
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 98d4350..646e8dd 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -195,6 +195,7 @@ entry, spinbutton:not(.vertical) {
     border: none;
     box-shadow: none; }
   entry.flat, spinbutton.flat:not(.vertical), entry.flat:focus, spinbutton.flat:focus:not(.vertical) {
+    min-height: 0;
     padding: 2px;
     background-color: #292929;
     background-image: linear-gradient(to bottom, #1d2020, #242525 3px, #292929 90%);
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index a1a16ff..9613a93 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -195,6 +195,7 @@ entry, spinbutton:not(.vertical) {
     border: none;
     box-shadow: none; }
   entry.flat, spinbutton.flat:not(.vertical), entry.flat:focus, spinbutton.flat:focus:not(.vertical) {
+    min-height: 0;
     padding: 2px;
     background-color: #ffffff;
     background-image: linear-gradient(to bottom, #d3d3d1, #fcfcfc 2px, #ffffff 90%);


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