Merge pull request #200 from zurdi15/refactor/code_base

some UI tweaks
This commit is contained in:
Zurdi
2023-04-24 19:19:36 +02:00
committed by GitHub
7 changed files with 30 additions and 29 deletions

View File

@@ -23,10 +23,12 @@ emitter.on('toggleMainDrawerRail', () => { rail.value = !rail.value; localStorag
<v-list v-model:opened="open">
<router-link to="/">
<v-list-item class="justify-center">
<v-img src="/assets/isotipo.svg" width="60" class="home-btn"/>
<v-list-item class="justify-center pa-0">
<v-img src="/assets/isotipo.svg" width="70" class="home-btn"/>
</v-list-item>
</router-link>
<v-divider></v-divider>
<v-list-group value="Platforms">
<template v-slot:activator="{ props }">
@@ -51,13 +53,13 @@ emitter.on('toggleMainDrawerRail', () => { rail.value = !rail.value; localStorag
</template>
</v-list-item>
</template>
<v-list-item class="drawer-item" to="/library/scan">
<v-list-item class="drawer-item bg-terciary" to="/library/scan">
<p class="text-body-2 text-truncate">{{ rail ? '' : 'Scan' }}</p>
<template v-slot:prepend>
<v-avatar :rounded="0" size="40"><v-icon>mdi-magnify-scan</v-icon></v-avatar>
</template>
</v-list-item>
<v-list-item class="drawer-item" disabled>
<v-list-item class="drawer-item bg-terciary" disabled>
<p class="text-body-2 text-truncate">{{ rail ? '' : 'Upload' }}</p>
<template v-slot:prepend>
<v-avatar :rounded="0" size="40"><v-icon>mdi-upload</v-icon></v-avatar>
@@ -75,7 +77,7 @@ emitter.on('toggleMainDrawerRail', () => { rail.value = !rail.value; localStorag
</template>
</v-list-item>
</template>
<v-list-item class="drawer-item" to="/settings/control-panel">
<v-list-item class="drawer-item bg-terciary" to="/settings/control-panel">
<p class="text-body-2 text-truncate">{{ rail ? '' : 'Control panel' }}</p>
<template v-slot:prepend>
<v-avatar :rounded="0" size="40"><v-icon>mdi-view-dashboard</v-icon></v-avatar>

View File

@@ -6,7 +6,7 @@ const props = defineProps(['platform', 'rail'])
</script>
<template>
<v-list-item :to="`/platform/${platform.slug}`" :value="platform.slug" :key="platform" class="pt-4 pb-4">
<v-list-item :to="`/platform/${platform.slug}`" :value="platform.slug" :key="platform" class="pt-4 pb-4 bg-terciary">
<p class="text-body-2 text-truncate">{{ rail ? '' : platform.name }}</p>
<template v-slot:prepend>
<v-avatar :rounded="0" size="40"><v-img :src="'/assets/platforms/'+platform.slug+'.ico'"></v-img></v-avatar>

View File

@@ -3,6 +3,7 @@ export const rommDark = {
colors: {
primary: '#161b22',
secondary: '#0d1117',
terciary: '#202832',
background: '#0d1117',
surface: '#161b22',

View File

@@ -172,10 +172,10 @@ onMounted(() => {
</div>
<div class="mb-10" :class="{'info-content': mdAndUp, 'info-content-tablet': sm, 'info-content-mobile': xs}">
<v-tabs v-model="tab" slider-color="rommAccent1">
<v-tab value="info">Info</v-tab>
<v-tab value="saves" disabled>Saves</v-tab>
<v-tab value="screenshots" disabled>Screenshots</v-tab>
<v-tabs v-model="tab" slider-color="rommAccent1" >
<v-tab value="info" rounded="0">Info</v-tab>
<v-tab value="saves" rounded="0" disabled>Saves</v-tab>
<v-tab value="screenshots" rounded="0" disabled>Screenshots</v-tab>
</v-tabs>
<v-window v-model="tab" class="mt-2">
<v-window-item value="info">
@@ -333,6 +333,7 @@ onMounted(() => {
overflow-y: scroll
}
.content, .content-tablet{
margin-top: 64px;
margin-left: 100px;
margin-right: 100px;
}

View File

@@ -56,7 +56,7 @@ onBeforeRouteUpdate(async (to, _) => { getRoms(to.params.platform) })
<v-expand-transition>
<v-row v-if="contextBar.value || lgAndUp" class="d-flex transition-fast-in-fast-out justify-center align-center">
<filter-bar class="pa-2"/>
<filter-bar class="pa-1"/>
<gallery-view-btn class="bg-secondary mr-1"/>
</v-row>
</v-expand-transition>

View File

@@ -36,21 +36,18 @@ async function scan() {
<app-bar v-if="mdAndDown"/>
<v-row>
<v-select
label="Platforms"
item-title="name"
v-model="platformsToScan"
:items="platforms.value"
density="comfortable"
variant="outlined"
class="pa-2"
multiple
return-object
clearable
hide-details
chips/>
</v-row>
<v-select
label="Platforms"
item-title="name"
v-model="platformsToScan"
:items="platforms.value"
density="comfortable"
variant="outlined"
multiple
return-object
clearable
hide-details
chips/>
<v-checkbox
v-model="fullScan"

View File

@@ -23,12 +23,12 @@ function toggleTheme() {
<app-bar v-if="mdAndDown"/>
<v-tabs v-model="tab" slider-color="rommAccent1">
<v-tab value="ui">User Interface</v-tab>
<v-tab value="saves" disabled>General</v-tab>
<v-tab value="ui" rounded="0">User Interface</v-tab>
<v-tab value="saves" rounded="0" disabled>General</v-tab>
</v-tabs>
<v-window v-model="tab" class="mt-2">
<v-window-item value="ui">
<v-row>
<v-row class="ml-1">
<v-col>
<v-switch
@change="toggleTheme()"