[gtk/wip/jimmac/adwaita-3-32] Adwaita: Horizontal OSD spinbutton entry fix
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/adwaita-3-32] Adwaita: Horizontal OSD spinbutton entry fix
- Date: Mon, 4 Feb 2019 14:09:10 +0000 (UTC)
commit 933765204fa406c2a475106b6943e64b25e15410
Author: Alex Monday <monday15 gmx com>
Date: Mon Sep 10 17:58:01 2018 +0500
Adwaita: Horizontal OSD spinbutton entry fix
Add placeholder to hande horizontal spinbutton entries,
add instructions for horizontal OSD spinbutton entry to use this
placeholder.
gtk/theme/Adwaita/_common.scss | 10 +++++++++-
gtk/theme/Adwaita/gtk-contained-dark.css | 2 +-
gtk/theme/Adwaita/gtk-contained.css | 2 +-
3 files changed, 11 insertions(+), 3 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 0b9ec56986..980356a6a6 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1171,7 +1171,7 @@ spinbutton {
padding: 0;
- entry {
+ %spinbutton_horz_entry {
min-width: 28px;
// reset all the other props since the spinbutton node is styled here
margin: 0;
@@ -1184,6 +1184,10 @@ spinbutton {
&:backdrop:disabled { background-color: transparent; }
}
+ entry {
+ @extend %spinbutton_horz_entry;
+ }
+
button {
min-height: 16px;
margin: 0;
@@ -1237,6 +1241,10 @@ spinbutton {
// OSD horizontal
.osd &:not(.vertical) {
+ entry {
+ @extend %spinbutton_horz_entry;
+ }
+
button {
@include button(undecorated);
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 11c49fd227..6a977ecf32 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -489,7 +489,7 @@ button:link > label, button:visited > label { text-decoration-line: underline; }
/***************** GtkSpinButton * */
spinbutton:not(.vertical) { padding: 0; }
-spinbutton:not(.vertical) entry { min-width: 28px; margin: 0; background: none; background-color:
transparent; border: none; border-radius: 0; box-shadow: none; }
+spinbutton:not(.vertical) entry, .osd spinbutton:not(.vertical) entry { min-width: 28px; margin: 0;
background: none; background-color: transparent; border: none; border-radius: 0; box-shadow: none; }
spinbutton:not(.vertical) entry:backdrop:disabled { background-color: transparent; }
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index b16ddb7520..9c21500287 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -497,7 +497,7 @@ button:link > label, button:visited > label { text-decoration-line: underline; }
/***************** GtkSpinButton * */
spinbutton:not(.vertical) { padding: 0; }
-spinbutton:not(.vertical) entry { min-width: 28px; margin: 0; background: none; background-color:
transparent; border: none; border-radius: 0; box-shadow: none; }
+spinbutton:not(.vertical) entry, .osd spinbutton:not(.vertical) entry { min-width: 28px; margin: 0;
background: none; background-color: transparent; border: none; border-radius: 0; box-shadow: none; }
spinbutton:not(.vertical) entry:backdrop:disabled { background-color: transparent; }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]