add dark theme

This commit is contained in:
Julian Freeman
2026-02-22 18:13:05 -04:00
parent 1e378b20e0
commit 786dec41e4
3 changed files with 106 additions and 72 deletions

View File

@@ -32,6 +32,7 @@ Produce only the {TARGET_LANG} translation, without any additional explanations
{TEXT}`;
export const useSettingsStore = defineStore('settings', () => {
const isDark = useLocalStorage('is-dark', false);
const ollamaApiAddress = useLocalStorage('ollama-api-address', 'http://localhost:11434');
const modelName = useLocalStorage('model-name', 'translategemma:12b');
const enableStreaming = useLocalStorage('enable-streaming', true);
@@ -56,6 +57,7 @@ export const useSettingsStore = defineStore('settings', () => {
};
return {
isDark,
ollamaApiAddress,
modelName,
enableStreaming,