diff options
author | António Fernandes <antoniof@gnome.org> | 2022-09-04 17:05:08 +0100 |
---|---|---|
committer | António Fernandes <antoniof@gnome.org> | 2022-09-04 17:05:08 +0100 |
commit | ba1f41b59268f980d639a3d15256a223bf918c37 (patch) | |
tree | c0c67387e3a35a5ec9672e6581c89d0706f4ce21 | |
parent | efeecb449a38d7134694bbcd0637417149ee9220 (diff) | |
download | nautilus-ba1f41b59268f980d639a3d15256a223bf918c37.tar.gz |
style: Fix free disk space caption dot color
It hardcodes a color which matches only in light mode, and only if high
contrast is not enabled.
Instead derive from currentColor to get light/dark automatic support
and double the alpha opacity on high contrast.
The alpha values were copied from libadwaita's color used by level bar.
-rw-r--r-- | src/resources/style-hc.css | 4 | ||||
-rw-r--r-- | src/resources/style.css | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/resources/style-hc.css b/src/resources/style-hc.css index 1f6327824..54e2cff89 100644 --- a/src/resources/style-hc.css +++ b/src/resources/style-hc.css @@ -10,3 +10,7 @@ #NautilusQueryEditorTag { box-shadow: inset 0 0 0 1px @borders; } + +.disk-space-free { + color: alpha(currentColor, 0.3); +} diff --git a/src/resources/style.css b/src/resources/style.css index 205811c53..54cf22953 100644 --- a/src/resources/style.css +++ b/src/resources/style.css @@ -118,7 +118,7 @@ } .disk-space-free { - color: alpha(@dark_5, 0.12); + color: alpha(currentColor, 0.15); } .disk-space-used { color: @accent_bg_color; |