{ saveSettings({ floatingActionButtons }); }} /> { saveSettings({ imageCompressionSize }); }} /> { let reader = new FileReader(); reader.onload = (event) => { let originalImageUrl = `${(event.target as FileReader).result}`; backgroundImageUrl = originalImageUrl; saveSettings({ backgroundImageUrl }); }; if ( inputFiles && inputFiles.length > 0 && ['image/gif', 'image/webp', 'image/jpeg', 'image/png'].includes(inputFiles[0]['type']) ) { reader.readAsDataURL(inputFiles[0]); } else { console.log(`Unsupported File Type '${inputFiles?.[0]?.type}'.`); inputFiles = null; } }} />

{$i18n.t('settings.personal.interface.sections.ui.title')}

{#if textScale !== null && (showTextScaleSlider || !isDefaultSetting('textScale'))}
{ setTextScaleHandler(textScale ?? 1); }} aria-labelledby="ui-scale-label" aria-valuemin="1" aria-valuemax="1.5" aria-valuenow={textScale} aria-valuetext={`${textScale}x`} />
{/if}

{$i18n.t('Set a local zoom level for the app interface.')}

{#if showFontFamilyInput || (fontFamily !== null && !isDefaultSetting('fontFamily'))}
previewFontFamily(event.currentTarget.value)} on:change={(event) => setFontFamilyHandler(event.currentTarget.value)} />
{/if}

{$i18n.t('settings.personal.interface.fontFamily.description')}

{ saveSettings({ highContrastMode }); }} />

{$i18n.t('settings.personal.interface.accessibilityMode.description')}

{ saveSettings({ showChatTitleInTab }); }} />

{$i18n.t('settings.personal.interface.displayChatTitleInTab.description')}

{#if $visibleControls['settings.user_location']}
{ toggleUserLocation(); }} />

{$i18n.t('settings.personal.interface.allowUserLocation.description')}

{/if}
{ saveSettings({ hapticFeedback }); }} />

{$i18n.t('Use device vibration feedback on supported Android devices.')}

{ saveSettings({ copyFormatted }); }} />

{$i18n.t('settings.personal.interface.copyFormattedText.description')}

{#if isSettingsAdmin({ user: $user, config: $config })}
{ saveSettings({ showUpdateToast }); }} />

{$i18n.t('settings.personal.interface.toastNotificationsForNewUpdates.description')}

{ saveSettings({ showChangelog }); }} />

{$i18n.t('Open the changelog modal after sign-in when enabled.')}

{/if}
{$i18n.t('settings.personal.interface.sections.chat.title')}
{ saveSettings({ enableMessageQueue }); }} />

{$i18n.t('settings.personal.interface.enableMessageQueue.description')}

{$i18n.t('settings.personal.interface.chatDirection.description')}

{$i18n.t('settings.personal.interface.landingPageMode.description')}

{$i18n.t('settings.personal.interface.chatBackgroundImage.description')}

{#if $visibleControls['settings.chat_bubble']}
{ saveSettings({ chatBubble }); }} />

{$i18n.t('settings.personal.interface.chatBubbleUi.description')}

{/if} {#if !chatBubble}
{ saveSettings({ showUsername }); }} />

{$i18n.t('settings.personal.interface.displayTheUsernameInsteadOfYouInTheChat.description')}

{/if} {#if $visibleControls['settings.widescreen']}
{ saveSettings({ widescreenMode }); }} />

{$i18n.t('settings.personal.interface.widescreenMode.description')}

{/if} {#if canUseTemporaryChats({ user: $user, config: $config })}
{ saveSettings({ temporaryChatByDefault }); }} />

{$i18n.t('settings.personal.interface.temporaryChatByDefault.description')}

{/if}
{ saveSettings({ chatFadeStreamingText }); }} />

{$i18n.t('settings.personal.interface.fadeEffectForStreamingText.description')}

{ saveSettings({ renderMarkdownInUserMessages }); }} />

{$i18n.t('settings.personal.interface.renderMarkdownInUserMessages.description')}

{ saveSettings({ renderMarkdownInAssistantMessages }); }} />

{$i18n.t('settings.personal.interface.renderMarkdownInAssistantMessages.description')}

{ saveSettings({ renderMarkdownInPreviews }); }} />

{$i18n.t('settings.personal.interface.renderMarkdownInPreviews.description')}

{#if $config?.features?.enable_title_generation}
{ toggleTitleAutoGenerate(); }} />

{$i18n.t('settings.personal.interface.titleAutoGeneration.description')}

{/if} {#if $config?.features?.enable_follow_up_generation}
{ saveSettings({ autoFollowUps }); }} />

{$i18n.t('settings.personal.interface.followUpAutoGeneration.description')}

{/if} {#if $config?.features?.enable_tags_generation}
{ saveSettings({ autoTags }); }} />

{$i18n.t('settings.personal.interface.chatTagsAutoGeneration.description')}

{/if}
{ toggleResponseAutoCopy(); }} />

{$i18n.t('settings.personal.interface.autoCopyResponseToClipboard.description')}

{ saveSettings({ scrollOnResponseGeneration }); }} />

{$i18n.t('settings.personal.interface.responseAutoScroll.description')}

{ saveSettings({ scrollOnBranchChange }); }} />

{$i18n.t('settings.personal.interface.scrollOnBranchChange.description')}

{ saveSettings({ insertSuggestionPrompt }); }} />

{$i18n.t('settings.personal.interface.insertSuggestionPromptToInput.description')}

{ saveSettings({ keepFollowUpPrompts }); }} />

