fix: Reduce sensitivity of dark icon switching

fix: Layout issue in icon picker in dark mode
closes #2658
This commit is contained in:
Tom Moor
2021-10-12 23:02:14 -07:00
parent e0405cca0e
commit a6b3dbc894
3 changed files with 2 additions and 4 deletions

View File

@ -20,7 +20,7 @@ function ResolvedCollectionIcon({ collection, expanded, size }: Props) {
// otherwise it will be impossible to see against the dark background.
const color =
ui.resolvedTheme === "dark" && collection.color !== "currentColor"
? getLuminance(collection.color) > 0.12
? getLuminance(collection.color) > 0.09
? collection.color
: "currentColor"
: collection.color;