[gtk] Adwaita: make insensitive slightly less sensitive
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] Adwaita: make insensitive slightly less sensitive
- Date: Thu, 26 Mar 2020 14:56:42 +0000 (UTC)
commit bf3ccaa1bfb8d1bedb019a7057c01cf2d06eee89
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Mar 26 15:35:01 2020 +0100
Adwaita: make insensitive slightly less sensitive
- will expose itself even more in HC
gtk/theme/Adwaita/_colors.scss | 2 +-
gtk/theme/Adwaita/_common.scss | 10 ++++++++--
2 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_colors.scss b/gtk/theme/Adwaita/_colors.scss
index c565f706b0..039c1e0515 100644
--- a/gtk/theme/Adwaita/_colors.scss
+++ b/gtk/theme/Adwaita/_colors.scss
@@ -50,7 +50,7 @@ $drop_target_color: #4e9a06;
//insensitive state derived colors
$insensitive_fg_color: mix($fg_color, $bg_color, 50%);
$insensitive_bg_color: mix($bg_color, $base_color, 60%);
-$insensitive_borders_color: $borders_color;
+$insensitive_borders_color: mix($borders_color, $bg_color, 80%);
//colors for the backdrop state, derived from the main colors.
$backdrop_base_color: if($variant == 'light', darken($base_color, 1%), lighten($base_color, 1%));
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index bbb9029ce7..78d5c468cb 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -2520,14 +2520,20 @@ treeview.view radio:selected { &:focus, & { @extend %radio; }} // This is a work
border-radius: 3px;
background-color: $dark_fill;
- &:disabled { background-color: $insensitive_bg_color; }
+ &:disabled {
+ background-color: $insensitive_bg_color;
+ borders-color: $insensitive_borders_color;
+ }
&:backdrop {
background-color: $backdrop_dark_fill;
border-color: $backdrop_borders_color;
transition: $backdrop_transition;
- &:disabled { background-color: $insensitive_bg_color; }
+ &:disabled {
+ background-color: $insensitive_bg_color;
+ borders-color: $insensitive_borders_color;
+ }
}
// ...on selected list rows
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]