Merge pull request #202 from zurdi15/refactor/code_base

Refactor/code base
This commit is contained in:
Zurdi
2023-04-25 08:43:58 +02:00
committed by GitHub
3 changed files with 7 additions and 4 deletions

View File

@@ -2,10 +2,12 @@
import MainDrawerToggle from '@/components/AppBar/Gallery/MainDrawerToggle.vue'
import { storeScanning } from '@/stores/scanning.js'
import { storeContextBar } from '@/stores/contextBar.js'
import { useRoute } from 'vue-router'
// Props
const scanning = storeScanning()
const contextBar = storeContextBar()
const route = useRoute()
</script>
<template>
@@ -17,7 +19,7 @@ const contextBar = storeContextBar()
<main-drawer-toggle class="ml-5 hidden-lg-and-up"/>
<template v-slot:append>
<v-app-bar-nav-icon
<v-app-bar-nav-icon v-if="route.params.platform != undefined"
@click="contextBar.toggleContextBar()"
rounded="0">
<v-icon :icon="contextBar.value ? 'mdi-chevron-up' : 'mdi-chevron-down' "/>

View File

@@ -26,6 +26,7 @@ export const rommLight = {
colors: {
primary: '#fefdfe',
secondary: '#fefdfe',
terciary: '#fefdfe',
background: '#fefdfe',
surface: '#fefdfe',

View File

@@ -23,10 +23,12 @@ function toggleTheme() {
<app-bar v-if="mdAndDown"/>
<v-tabs v-model="tab" slider-color="rommAccent1">
<v-tab value="ui" rounded="0">User Interface</v-tab>
<v-tab value="saves" rounded="0" disabled>General</v-tab>
<v-tab value="ui" rounded="0">User Interface</v-tab>
</v-tabs>
<v-window v-model="tab" class="mt-2">
<v-window-item value="general">
</v-window-item>
<v-window-item value="ui">
<v-row class="ml-1">
<v-col>
@@ -39,8 +41,6 @@ function toggleTheme() {
</v-col>
</v-row>
</v-window-item>
<v-window-item value="general">
</v-window-item>
</v-window>
<v-divider class="border-opacity-25 mt-2"/>