fix: render light palettes with matching appearance
This commit is contained in:
@@ -28,7 +28,7 @@ func livePaletteReloadsGeneratedColorsKeepsOverridesAndRetainsLastValidPalette()
|
||||
}
|
||||
defer { NotificationCenter.default.removeObserver(observer) }
|
||||
try Data("theme = 'tint'\ncolors.accent = '#ffffff'\n".utf8).write(to: config)
|
||||
try Data(##"{"colors":{"background":"#123456","accent":"#ff0000","text":"#000000"}}"##.utf8)
|
||||
try Data(##"{"variant":"dark","colors":{"background":"#123456","accent":"#ff0000","text":"#000000"}}"##.utf8)
|
||||
.write(to: theme)
|
||||
#expect(ThemePalette.reload(from: directory))
|
||||
let firstBackground = ThemePalette.background
|
||||
|
||||
Reference in New Issue
Block a user