From 669a9f07770d77d8895e5460d8d2be27fa9307d0 Mon Sep 17 00:00:00 2001 From: Sine Jespersen Date: Fri, 13 Jun 2025 13:16:11 +0200 Subject: [PATCH] highContrastMode (for accessibility) on text color in add connection modal --- src/lib/components/AddConnectionModal.svelte | 54 ++++++++++++++++---- 1 file changed, 45 insertions(+), 9 deletions(-) diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index dd1d84561..b65f0ef8e 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -3,7 +3,7 @@ import { getContext, onMount } from 'svelte'; const i18n = getContext('i18n'); - import { models } from '$lib/stores'; + import { settings } from '$lib/stores'; import { verifyOpenAIConnection } from '$lib/apis/openai'; import { verifyOllamaConnection } from '$lib/apis/ollama'; @@ -258,7 +258,12 @@
- +
-
{$i18n.t('Key')}
+
-
{$i18n.t('Prefix ID')}
+
-
{$i18n.t('API Version')}
+
-
{$i18n.t('Tags')}
+
+ {$i18n.t('Tags')} +
-
{$i18n.t('Model IDs')}
+
+ {$i18n.t('Model IDs')} +
{#if modelIds.length > 0} @@ -413,7 +444,10 @@ {/each}
{:else} -
+
{#if ollama} {$i18n.t('Leave empty to include all models from "{{url}}/api/tags" endpoint', { url: url @@ -438,7 +472,9 @@