0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-26 13:13:03 +00:00

fix: 🐛 Fix icon not showing in light mode

This commit is contained in:
Kenny 2022-03-23 09:30:24 -04:00
parent 66a0827ca4
commit 42889121aa
3 changed files with 70 additions and 62 deletions

View file

@ -69,38 +69,6 @@
</v-app> </v-app>
</template> </template>
<style>
* {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.scroll-y {
overflow-y: scroll !important; /* has to be scroll, not auto */
-webkit-overflow-scrolling: touch !important;
}
html,
body {
background: black;
overflow: hidden;
}
p,
span,
div {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
</style>
<style scoped>
.searchButton {
width: 100%;
justify-content: left !important;
}
</style>
<script> <script>
import { App as CapacitorApp } from "@capacitor/app"; import { App as CapacitorApp } from "@capacitor/app";
import { mapState } from "vuex"; import { mapState } from "vuex";
@ -111,10 +79,32 @@ export default {
response: [], response: [],
stateLoaded: false, stateLoaded: false,
}), }),
computed: {
...mapState({
roundTweak: (state) => state.tweaks.roundTweak,
}),
page: function () {
const splitPath = this.$route.path.split("/");
let pageName = splitPath[splitPath.length - 1];
pageName = pageName.charAt(0).toUpperCase() + pageName.slice(1);
return pageName || "Home";
},
},
watch: {
// Watch for any changes in the route string
// When change is detected, scroll main div back to the top
$route() {
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
},
},
beforeCreate() { beforeCreate() {
// initializes UI tweaks to the saved state // initializes UI tweaks to the saved state
this.$store.commit("tweaks/initTweaks"); this.$store.commit("tweaks/initTweaks");
}, },
mounted() { mounted() {
this.stateLoaded = true; this.stateLoaded = true;
//--- Back Button Listener ---// //--- Back Button Listener ---//
@ -131,17 +121,6 @@ export default {
} }
}); });
}, },
computed: {
...mapState({
roundTweak: (state) => state.tweaks.roundTweak,
}),
page: function () {
const splitPath = this.$route.path.split("/");
let pageName = splitPath[splitPath.length - 1];
pageName = pageName.charAt(0).toUpperCase() + pageName.slice(1);
return pageName || "Home";
},
},
methods: { methods: {
textChanged(text) { textChanged(text) {
@ -174,13 +153,41 @@ export default {
} }
}, },
}, },
watch: {
// Watch for any changes in the route string
// When change is detected, scroll main div back to the top
$route() {
this.$refs.pgscroll.scrollTop = 0; // scroll back to top when moving to new route
}
}
}; };
</script> </script>
<style>
* {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.scroll-y {
overflow-y: scroll !important; /* has to be scroll, not auto */
-webkit-overflow-scrolling: touch !important;
}
html,
body {
background: black;
overflow: hidden;
}
p,
span,
div {
-webkit-user-select: none; /* Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+/Edge */
user-select: none; /* Standard */
}
.invert {
filter: invert(100%);
}
</style>
<style scoped>
.searchButton {
width: 100%;
justify-content: left !important;
}
</style>

View file

@ -4,7 +4,7 @@
src="/icon.svg" src="/icon.svg"
width="10em" width="10em"
style="margin-bottom: 1em" style="margin-bottom: 1em"
:class="this.$vuetify.theme.dark ? '' : 'invert'" :class="$vuetify.theme.dark ? '' : 'invert'"
/> />
<v-progress-circular size="50" indeterminate color="primary" /> <v-progress-circular size="50" indeterminate color="primary" />
</center> </center>
@ -67,7 +67,4 @@ export default {
left: 50%; left: 50%;
transform: translate(-50%, -80%); transform: translate(-50%, -80%);
} }
.invert {
filter: invert(100%);
}
</style> </style>

View file

@ -2,7 +2,11 @@
<center style="padding: 1em"> <center style="padding: 1em">
<div class="row pa-4" style="flex-direction: column"> <div class="row pa-4" style="flex-direction: column">
<div> <div>
<v-img src="/icon.svg" width="100px" /> <v-img
src="/icon.svg"
width="100px"
:class="$vuetify.theme.dark ? '' : 'invert'"
/>
</div> </div>
<v-spacer /> <v-spacer />
<div> <div>
@ -28,12 +32,6 @@
</center> </center>
</template> </template>
<style scoped>
.pageTitle {
margin-bottom: 1em;
}
</style>
<script> <script>
import { Browser } from "@capacitor/browser"; import { Browser } from "@capacitor/browser";
import { Device } from "@capacitor/device"; import { Device } from "@capacitor/device";
@ -57,3 +55,9 @@ export default {
}, },
}; };
</script> </script>
<style scoped>
.pageTitle {
margin-bottom: 1em;
}
</style>