mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
fix tag colors when using the light theme as system default (#5457)
* fix tag colouring on system default light theme * note
This commit is contained in:
@@ -25,6 +25,12 @@ export function useTags() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getTagCSSColors(theme: Theme, color?: string | null) {
|
function getTagCSSColors(theme: Theme, color?: string | null) {
|
||||||
|
if (theme === 'auto') {
|
||||||
|
theme = window.matchMedia('(prefers-color-scheme: light)').matches
|
||||||
|
? 'light'
|
||||||
|
: 'dark';
|
||||||
|
}
|
||||||
|
|
||||||
if (theme === 'light') {
|
if (theme === 'light') {
|
||||||
return [
|
return [
|
||||||
color ? `${color} !important` : themeStyle.noteTagText,
|
color ? `${color} !important` : themeStyle.noteTagText,
|
||||||
|
|||||||
6
upcoming-release-notes/5457.md
Normal file
6
upcoming-release-notes/5457.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
category: Bugfix
|
||||||
|
authors: [matt-fidd]
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix tag colors when using the light theme as system default
|
||||||
Reference in New Issue
Block a user