added hint to scan view

This commit is contained in:
zurdi zurdo
2023-04-24 00:24:20 +02:00
parent ad04bb4104
commit 5a1fe708f0
2 changed files with 73 additions and 45 deletions

View File

@@ -32,46 +32,47 @@ async function scan() {
</script>
<template>
<v-list>
<v-select
label="Platforms"
item-title="name"
v-model="platformsToScan"
:items="platforms.value"
class="pl-5 pr-5 mt-2 mb-1"
density="comfortable"
variant="outlined"
multiple
return-object
clearable
hide-details
chips/>
<v-select
label="Platforms"
item-title="name"
v-model="platformsToScan"
:items="platforms.value"
density="comfortable"
variant="outlined"
multiple
return-object
clearable
class="text-white"
hide-details
chips/>
<v-list-item class="pa-0">
<v-row class="align-center justify-center ml-8">
<v-btn
title="scan"
@click="scan()"
:disabled="scanning"
prepend-icon="mdi-magnify-scan"
rounded="0"
inset>
<p v-if="!scanning">Scan</p>
<v-progress-circular
v-show="scanning"
class="ml-2"
color="rommAccent1"
:width="2"
:size="20"
indeterminate/>
</v-btn>
<v-checkbox
v-model="fullScan"
label="Full scan"
class="ml-1"
hide-details/>
</v-row>
</v-list-item>
<v-checkbox
v-model="fullScan"
label="Complete scan"
prepend-icon="mdi-cached"
class="text-white"
hide-details/>
<div class="ml-10 text-caption font-weight-light font-italic">
<span>Re-scan every rom even if it is already scanned</span>
</div>
<v-btn
title="scan"
@click="scan()"
:disabled="scanning"
prepend-icon="mdi-magnify-scan"
rounded="0"
class="mt-5"
inset>
<p v-if="!scanning">Scan</p>
<v-progress-circular
v-show="scanning"
color="rommAccent1"
:width="2"
:size="20"
indeterminate/>
</v-btn>
</v-list>
</template>

View File

@@ -1,9 +1,36 @@
<script setup>
import ThemeToggle from '@/components/SettingsDrawer/ThemeToggle.vue'
import SettingsFooter from '@/components/SettingsDrawer/Footer.vue'
import { ref } from "vue"
import { useTheme } from "vuetify"
// Props
const theme = useTheme()
const darkMode = (localStorage.getItem('theme') == 'rommLight') ? ref(false) : ref(true)
const ROMM_VERSION = import.meta.env.VITE_ROMM_VERSION
// Functions
function toggleTheme() {
theme.global.name.value = darkMode.value ? "rommDark" : "rommLight"
darkMode.value ? localStorage.setItem('theme', 'rommDark') : localStorage.setItem('theme', 'rommLight')
}
</script>
<template>
<theme-toggle/>
<div>
<v-switch
@change="toggleTheme()"
v-model="darkMode"
prepend-icon="mdi-theme-light-dark"
hide-details
inset/>
</div>
<v-divider class="border-opacity-25"/>
<settings-footer class="bg-primary"/>
</template>
<div class="mt-4">
<span class="text-rommAccent1">RomM</span><span> v{{ ROMM_VERSION }}</span>
</div>
</template>
<style scoped>
</style>