Add custom theme

This commit is contained in:
kwaroran
2024-11-02 14:28:28 +09:00
parent 864715df85
commit c0f088309f
6 changed files with 184 additions and 24 deletions

View File

@@ -57,7 +57,7 @@
<OptionInput value="mobilechat" >Mobile Chat</OptionInput>
<OptionInput value="cardboard" >CardBoard</OptionInput>
<!-- <OptionInput value="custom" >Custom GUI</OptionInput> -->
<OptionInput value="customHTML" >Custom HTML</OptionInput>
</SelectInput>
{#if DBState.db.theme === "custom"}
@@ -67,6 +67,12 @@
{/if}
{#if DBState.db.theme === 'customHTML'}
<span class="text-textcolor mt-4">{language.chatHTML} <Help key="chatHTML"/></span>
<TextAreaInput bind:value={DBState.db.guiHTML} />
{/if}
{#if DBState.db.theme === "waifu"}
<span class="text-textcolor mt-4">{language.waifuWidth}</span>
<SliderInput min={50} max={200} bind:value={DBState.db.waifuWidth} />