[gtk+/gtk-3-22] HighContrast: set min-height for headerbars



commit c91a4f31f06103f950a85499d946fb8fa71f1c48
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Fri Sep 22 22:52:23 2017 +0800

    HighContrast: set min-height for headerbars
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784562

 gtk/theme/HighContrast/_common.scss              |   13 +++++++++++++
 gtk/theme/HighContrast/gtk-contained-inverse.css |    6 +++++-
 gtk/theme/HighContrast/gtk-contained.css         |    6 +++++-
 3 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/gtk/theme/HighContrast/_common.scss b/gtk/theme/HighContrast/_common.scss
index 1c93a45..e1e3e9b 100644
--- a/gtk/theme/HighContrast/_common.scss
+++ b/gtk/theme/HighContrast/_common.scss
@@ -1197,6 +1197,7 @@ searchbar {
 
 .titlebar:not(headerbar),
 headerbar {
+  min-height: 46px;
   border-width: 0 0 1px;
   border-style: solid;
   border-color: $borders_color;
@@ -1266,6 +1267,18 @@ headerbar {
   .fullscreen & {
     border-radius: 0;
   }
+
+  &.default-decoration {
+    min-height: 28px;
+    padding: 4px;
+
+    button.titlebutton {
+      min-height: 26px;
+      min-width: 26px;
+      margin: 0;
+      padding: 0;
+    }
+  }
 }
 
 /************
diff --git a/gtk/theme/HighContrast/gtk-contained-inverse.css 
b/gtk/theme/HighContrast/gtk-contained-inverse.css
index bf02a07..5804ffe 100644
--- a/gtk/theme/HighContrast/gtk-contained-inverse.css
+++ b/gtk/theme/HighContrast/gtk-contained-inverse.css
@@ -482,7 +482,7 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #737373; 
background-color: #282828; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar:not(headerbar), headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; 
border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, 
#0a0a0a, #000); box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
+.titlebar:not(headerbar), headerbar { min-height: 46px; border-width: 0 0 1px; border-style: solid; 
border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: 
linear-gradient(to bottom, #0a0a0a, #000); box-shadow: inset 0 -1px #262626, inset 0 1px #000; padding: 6px; }
 
 .titlebar:not(headerbar):backdrop, headerbar:backdrop { border-color: #737373; background-color: #000; 
background-image: none; box-shadow: none; }
 
@@ -520,6 +520,10 @@ toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-colo
 
 .tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:not(headerbar), 
.tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
+.titlebar:not(headerbar).default-decoration, headerbar.default-decoration { min-height: 28px; padding: 4px; }
+
+.titlebar:not(headerbar).default-decoration button.titlebutton, headerbar.default-decoration 
button.titlebutton { min-height: 26px; min-width: 26px; margin: 0; padding: 0; }
+
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }
 
diff --git a/gtk/theme/HighContrast/gtk-contained.css b/gtk/theme/HighContrast/gtk-contained.css
index ee70fde..e2bd15f 100644
--- a/gtk/theme/HighContrast/gtk-contained.css
+++ b/gtk/theme/HighContrast/gtk-contained.css
@@ -486,7 +486,7 @@ toolbar.inline-toolbar, searchbar.inline-toolbar { border-style: solid; border-c
 toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-color: #8d8d8d; 
background-color: #d7d7d7; box-shadow: none; }
 
 /*************** Header bars * */
-.titlebar:not(headerbar), headerbar { border-width: 0 0 1px; border-style: solid; border-color: gray; 
border-radius: 7px 7px 0 0; background-color: transparent; background-image: linear-gradient(to bottom, 
white, #fff); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
+.titlebar:not(headerbar), headerbar { min-height: 46px; border-width: 0 0 1px; border-style: solid; 
border-color: gray; border-radius: 7px 7px 0 0; background-color: transparent; background-image: 
linear-gradient(to bottom, white, #fff); box-shadow: inset 0 -1px #d9d9d9, inset 0 1px #fff; padding: 6px; }
 
 .titlebar:not(headerbar):backdrop, headerbar:backdrop { border-color: #8d8d8d; background-color: #fff; 
background-image: none; box-shadow: none; }
 
@@ -524,6 +524,10 @@ toolbar.inline-toolbar:backdrop, searchbar.inline-toolbar:backdrop { border-colo
 
 .tiled .titlebar:not(headerbar), .maximized .titlebar:not(headerbar), .fullscreen .titlebar:not(headerbar), 
.tiled headerbar, .maximized headerbar, .fullscreen headerbar { border-radius: 0; }
 
+.titlebar:not(headerbar).default-decoration, headerbar.default-decoration { min-height: 28px; padding: 4px; }
+
+.titlebar:not(headerbar).default-decoration button.titlebutton, headerbar.default-decoration 
button.titlebutton { min-height: 26px; min-width: 26px; margin: 0; padding: 0; }
+
 /************ Pathbars * */
 .path-bar button { padding: 5px 6px 6px; }
 


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