[gtk/wip/jimmac/dark-variant-increase-contrast] Adwaita:dark increase contrast for text views
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/dark-variant-increase-contrast] Adwaita:dark increase contrast for text views
- Date: Mon, 23 Mar 2020 15:23:40 +0000 (UTC)
commit 290dc112594bbc85c9df3c77cace160157187789
Author: Jakub Steiner <jimmac gmail com>
Date: Wed Mar 18 19:37:05 2020 +0100
Adwaita:dark increase contrast for text views
- address legibility concerns by increasing the global contrast
Fixes https://gitlab.gnome.org/GNOME/gnome-terminal/issues/233
gtk/theme/Adwaita/_colors.scss | 6 +++---
gtk/theme/Adwaita/_common.scss | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_colors.scss b/gtk/theme/Adwaita/_colors.scss
index c565f706b0..ac5470b8f7 100644
--- a/gtk/theme/Adwaita/_colors.scss
+++ b/gtk/theme/Adwaita/_colors.scss
@@ -2,9 +2,9 @@
// it gets @if ed depending on $variant
-$base_color: if($variant == 'light', #ffffff, lighten(desaturate(#241f31, 100%), 2%));
+$base_color: if($variant == 'light', #ffffff, darken(desaturate(#241f31, 100%),6%));
$text_color: if($variant == 'light', black, white);
-$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 4%));
+$bg_color: if($variant == 'light', #f6f5f4, darken(desaturate(#3d3846, 100%), 10%));
$fg_color: if($variant == 'light', #2e3436, #eeeeec);
$selected_fg_color: #ffffff;
@@ -16,7 +16,7 @@ $borders_edge: if($variant == 'light', transparentize(white, 0.2), transparentiz
$link_color: if($variant == 'light', darken($selected_bg_color, 10%), lighten($selected_bg_color, 20%));
$link_visited_color: if($variant == 'light', darken($selected_bg_color, 20%), lighten($selected_bg_color,
10%));
$top_hilight: $borders_edge;
-$dark_fill: mix($borders_color, $bg_color, 50%);
+$dark_fill: if($variant == 'light', mix($borders_color, $bg_color, 50%), darken($bg_color, 7%));
$headerbar_color: if($variant == 'light', lighten($bg_color, 5%), darken($bg_color, 3%));
$menu_color: if($variant == 'light', $base_color, mix($bg_color, $base_color, 20%));
$popover_bg_color: $bg_color;
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index bbb9029ce7..3b73c52228 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1791,7 +1791,7 @@ treeview.view {
padding: 0 6px;
background-image: none;
border-style: none solid solid none;
- border-color: $bg_color;
+ border-color: darken($bg_color,10%);
border-radius: 0;
text-shadow: none;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]