A local-first personal finance app
fix tag colors when using the light theme as system default (#5457)
Matt Fiddaman380fae1ccdde
diff --git a/packages/desktop-client/src/style/tags.ts b/packages/desktop-client/src/style/tags.tsindex 76dd9b870c..032672f568 100644--- a/packages/desktop-client/src/style/tags.ts+++ b/packages/desktop-client/src/style/tags.ts@@ -25,6 +25,12 @@ export function useTags() {}function getTagCSSColors(theme: Theme, color?: string | null) {+ if (theme === 'auto') {+ theme = window.matchMedia('(prefers-color-scheme: light)').matches+ ? 'light'+ : 'dark';+ }+if (theme === 'light') {return [color ? `${color} !important` : themeStyle.noteTagText,diff --git a/upcoming-release-notes/5457.md b/upcoming-release-notes/5457.mdnew file mode 100644index 0000000000..18cc81674f--- /dev/null+++ b/upcoming-release-notes/5457.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [matt-fidd]+---++Fix tag colors when using the light theme as system default