mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-15 04:05:14 +00:00
feat: ui accent colors (#643)
Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import AppConfigService from '$lib/services/app-config-service';
|
||||
import type { AppConfig } from '$lib/types/application-configuration';
|
||||
import { applyAccentColor } from '$lib/utils/accent-color-util';
|
||||
import { writable } from 'svelte/store';
|
||||
|
||||
const appConfigStore = writable<AppConfig>();
|
||||
@@ -8,10 +9,11 @@ const appConfigService = new AppConfigService();
|
||||
|
||||
const reload = async () => {
|
||||
const appConfig = await appConfigService.list();
|
||||
appConfigStore.set(appConfig);
|
||||
set(appConfig);
|
||||
};
|
||||
|
||||
const set = (appConfig: AppConfig) => {
|
||||
applyAccentColor(appConfig.accentColor);
|
||||
appConfigStore.set(appConfig);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user