[gtk+] adwaita: insensitive styling for views
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] adwaita: insensitive styling for views
- Date: Thu, 9 Feb 2017 02:32:57 +0000 (UTC)
commit 6eb9b57e72c6f793781c5082188e4576fc79dcf4
Author: Lapo Calamandrei <calamandrei gmail com>
Date: Wed Feb 8 16:45:51 2017 +0100
adwaita: insensitive styling for views
Add an insensitive style to views, somehow we didn't ship one, so
for example, disabled textviews looked the same as sensitive ones.
gtk/theme/Adwaita/_common.scss | 6 ++++++
gtk/theme/Adwaita/gtk-contained-dark.css | 11 +++++++++++
gtk/theme/Adwaita/gtk-contained.css | 11 +++++++++++
3 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss
index 9690f76..c168b66 100644
--- a/gtk/theme/Adwaita/_common.scss
+++ b/gtk/theme/Adwaita/_common.scss
@@ -98,6 +98,12 @@ $button_transition: all 200ms $ease-out-quad;
&:backdrop {
color: $backdrop_text_color;
background-color: $backdrop_base_color;
+ &:disabled { color: $backdrop_insensitive_color; }
+ }
+
+ &:disabled {
+ color: $insensitive_fg_color;
+ background-color: $insensitive_bg_color;
}
&:selected {
diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css
index 9a1dad9..270d140 100644
--- a/gtk/theme/Adwaita/gtk-contained-dark.css
+++ b/gtk/theme/Adwaita/gtk-contained-dark.css
@@ -64,6 +64,17 @@ textview text {
textview text:backdrop {
color: #d3d4d5;
background-color: #252a2c; }
+ .view:backdrop:disabled, iconview:backdrop:disabled,
+ .view text:backdrop:disabled,
+ iconview text:backdrop:disabled,
+ textview text:backdrop:disabled {
+ color: #566164; }
+ .view:disabled, iconview:disabled,
+ .view text:disabled,
+ iconview text:disabled,
+ textview text:disabled {
+ color: #919494;
+ background-color: #2d3234; }
.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,
diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css
index 580af98..07f8b2a 100644
--- a/gtk/theme/Adwaita/gtk-contained.css
+++ b/gtk/theme/Adwaita/gtk-contained.css
@@ -64,6 +64,17 @@ textview text {
textview text:backdrop {
color: #323232;
background-color: #fcfcfc; }
+ .view:backdrop:disabled, iconview:backdrop:disabled,
+ .view text:backdrop:disabled,
+ iconview text:backdrop:disabled,
+ textview text:backdrop:disabled {
+ color: #c3c3c0; }
+ .view:disabled, iconview:disabled,
+ .view text:disabled,
+ iconview text:disabled,
+ textview text:disabled {
+ color: #8b8e8f;
+ background-color: #f1f1f1; }
.view:selected:focus, iconview:selected:focus, .view:selected, iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]