[nautilus] style: Fix free disk space caption dot color
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] style: Fix free disk space caption dot color
- Date: Sun, 4 Sep 2022 16:08:20 +0000 (UTC)
commit ba1f41b59268f980d639a3d15256a223bf918c37
Author: António Fernandes <antoniof gnome org>
Date: Sun Sep 4 17:05:08 2022 +0100
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.
src/resources/style-hc.css | 4 ++++
src/resources/style.css | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
---
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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]