From f1b34a719e92847a6eb5429f0389350cb2e577e8 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sun, 14 Feb 2016 21:06:38 +0100 Subject: [PATCH] Adwaita: image-button sizing fix --- gtk/theme/Adwaita/_common.scss | 6 ++++++ gtk/theme/Adwaita/gtk-contained-dark.css | 5 +++++ gtk/theme/Adwaita/gtk-contained.css | 5 +++++ 3 files changed, 16 insertions(+) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 595124bd1e..25c59e83c4 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -451,6 +451,12 @@ button { &:checked { @include button(insensitive-active); } } + &.image-button { + min-width: 32px; + padding-left: 0; + padding-right: 0; + } + &.text-button { padding-left: 16px; padding-right: 16px; diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index 5ffd77518d..8b7417ba76 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -490,6 +490,11 @@ notebook > header > tabs > arrow, headerbar button.titlebutton, border-color: #1c1f1f; background-image: linear-gradient(to bottom, #313434, #333636); box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0); } + notebook > header > tabs > arrow.image-button, headerbar button.image-button.titlebutton, + .titlebar button.image-button.titlebutton, button.image-button { + min-width: 32px; + padding-left: 0; + padding-right: 0; } notebook > header > tabs > arrow.text-button, headerbar button.text-button.titlebutton, .titlebar button.text-button.titlebutton, button.text-button { padding-left: 16px; diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index f82592ba10..c8ff8f3fac 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -490,6 +490,11 @@ notebook > header > tabs > arrow, headerbar button.titlebutton, border-color: #9d9d99; background-image: linear-gradient(to bottom, #e9e9e8, #f1f1f1); box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(255, 255, 255, 0); } + notebook > header > tabs > arrow.image-button, headerbar button.image-button.titlebutton, + .titlebar button.image-button.titlebutton, button.image-button { + min-width: 32px; + padding-left: 0; + padding-right: 0; } notebook > header > tabs > arrow.text-button, headerbar button.text-button.titlebutton, .titlebar button.text-button.titlebutton, button.text-button { padding-left: 16px;