[gtk/wip/jimmac/flat-buttons] Adwaita: fine tune flat button styling
- From: Jakub Steiner <jimmac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/jimmac/flat-buttons] Adwaita: fine tune flat button styling
- Date: Thu, 7 Jan 2021 11:14:28 +0000 (UTC)
commit 0cda6f42b8e2a8bf60b4f890264552e3247b68ee
Author: Jakub Steiner <jimmac gmail com>
Date: Thu Jan 7 12:12:55 2021 +0100
Adwaita: fine tune flat button styling
- enough contrast for hover and active, while noticably different in
normal nad headerbar context (and both light and dark variants).
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3481
gtk/theme/Adwaita/_common.scss | 2 +-
gtk/theme/Adwaita/_drawing.scss | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index f5963fcba9..625744278c 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -1397,7 +1397,7 @@ windowcontrols {
min-height: 0;
&:hover {
//special case hover colors inside a headerbar
- @include button(undecorated-hover,$c:darken($headerbar_bg_color,10%));
+ @include button(undecorated-hover,$c:darken($headerbar_bg_color,6%));
}
&:active,
&:checked { @include button(undecorated-active,$c:darken($headerbar_bg_color,10%)); }
diff --git a/gtk/theme/Adwaita/_drawing.scss b/gtk/theme/Adwaita/_drawing.scss
index aca1fa8651..87dcad9130 100644
--- a/gtk/theme/Adwaita/_drawing.scss
+++ b/gtk/theme/Adwaita/_drawing.scss
@@ -420,9 +420,8 @@
text-shadow: none;
@if $variant == 'light' {
background-color: darken($c,14%);
- }
- @else {
- background-color: darken($c,10%);
+ } @else {
+ background-color: darken($c,1%);
}
}
@else if $t==undecorated-active {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]