mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-04 18:55:04 +00:00
remove rounded corners ffs
This commit is contained in:
parent
3c1d305dea
commit
4b2d212a67
2 changed files with 2 additions and 38 deletions
|
@ -1,9 +1,6 @@
|
|||
<template>
|
||||
<v-app style="background: black !important;">
|
||||
<v-card
|
||||
:style="{
|
||||
borderRadius: roundedCorners ? '0rem' : '1rem 1rem 0px 0px !important'
|
||||
}"
|
||||
style="height: 4rem !important; display: flex; box-shadow: none !important;"
|
||||
color="accent white--text"
|
||||
class="topNav rounded-0"
|
||||
|
@ -32,9 +29,6 @@
|
|||
<div
|
||||
class="background scroll-y"
|
||||
style="padding: 0; height: calc(100vh - 8rem); overflow-x: hidedn;"
|
||||
:style="{
|
||||
borderRadius: roundedCorners ? '0rem' : '1rem'
|
||||
}"
|
||||
>
|
||||
|
||||
<nuxt v-show="!search" />
|
||||
|
@ -47,11 +41,7 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<bottomNavigation v-if="!search"
|
||||
:style="{
|
||||
borderRadius: roundedCorners ? '0rem' : '0 0 1rem 1rem !important'
|
||||
}"
|
||||
/>
|
||||
<bottomNavigation v-if="!search" />
|
||||
|
||||
<updateChecker />
|
||||
|
||||
|
@ -120,15 +110,9 @@ export default {
|
|||
|
||||
text: null,
|
||||
response: [],
|
||||
roundedCorners: false,
|
||||
}),
|
||||
|
||||
mounted() {
|
||||
//--- Load Saved Radius ---//
|
||||
setInterval(() => { // im sorry I'll fix this later
|
||||
this.roundedCorners = localStorage.getItem("roundedCorners") == "true";
|
||||
}, 1000);
|
||||
|
||||
//--- Load Saved Theme ---//
|
||||
setTimeout(() => { //Set timeout is required to make it load properly... dont ask me why -Front
|
||||
const darkTheme = localStorage.getItem('darkTheme');
|
||||
|
|
|
@ -1,22 +1,6 @@
|
|||
<template>
|
||||
<div class="py-1">
|
||||
|
||||
<v-card class="pb-5">
|
||||
<v-card-title>Rounded Corners</v-card-title>
|
||||
<v-row class="ml-3 mr-6">
|
||||
<section class="row">
|
||||
<v-switch
|
||||
label="Rounded Corners"
|
||||
hint="Enable rounded corners on the top and bottom of the app"
|
||||
v-model="roundedCorners"
|
||||
persistent-hint
|
||||
inset
|
||||
@click="saveRadius()"
|
||||
/>
|
||||
</section>
|
||||
</v-row>
|
||||
</v-card>
|
||||
|
||||
<v-card class="pb-5">
|
||||
<v-card-title>Global Base Color</v-card-title>
|
||||
<v-row class="ml-3 mr-6">
|
||||
|
@ -60,8 +44,7 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
accentColor: '#ffffff',
|
||||
roundedCorners: false,
|
||||
accentColor: '#ffffff'
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -92,9 +75,6 @@ export default {
|
|||
saveTheme(isDark) {
|
||||
localStorage.setItem("darkTheme", isDark);
|
||||
},
|
||||
saveRadius(value) {
|
||||
localStorage.setItem("roundedCorners", this.roundedCorners);
|
||||
},
|
||||
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue