0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-01 09:22:39 +00:00
VueTube/NUXT/pages/mods/tweaks.vue

57 lines
1.5 KiB
Vue
Raw Normal View History

2022-03-21 05:13:21 +00:00
<template>
<!-- !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"
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
>
<!-- TODO: outer radius -->
<!-- TODO: Dense Navbar -->
<!-- TODO: Disable Top Bar -->
<!-- TODO: Top and Bottom bar color selection -->
<v-divider v-if="roundTweak < 1" />
2022-03-31 06:01:29 +00:00
<v-card
flat
class="ma-4 px-6 background"
2022-03-31 23:33:39 +00:00
style="transition-duration: 0.3s; transition-property: border-radius"
:class="
roundTweak > 0 ? ($vuetify.theme.dark ? 'lighten-1' : 'darken-1') : ''
"
2022-03-31 06:01:29 +00:00
:style="{
borderRadius: `${roundTweak / 2}rem`,
}"
>
2022-03-31 21:26:53 +00:00
<h3 class="mt-5">Rounded Corners</h3>
2022-03-21 05:13:21 +00:00
<v-slider
2022-03-21 23:47:11 +00:00
v-model="roundTweak"
2022-03-31 06:01:29 +00:00
class="mr-2 mt-5"
2022-03-21 05:13:21 +00:00
:max="4"
step="1"
thumb-size="64"
@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 {
computed: {
roundTweak: {
get() {
return this.$store.state.tweaks.roundTweak;
},
set(value) {
this.$store.commit("tweaks/setRoundTweak", value);
},
},
},
};
</script>