Skip to content

Commit

Permalink
Set text color to --result-text-color
Browse files Browse the repository at this point in the history
Previously, we set the text color to `--search-text-color`.
That would create contrast issues if search background
color is considerably different from the window color.

Since the background color for the HTML is set to
`--window-color`, and since in the Alfred UI, the
result text is displayed directly on top of it, we
can be sure that `--window-color` and `--result-text-color`
will always provide good contrast. (and if they don't,
then the Alfred theme is as useless as the extra pane).
  • Loading branch information
mr-pennyworth committed Feb 9, 2024
1 parent e87d3ed commit 2c8748a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dict-entry.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
:root
{
--secondary-label: var(--result-subtext-color, #eee);
--text: var(--search-text-color, #eee);
--text: var(--result-text-color, #eee);
--link: var(--result-text-colorSelected, var(--link));
}

html
{
background-color: var(--window-color, #1d1e28);
color: var(--search-text-color, #eee);
color: var(--result-text-color, #eee);
}

body
Expand Down

0 comments on commit 2c8748a

Please sign in to comment.