summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2023-03-20 23:38:35 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2023-03-20 23:46:08 +0100
commita2076dd537544813b9936bd9e79654f3401c43b2 (patch)
tree681e10c53d334576cdbaa627577874bd6bb7a89b
parent75f9379cd58d0bd29587fd34e3596124b4dd594d (diff)
downloadgtk+-a2076dd537544813b9936bd9e79654f3401c43b2.tar.gz
theme: Use 0.5 opacity for disabled pictures
If a GtkImage is using an icon we use a gtk-icon-filter to se the icon opacity when in insensitive state, however when using other kinds of pictures we do not apply the same style leading to an inconsistent result. Closes: #5683
-rw-r--r--gtk/theme/Default/_common.scss4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/theme/Default/_common.scss b/gtk/theme/Default/_common.scss
index 6e8aa4e503..7135eba9ac 100644
--- a/gtk/theme/Default/_common.scss
+++ b/gtk/theme/Default/_common.scss
@@ -43,6 +43,10 @@ image:disabled {
-gtk-icon-filter: opacity(0.5);
}
+picture:disabled {
+ opacity: 0.5;
+}
+
.view,
%view {
color: $text_color;