[gtk+] Adwaita: increase padding on header-bar and action-bar text buttons



commit e084e5c67e9241b479ef5fc7fff857445a7d9956
Author: Lapo Calamandrei <calamandrei gmail com>
Date:   Wed Jul 16 19:47:54 2014 +0200

    Adwaita: increase padding on header-bar and action-bar text buttons

 gtk/resources/theme/Adwaita/_common.scss           |    7 ++++++-
 gtk/resources/theme/Adwaita/gtk-contained-dark.css |    5 ++++-
 gtk/resources/theme/Adwaita/gtk-contained.css      |    5 ++++-
 3 files changed, 14 insertions(+), 3 deletions(-)
---
diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss
index 318b16c..5472053 100644
--- a/gtk/resources/theme/Adwaita/_common.scss
+++ b/gtk/resources/theme/Adwaita/_common.scss
@@ -364,6 +364,11 @@ GtkLabel {
     // GtkImage itself to fit the circle
     padding: 5px 2px;
   }
+  .action-bar .stack-switcher &.text-button,
+  .header-bar .stack-switcher &.text-button {
+    padding-left: 10px;
+    padding-right: 10px;
+  }
   .stack-switcher > & {
     padding-left: 0;  // subtract the padding which will be added to the
     padding-right: 0; // GtkLabel
@@ -398,7 +403,7 @@ GtkLabel {
   .header-bar &.image-button,
   .action-bar &.image-button { padding: 8px; }
   .header-bar &.text-button,
-  .action-bar &.text-button { padding: 6px 8px 5px; } // due to font metrics
+  .action-bar &.text-button { padding: 6px 16px 5px; } // due to font metrics
 
   //inline-toolbar buttons
   .inline-toolbar &, .inline-toolbar &:backdrop {
diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css 
b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
index 75c4bab..f632a52 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css
@@ -480,6 +480,9 @@
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0.1); }
   .action-bar .stack-switcher .button.image-button, .header-bar .stack-switcher .button.image-button {
     padding: 5px 2px; }
+  .action-bar .stack-switcher .button.text-button, .header-bar .stack-switcher .button.text-button {
+    padding-left: 10px;
+    padding-right: 10px; }
   .stack-switcher > .button {
     padding-left: 0;
     padding-right: 0; }
@@ -499,7 +502,7 @@
   .header-bar .button.image-button, .action-bar .button.image-button {
     padding: 8px; }
   .header-bar .button.text-button, .action-bar .button.text-button {
-    padding: 6px 8px 5px; }
+    padding: 6px 16px 5px; }
   .inline-toolbar .button, .inline-toolbar .button:backdrop {
     border-radius: 2px;
     border-width: 1px; }
diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css
index 1a5348e..31348cd 100644
--- a/gtk/resources/theme/Adwaita/gtk-contained.css
+++ b/gtk/resources/theme/Adwaita/gtk-contained.css
@@ -472,6 +472,9 @@
       box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px white; }
   .action-bar .stack-switcher .button.image-button, .header-bar .stack-switcher .button.image-button {
     padding: 5px 2px; }
+  .action-bar .stack-switcher .button.text-button, .header-bar .stack-switcher .button.text-button {
+    padding-left: 10px;
+    padding-right: 10px; }
   .stack-switcher > .button {
     padding-left: 0;
     padding-right: 0; }
@@ -491,7 +494,7 @@
   .header-bar .button.image-button, .action-bar .button.image-button {
     padding: 8px; }
   .header-bar .button.text-button, .action-bar .button.text-button {
-    padding: 6px 8px 5px; }
+    padding: 6px 16px 5px; }
   .inline-toolbar .button, .inline-toolbar .button:backdrop {
     border-radius: 2px;
     border-width: 1px; }


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