[gtk+/wip/cosimoc/range-gadget: 62/62] Adwaita: add minimum size for marks
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/cosimoc/range-gadget: 62/62] Adwaita: add minimum size for marks
- Date: Mon, 29 Feb 2016 00:09:27 +0000 (UTC)
commit 89daa4327a722544b272ce3926b75ec0f84fc312
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Sun Feb 28 16:04:17 2016 -0800
Adwaita: add minimum size for marks
It's still suboptimal, because there's no way to control the size of the
indicator alone, but this does the job for now.
gtk/theme/Adwaita/_common.scss | 2 ++
gtk/theme/Adwaita/gtk-contained-dark.css | 4 ++++
gtk/theme/Adwaita/gtk-contained.css | 4 ++++
3 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index ab05f61..5adbd2a 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2578,6 +2578,8 @@ scale {
}
marks { color: gtkalpha(currentColor, 0.4); }
+ &.horizontal marks { min-height: 8px; }
+ &.vertical marks { min-width: 8px; }
// *WARNING* scale with marks madness following
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index a188252..f56f6b5 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -2757,6 +2757,10 @@ scale {
-gtk-icon-shadow: none; }
scale marks {
color: alpha(currentColor,0.4); }
+ scale.horizontal marks {
+ min-height: 8px; }
+ scale.vertical marks {
+ min-width: 8px; }
scale.color.horizontal trough > trough > slider, scale.horizontal contents:last-child:not(:only-child) >
trough > slider {
margin: -9px;
border-style: none;
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 4f5ff5e..3662aff 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -2788,6 +2788,10 @@ scale {
-gtk-icon-shadow: none; }
scale marks {
color: alpha(currentColor,0.4); }
+ scale.horizontal marks {
+ min-height: 8px; }
+ scale.vertical marks {
+ min-width: 8px; }
scale.color.horizontal trough > trough > slider, scale.horizontal contents:last-child:not(:only-child) >
trough > slider {
margin: -9px;
border-style: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]