2020-03-01 03:37:02 +00:00
|
|
|
<template>
|
2021-09-15 02:03:00 +00:00
|
|
|
<details>
|
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{{ $t("Settings.Theme Settings.Theme Settings") }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
|
|
|
<hr>
|
2020-03-01 03:37:02 +00:00
|
|
|
<ft-flex-box>
|
|
|
|
<ft-toggle-switch
|
2020-08-07 00:20:42 +00:00
|
|
|
:label="$t('Settings.Theme Settings.Match Top Bar with Main Color')"
|
2020-03-01 03:37:02 +00:00
|
|
|
:default-value="barColor"
|
|
|
|
@change="updateBarColor"
|
|
|
|
/>
|
2020-10-06 15:53:54 +00:00
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Theme Settings.Expand Side Bar by Default')"
|
|
|
|
:default-value="expandSideBar"
|
|
|
|
@change="handleExpandSideBar"
|
|
|
|
/>
|
2020-10-07 13:57:22 +00:00
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Theme Settings.Disable Smooth Scrolling')"
|
|
|
|
:default-value="disableSmoothScrollingToggleValue"
|
|
|
|
@change="handleRestartPrompt"
|
|
|
|
/>
|
2021-10-05 20:16:47 +00:00
|
|
|
<ft-toggle-switch
|
|
|
|
:label="$t('Settings.Theme Settings.Hide Side Bar Labels')"
|
|
|
|
:default-value="hideLabelsSideBar"
|
|
|
|
@change="updateHideLabelsSideBar"
|
|
|
|
/>
|
2020-10-06 15:53:54 +00:00
|
|
|
</ft-flex-box>
|
|
|
|
<ft-flex-box>
|
|
|
|
<ft-slider
|
|
|
|
:label="$t('Settings.Theme Settings.UI Scale')"
|
|
|
|
:default-value="uiScale"
|
|
|
|
:min-value="minUiScale"
|
|
|
|
:max-value="maxUiScale"
|
|
|
|
:step="uiScaleStep"
|
|
|
|
value-extension="%"
|
2021-06-11 01:22:59 +00:00
|
|
|
@change="updateUiScale(parseInt($event))"
|
2020-10-06 15:53:54 +00:00
|
|
|
/>
|
2020-03-01 03:37:02 +00:00
|
|
|
</ft-flex-box>
|
|
|
|
<br>
|
|
|
|
<ft-flex-box>
|
|
|
|
<ft-select
|
2020-08-07 00:20:42 +00:00
|
|
|
:placeholder="$t('Settings.Theme Settings.Base Theme.Base Theme')"
|
2022-03-05 08:09:32 +00:00
|
|
|
:value="baseTheme"
|
2020-03-01 03:37:02 +00:00
|
|
|
:select-names="baseThemeNames"
|
|
|
|
:select-values="baseThemeValues"
|
|
|
|
@change="updateBaseTheme"
|
|
|
|
/>
|
|
|
|
<ft-select
|
2020-08-07 00:20:42 +00:00
|
|
|
:placeholder="$t('Settings.Theme Settings.Main Color Theme.Main Color Theme')"
|
2022-03-05 08:09:32 +00:00
|
|
|
:value="mainColor"
|
2020-03-01 03:37:02 +00:00
|
|
|
:select-names="colorNames"
|
|
|
|
:select-values="colorValues"
|
|
|
|
@change="updateMainColor"
|
|
|
|
/>
|
|
|
|
<ft-select
|
2020-08-07 00:20:42 +00:00
|
|
|
:placeholder="$t('Settings.Theme Settings.Secondary Color Theme')"
|
2022-03-05 08:09:32 +00:00
|
|
|
:value="secColor"
|
2020-03-01 03:37:02 +00:00
|
|
|
:select-names="colorNames"
|
|
|
|
:select-values="colorValues"
|
|
|
|
@change="updateSecColor"
|
|
|
|
/>
|
|
|
|
</ft-flex-box>
|
2020-10-07 13:57:22 +00:00
|
|
|
<ft-prompt
|
|
|
|
v-if="showRestartPrompt"
|
|
|
|
:label="restartPromptMessage"
|
|
|
|
:option-names="restartPromptNames"
|
|
|
|
:option-values="restartPromptValues"
|
|
|
|
@click="handleSmoothScrolling"
|
|
|
|
/>
|
2021-09-15 02:03:00 +00:00
|
|
|
</details>
|
2020-03-01 03:37:02 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./theme-settings.js" />
|
2021-09-15 02:03:00 +00:00
|
|
|
<style scoped lang="sass" src="./theme-settings.sass" />
|