{$i18n.t('settings.personal.interface.keepFollowUpPromptsInChat.description')}

{ saveSettings({ insertFollowUpPrompt }); }} />

{$i18n.t('settings.personal.interface.insertFollowUpPromptToInput.description')}

{#if canRegenerateResponses({ user: $user, config: $config })}
{ saveSettings({ regenerateMenu }); }} />

{$i18n.t('settings.personal.interface.regenerateMenu.description')}

{/if}
{ saveSettings({ collapseCodeBlocks }); }} />

{$i18n.t('settings.personal.interface.alwaysCollapseCodeBlocks.description')}

{ saveSettings({ expandDetails }); }} />

{$i18n.t('settings.personal.interface.alwaysExpandDetails.description')}

{ saveSettings({ chatHoverPreview }); }} />

{$i18n.t('settings.personal.interface.chatHoverPreviews.description')}

{ saveSettings({ displayMultiModelResponsesInTabs }); }} />

{$i18n.t('settings.personal.interface.displayMultiModelResponsesInTabs.description')}

{#if hasMachine}

{$i18n.t('settings.personal.interface.machineFileDisplay.description')}

{ saveSettings({ machinePreviewAllowSameOrigin }); }} />

{$i18n.t('settings.personal.interface.machinePreviewAllowSameOrigin.description')}

{/if}
{ saveSettings({ stylizedPdfExport }); }} />

{$i18n.t('settings.personal.interface.stylizedPdfExport.description')}

{#if $visibleControls['settings.floating_action_buttons']}
{#if showFloatingActionButtons} {/if} { saveSettings({ showFloatingActionButtons }); }} />

{$i18n.t('Show the floating quick-action toolbar in chat.')}

{/if} {#if canUseWebSearch({ user: $user, config: $config })}

{$i18n.t('settings.personal.interface.webSearchInChat.description')}

{/if}
{$i18n.t('settings.personal.interface.sections.input.title')}

{$i18n.t('settings.personal.interface.enterKeyBehavior.description')}

{ saveSettings({ showInputSelections }); }} />

{$i18n.t('settings.personal.interface.showInputSelections.description')}

{#if $visibleControls['settings.rich_text_input']}
{ saveSettings({ richTextInput }); }} />

{$i18n.t('settings.personal.interface.richTextInputForChat.description')}

{/if} {#if $config?.features?.enable_autocomplete_generation}
{ saveSettings({ promptAutocomplete }); }} />

{$i18n.t('settings.personal.interface.promptAutocompletion.description')}

{/if} {#if richTextInput}
{ saveSettings({ showFormattingToolbar }); }} />

{$i18n.t('settings.personal.interface.showFormattingToolbar.description')}

{ saveSettings({ insertPromptAsRichText }); }} />

{$i18n.t('settings.personal.interface.insertPromptAsRichText.description')}

{/if} {#if $visibleControls['settings.large_text_as_file']}
{ saveSettings({ largeTextAsFile }); }} />

{$i18n.t('settings.personal.interface.pasteLargeTextAsFile.description')}

{/if} {#if ['settings.detect_artifacts', 'settings.iframe_sandbox_allow_scripts', 'settings.iframe_sandbox_allow_same_origin', 'settings.iframe_sandbox_allow_forms', 'settings.iframe_sandbox_allow_downloads'].some((id) => $visibleControls[id])}
{$i18n.t('settings.personal.interface.sections.artifacts.title')}
{/if} {#if $visibleControls['settings.detect_artifacts']}
{ saveSettings({ detectArtifacts }); }} />

{$i18n.t('settings.personal.interface.detectArtifactsAutomatically.description')}

{/if} {#if $visibleControls['settings.iframe_sandbox_allow_scripts']}
{ saveSettings({ iframeSandboxAllowScripts }); }} />

{$i18n.t('settings.personal.interface.iframeSandboxAllowScripts.description')}

{/if} {#if $visibleControls['settings.iframe_sandbox_allow_same_origin']}
{ saveSettings({ iframeSandboxAllowSameOrigin }); }} />

{$i18n.t('settings.personal.interface.iframeSandboxAllowSameOrigin.description')}

{/if} {#if $visibleControls['settings.iframe_sandbox_allow_forms']}
{ saveSettings({ iframeSandboxAllowForms }); }} />

{$i18n.t('settings.personal.interface.iframeSandboxAllowForms.description')}

{/if} {#if $visibleControls['settings.iframe_sandbox_allow_downloads']}
{ saveSettings({ iframeSandboxAllowDownloads }); }} />

{$i18n.t('settings.personal.interface.iframeSandboxAllowDownloads.description')}

{/if} {#if canUseCalls({ user: $user, config: $config })}
{$i18n.t('settings.personal.interface.sections.voice.title')}
{ saveSettings({ voiceInterruption }); }} />

{$i18n.t('settings.personal.interface.allowVoiceInterruptionInCall.description')}

{ saveSettings({ showEmojiInCall }); }} />

{$i18n.t('settings.personal.interface.displayEmojiInCall.description')}

{/if}
{$i18n.t('settings.personal.interface.sections.file.title')}

{$i18n.t('settings.personal.interface.defaultUploadMode.description')}

{#if imageCompression} {/if} { saveSettings({ imageCompression }); }} />

{$i18n.t('Compress uploaded images before sending or storage.')}

{#if imageCompression && canUseChannels({ user: $user, config: $config })}
{ saveSettings({ imageCompressionInChannels }); }} />

{$i18n.t('settings.personal.interface.compressImagesInChannels.description')}

{/if}