2022-03-21 05:13:21 +00:00
|
|
|
<template>
|
2022-03-28 19:59:08 +00:00
|
|
|
<div class="d-flex flex-column justify-end" style="min-height: 100%">
|
2022-03-31 06:01:29 +00:00
|
|
|
<v-card
|
|
|
|
flat
|
2022-03-31 21:26:53 +00:00
|
|
|
class="px-6 ma-4 mt-2 background"
|
2022-03-31 23:33:39 +00:00
|
|
|
style="transition-duration: 0.3s; transition-property: border-radius"
|
2022-03-31 06:01:29 +00:00
|
|
|
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
|
|
|
|
:style="{
|
|
|
|
borderRadius: `${roundTweak / 2}rem`,
|
|
|
|
}"
|
|
|
|
>
|
2022-03-31 21:26:53 +00:00
|
|
|
<h3 class="mt-5">Rounded Corners</h3>
|
2022-03-31 06:01:29 +00:00
|
|
|
<div
|
|
|
|
class="background--text"
|
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
|
|
|
|
>
|
|
|
|
applies to only a few elements for now
|
|
|
|
</div>
|
|
|
|
<!-- TODO: outer radius -->
|
|
|
|
<!-- TODO: Dense Navbar -->
|
|
|
|
<!-- TODO: Disable Top Bar -->
|
|
|
|
<!-- TODO: Top and Bottom bar color selection -->
|
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
|
|
|
label="Inner"
|
|
|
|
:max="4"
|
|
|
|
step="1"
|
|
|
|
thumb-size="64"
|
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 {
|
|
|
|
computed: {
|
|
|
|
roundTweak: {
|
|
|
|
get() {
|
|
|
|
return this.$store.state.tweaks.roundTweak;
|
|
|
|
},
|
|
|
|
set(value) {
|
|
|
|
this.$store.commit("tweaks/setRoundTweak", value);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|