Added experimental theme color picker

This commit is contained in:
2018-11-23 19:11:46 +09:00
parent 6052ffd1d5
commit 38e8a5df11
8 changed files with 74 additions and 14 deletions

View File

@ -41,6 +41,9 @@ export async function save(arn: AnimeNotifier, input: HTMLElement) {
} else if(apiEndpoint.startsWith("/api/settings/") && input.dataset.field === "Theme") {
// Apply theme instantly
applyTheme((input as HTMLInputElement).value)
// Reload to update theme settings
return arn.reloadContent()
} else {
return arn.reloadContent()
}