[gtk/wip/jimmac/hc-dim-label] HC: special case .dim-label
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/hc-dim-label] HC: special case .dim-label
- Date: Wed, 6 Jan 2021 11:47:10 +0000 (UTC)
commit fd00aa98eaf958fb9c868eed71014e9b6a0706b7
Author: Jakub Steiner <jimmac gmail com>
Date: Wed Jan 6 12:46:35 2021 +0100
HC: special case .dim-label
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3507
gtk/theme/Adwaita/_colors.scss | 1 +
gtk/theme/Adwaita/_common.scss | 2 +-
gtk/theme/HighContrast/_colors-hc.scss | 2 ++
3 files changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gtk/theme/Adwaita/_colors.scss b/gtk/theme/Adwaita/_colors.scss
index 958162c6f2..825b13125b 100644
--- a/gtk/theme/Adwaita/_colors.scss
+++ b/gtk/theme/Adwaita/_colors.scss
@@ -71,3 +71,4 @@ $switch_bg_color: $selected_bg_color;
$switch_borders_color: if($variant == 'light',darken($switch_bg_color,15%),darken($switch_bg_color,30%));
$focus_border_color: if($variant == 'light', transparentize($selected_bg_color, 0.5),
transparentize($selected_bg_color, 0.3));
$alt_focus_border_color: if($variant == 'light', transparentize(white, 0.2), transparentize(white,0.7));
+$dim_label_opacity: 0.55;
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index c61c6a8f23..24e0ab87d3 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -180,7 +180,7 @@ label {
}
.dim-label {
- opacity: 0.55;
+ opacity: $dim_label_opacity;
text-shadow: none;
}
diff --git a/gtk/theme/HighContrast/_colors-hc.scss b/gtk/theme/HighContrast/_colors-hc.scss
index 3533b6e90b..b91e12ca38 100644
--- a/gtk/theme/HighContrast/_colors-hc.scss
+++ b/gtk/theme/HighContrast/_colors-hc.scss
@@ -20,3 +20,5 @@ $insensitive_borders_color: mix($borders_color, $bg_color, 80%);
//focus rings
$focus_border_color: if($variant == 'light', transparentize($selected_bg_color, 0.2), transparentize(white,
0.4));
$alt_focus_border_color: if($variant == 'light', white, transparentize(white,0.4));
+
+$dim_label_opacity: 0.9;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]