File: stylesheet-common-Use-disabled-opacity-for-disabled-pictu.patch

package info (click to toggle)
libadwaita-1 1.8.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,252 kB
  • sloc: ansic: 86,011; xml: 189; python: 60; sh: 30; makefile: 23; javascript: 9
file content (26 lines) | stat: -rw-r--r-- 825 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Tue, 21 Mar 2023 00:46:05 +0100
Subject: stylesheet/common: Use disabled opacity for disabled pictures

To mimic https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5689

Origin: https://gitlab.gnome.org/GNOME/libadwaita/-/merge_requests/814
---
 src/stylesheet/_common.scss | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/stylesheet/_common.scss b/src/stylesheet/_common.scss
index 86133d3..6e60409 100644
--- a/src/stylesheet/_common.scss
+++ b/src/stylesheet/_common.scss
@@ -34,6 +34,10 @@ dnd {
   -gtk-icon-size: 32px;
 }
 
+picture:disabled {
+  opacity: $disabled_opacity;
+}
+
 %osd,
 .osd:not(progressbar):not(button):not(menubutton):not(splitbutton):not(inline-view-switcher) {
   --accent-bg-color: RGB(255 255 255 / 75%);