[gtk+] Adwaita: image-button sizing fix
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: image-button sizing fix
- Date: Sun, 14 Feb 2016 20:07:20 +0000 (UTC)
commit f1b34a719e92847a6eb5429f0389350cb2e577e8
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sun Feb 14 21:06:38 2016 +0100
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(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 595124b..25c59e8 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 5ffd775..8b7417b 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 f82592b..c8ff8f3 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]