From e085bf409177eb58f6f1c76ba6334729b39afddd Mon Sep 17 00:00:00 2001 From: L&H Date: Wed, 22 Nov 2023 13:25:02 +0800 Subject: [PATCH] feat: lower img contrast in dark mode --- src/sheets/popup.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sheets/popup.css b/src/sheets/popup.css index 5be86a3..2470f44 100644 --- a/src/sheets/popup.css +++ b/src/sheets/popup.css @@ -6,6 +6,7 @@ --act-disabled-bg-color: rgb(229 233 239); --act-shadow-color-1: #e3e3e3; --act-shadow-color-2: rgb(229 233 239 / 0.3); + --act-img-filter-contrast: 1; } @media (prefers-color-scheme: dark) { @@ -14,7 +15,8 @@ --act-bg-color: #353535; --act-disabled-bg-color: #000; --act-shadow-color-1: #333; - --act-shadow-color-2: #fff + --act-shadow-color-2: #fff; + --act-img-filter-contrast: 0.6; } } @@ -71,6 +73,7 @@ img { margin: auto 4px auto 8px; width: 16px; height: 16px; + filter: contrast(var(--act-img-filter-contrast)); } span {