[gtk+] Adwaita: use margins for entry image spacing
- From: Lapo Calamandrei <lapo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Adwaita: use margins for entry image spacing
- Date: Sun, 24 Jul 2016 17:13:54 +0000 (UTC)
commit bab906f83846f96b407510e42cf21c281e492451
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Sun Jul 24 19:11:27 2016 +0200
Adwaita: use margins for entry image spacing
there used to be a padding, since it was the only option in the
past, that makes little sense now, hence use margins.
gtk/theme/Adwaita/_common.scss | 4 ++--
gtk/theme/Adwaita/gtk-contained-dark.css | 6 ++----
gtk/theme/Adwaita/gtk-contained.css | 6 ++----
3 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 1b1868a..58a320c 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -254,8 +254,8 @@ entry {
@include entry(normal);
image { // icons inside the entry
- &.left { padding-left: 0; padding-right: 6px; }
- &.right { padding-left: 6px; padding-right: 0; }
+ &.left { margin-right: 6px; }
+ &.right { margin-left: 6px; }
}
undershoot {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 2172f95..76801c7 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -171,12 +171,10 @@ entry {
box-shadow: inset 0 0 0 1px rgba(33, 93, 156, 0); }
spinbutton:not(.vertical) image.left,
entry image.left {
- padding-left: 0;
- padding-right: 6px; }
+ margin-right: 6px; }
spinbutton:not(.vertical) image.right,
entry image.right {
- padding-left: 6px;
- padding-right: 0; }
+ margin-left: 6px; }
spinbutton:not(.vertical) undershoot.left,
entry undershoot.left {
background-color: transparent;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 6aff4cf..1e71d62 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -171,12 +171,10 @@ entry {
box-shadow: inset 0 0 0 1px rgba(74, 144, 217, 0); }
spinbutton:not(.vertical) image.left,
entry image.left {
- padding-left: 0;
- padding-right: 6px; }
+ margin-right: 6px; }
spinbutton:not(.vertical) image.right,
entry image.right {
- padding-left: 6px;
- padding-right: 0; }
+ margin-left: 6px; }
spinbutton:not(.vertical) undershoot.left,
entry undershoot.left {
background-color: transparent;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]