2022-03-21 05:13:21 +00:00
|
|
|
<template>
|
2022-05-13 06:20:15 +00:00
|
|
|
<!-- !IMPORTANT: don't let autoformatter format this style to multiline or else it breaks ¯\_(ツ)_/¯ -->
|
2022-05-05 04:28:51 +00:00
|
|
|
<div
|
|
|
|
class="d-flex flex-column justify-end"
|
2022-05-13 22:25:47 +00:00
|
|
|
style="
|
|
|
|
min-height: calc(100vh - 8rem - env(safe-area-inset-top) - env(safe-area-inset-bottom)) !important;
|
|
|
|
"
|
2022-05-05 04:28:51 +00:00
|
|
|
>
|
2022-05-13 06:20:15 +00:00
|
|
|
<!-- TODO: outer radius -->
|
|
|
|
<!-- TODO: Dense Navbar -->
|
|
|
|
<!-- TODO: Disable Top Bar -->
|
|
|
|
<!-- TODO: Top and Bottom bar color selection -->
|
2022-03-31 06:01:29 +00:00
|
|
|
<v-card
|
|
|
|
flat
|
2022-05-18 03:53:03 +00:00
|
|
|
class="mx-4 my-2 px-4 py-2 d-flex flex-row justify-between background"
|
2022-03-31 23:33:39 +00:00
|
|
|
style="transition-duration: 0.3s; transition-property: border-radius"
|
2022-05-13 06:20:15 +00:00
|
|
|
:class="
|
|
|
|
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
|
|
|
|
"
|
2022-03-31 06:01:29 +00:00
|
|
|
:style="{
|
|
|
|
borderRadius: `${roundTweak / 2}rem`,
|
|
|
|
}"
|
|
|
|
>
|
2022-05-13 22:25:47 +00:00
|
|
|
<h3
|
2022-05-18 03:53:03 +00:00
|
|
|
class="my-auto background--text"
|
2022-05-13 22:25:47 +00:00
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-3' : 'text--darken-3'"
|
|
|
|
>
|
2022-06-15 19:29:52 +00:00
|
|
|
{{ lang.fullscreen }}
|
2022-05-13 22:25:47 +00:00
|
|
|
</h3>
|
|
|
|
<v-spacer />
|
2022-05-18 03:53:03 +00:00
|
|
|
<v-switch
|
|
|
|
disabled
|
|
|
|
class="mt-2"
|
|
|
|
style="pointer-events: none"
|
|
|
|
persistent-hint
|
|
|
|
inset
|
|
|
|
/>
|
2022-05-13 22:25:47 +00:00
|
|
|
</v-card>
|
|
|
|
|
|
|
|
<v-divider v-if="!roundTweak" />
|
|
|
|
|
|
|
|
<v-card
|
|
|
|
flat
|
2022-05-18 03:53:03 +00:00
|
|
|
class="mx-4 my-2 px-4 py-2 d-flex flex-row justify-between background"
|
2022-05-13 22:25:47 +00:00
|
|
|
style="transition-duration: 0.3s; transition-property: border-radius"
|
|
|
|
:class="
|
|
|
|
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
|
|
|
|
"
|
|
|
|
:style="{
|
|
|
|
borderRadius: `${roundTweak / 2}rem`,
|
|
|
|
}"
|
|
|
|
>
|
|
|
|
<h3
|
2022-05-18 03:53:03 +00:00
|
|
|
class="my-auto background--text"
|
2022-05-13 22:25:47 +00:00
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-3' : 'text--darken-3'"
|
|
|
|
>
|
2022-06-15 19:29:52 +00:00
|
|
|
{{ lang.navbarblur }}
|
2022-05-13 22:25:47 +00:00
|
|
|
</h3>
|
|
|
|
<v-spacer />
|
2022-05-18 03:53:03 +00:00
|
|
|
<v-switch
|
|
|
|
disabled
|
|
|
|
class="mt-2"
|
|
|
|
style="pointer-events: none"
|
|
|
|
persistent-hint
|
|
|
|
inset
|
|
|
|
/>
|
2022-05-13 22:25:47 +00:00
|
|
|
</v-card>
|
|
|
|
|
|
|
|
<v-divider v-if="!roundTweak" />
|
|
|
|
|
2022-06-15 19:29:52 +00:00
|
|
|
<h3 class="ml-8 mt-8">{{ lang.roundedcorners }}</h3>
|
2022-05-18 03:53:03 +00:00
|
|
|
|
2022-05-13 22:25:47 +00:00
|
|
|
<v-card
|
|
|
|
flat
|
|
|
|
class="mx-4 my-2 background"
|
2022-05-18 03:53:03 +00:00
|
|
|
style="
|
|
|
|
transition-duration: 0.3s;
|
|
|
|
transition-property: border-radius;
|
|
|
|
overflow: hidden;
|
2022-05-13 22:25:47 +00:00
|
|
|
"
|
|
|
|
:style="{
|
|
|
|
borderRadius: `${roundTweak / 2}rem`,
|
|
|
|
}"
|
|
|
|
>
|
2022-05-18 03:53:03 +00:00
|
|
|
<!-- margin: $store.state.tweaks.roundTweak > 0 ? '0 1rem' : '0', -->
|
2022-05-13 22:25:47 +00:00
|
|
|
<v-card
|
|
|
|
flat
|
2022-05-18 04:22:14 +00:00
|
|
|
class="mb-1 px-4 py-2 d-flex flex-row justify-between background"
|
2022-05-18 03:53:03 +00:00
|
|
|
:class="
|
|
|
|
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
|
|
|
|
"
|
|
|
|
:style="{
|
2022-05-18 04:22:14 +00:00
|
|
|
borderRadius: `${roundTweak / 12}rem`,
|
2022-05-18 03:53:03 +00:00
|
|
|
}"
|
2022-05-13 22:25:47 +00:00
|
|
|
@click="
|
|
|
|
(roundThumb = !roundThumb), $vuetube.haptics.hapticsImpactLight(1)
|
|
|
|
"
|
|
|
|
>
|
2022-05-18 03:53:03 +00:00
|
|
|
<div
|
2022-05-18 04:22:14 +00:00
|
|
|
class="my-auto background--text"
|
2022-05-18 03:53:03 +00:00
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
|
|
|
|
>
|
2022-06-15 19:29:52 +00:00
|
|
|
{{ lang.roundthumbnails }}
|
2022-05-18 03:53:03 +00:00
|
|
|
</div>
|
2022-05-13 22:25:47 +00:00
|
|
|
<v-spacer />
|
|
|
|
<v-switch
|
|
|
|
v-model="roundThumb"
|
|
|
|
style="pointer-events: none"
|
|
|
|
persistent-hint
|
2022-05-18 03:53:03 +00:00
|
|
|
class="mt-2"
|
2022-05-13 22:25:47 +00:00
|
|
|
inset
|
|
|
|
/>
|
|
|
|
</v-card>
|
|
|
|
<v-card
|
|
|
|
flat
|
2022-05-18 04:22:14 +00:00
|
|
|
class="mb-1 px-4 py-2 d-flex flex-row justify-between background"
|
2022-05-18 03:53:03 +00:00
|
|
|
:class="
|
|
|
|
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
|
|
|
|
"
|
|
|
|
:style="{
|
2022-05-18 04:22:14 +00:00
|
|
|
borderRadius: `${roundTweak / 12}rem`,
|
2022-05-18 03:53:03 +00:00
|
|
|
}"
|
2022-05-13 22:25:47 +00:00
|
|
|
@click="
|
|
|
|
(roundWatch = !roundWatch), $vuetube.haptics.hapticsImpactLight(1)
|
|
|
|
"
|
|
|
|
>
|
2022-05-18 03:53:03 +00:00
|
|
|
<div
|
2022-05-18 04:22:14 +00:00
|
|
|
class="my-auto background--text"
|
2022-05-18 03:53:03 +00:00
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
|
|
|
|
>
|
2022-06-15 19:29:52 +00:00
|
|
|
{{ lang.roundwatchpagecomponents }}
|
2022-05-18 03:53:03 +00:00
|
|
|
</div>
|
2022-05-13 22:25:47 +00:00
|
|
|
<v-spacer />
|
|
|
|
<v-switch
|
|
|
|
v-model="roundWatch"
|
|
|
|
style="pointer-events: none"
|
|
|
|
persistent-hint
|
2022-05-18 03:53:03 +00:00
|
|
|
class="mt-2"
|
2022-05-13 22:25:47 +00:00
|
|
|
inset
|
|
|
|
/>
|
|
|
|
</v-card>
|
2022-03-21 05:13:21 +00:00
|
|
|
<v-slider
|
2022-03-21 23:47:11 +00:00
|
|
|
v-model="roundTweak"
|
2022-05-18 04:22:14 +00:00
|
|
|
class="pr-4 pl-4 pt-4 pb-1 background"
|
2022-03-21 05:13:21 +00:00
|
|
|
:max="4"
|
2022-06-15 19:29:52 +00:00
|
|
|
:label="lang.radius"
|
2022-05-13 22:25:47 +00:00
|
|
|
step=".25"
|
2022-03-21 05:13:21 +00:00
|
|
|
thumb-size="64"
|
2022-05-18 03:53:03 +00:00
|
|
|
:class="
|
|
|
|
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
|
|
|
|
"
|
|
|
|
:style="{
|
2022-05-18 04:22:14 +00:00
|
|
|
borderRadius: `${roundTweak / 12}rem`,
|
2022-05-18 03:53:03 +00:00
|
|
|
}"
|
2022-03-31 23:58:37 +00:00
|
|
|
@input="$vuetube.haptics.hapticsImpactLight(0)"
|
2022-03-21 05:13:21 +00:00
|
|
|
>
|
2022-03-21 23:47:11 +00:00
|
|
|
<template #thumb-label="{ value }">
|
2022-03-21 05:13:21 +00:00
|
|
|
<div
|
2022-03-31 06:01:29 +00:00
|
|
|
class="pa-4 background text-red red-text red--text"
|
2022-03-21 05:13:21 +00:00
|
|
|
:style="{ borderRadius: value * 3 + 'px !important' }"
|
|
|
|
></div>
|
|
|
|
</template>
|
|
|
|
</v-slider>
|
|
|
|
</v-card>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-06-15 19:29:52 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
lang: {}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.lang = this.$lang("mods").tweaks
|
|
|
|
},
|
2022-03-21 05:13:21 +00:00
|
|
|
computed: {
|
|
|
|
roundTweak: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.tweaks.roundTweak;
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
this.$store.commit("tweaks/setRoundTweak", value);
|
|
|
|
},
|
|
|
|
},
|
2022-05-13 22:25:47 +00:00
|
|
|
roundThumb: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.tweaks.roundThumb;
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
this.$store.commit("tweaks/setRoundThumb", value);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
roundWatch: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.tweaks.roundWatch;
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
this.$store.commit("tweaks/setRoundWatch", value);
|
|
|
|
},
|
|
|
|
},
|
2022-03-21 05:13:21 +00:00
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|