Skip to content

Commit

Permalink
feat: lower img contrast in dark mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqours committed Nov 22, 2023
1 parent 322975b commit e085bf4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sheets/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
}
}

Expand Down Expand Up @@ -71,6 +73,7 @@ img {
margin: auto 4px auto 8px;
width: 16px;
height: 16px;
filter: contrast(var(--act-img-filter-contrast));
}

span {
Expand Down

0 comments on commit e085bf4

Please sign in to comment.