dark theme updates

This commit is contained in:
Gamebrary 2020-10-14 16:49:05 -07:00
parent 7d4cdff427
commit 3fa09a73bc
4 changed files with 28 additions and 21 deletions

View file

@ -61,6 +61,25 @@
<b-col cols="12" md="8" class="mt-md-0 mt-3 text-md-left text-center"> <b-col cols="12" md="8" class="mt-md-0 mt-3 text-md-left text-center">
<h3 class="mb-0">{{ game.name }}</h3> <h3 class="mb-0">{{ game.name }}</h3>
<b-progress
v-if="progress"
:value="progress"
variant="success"
height="8px"
class="my-1 w-50"
/>
<b-form-rating
v-if="rating"
:value="rating"
:class="['p-0 mt-1', { 'bg-dark': nightMode }]"
inline
readonly
variant="warning"
size="lg"
no-border
/>
<!-- <h6> <!-- <h6>
<b-badge <b-badge
v-if="releaseDate" v-if="releaseDate"
@ -71,16 +90,7 @@
</b-badge> </b-badge>
</h6> --> </h6> -->
<b-form-rating <br />
v-if="rating"
:value="rating"
class="p-0 mt-1 border-0 shadow-none"
inline
readonly
variant="warning"
size="lg"
no-border
/>
<b-badge <b-badge
v-for="({ games, hex, tagTextColor }, name) in tags" v-for="({ games, hex, tagTextColor }, name) in tags"
@ -94,14 +104,6 @@
{{ name }} {{ name }}
</b-badge> </b-badge>
<b-progress
v-if="progress"
:value="progress"
variant="success"
height="8px"
class="mt-2"
/>
<div <div
v-if="loading" v-if="loading"
class="my-2 d-flex justify-content-md-start justify-content-center" class="my-2 d-flex justify-content-md-start justify-content-center"

View file

@ -4,6 +4,7 @@
class="m-1" class="m-1"
right right
variant="transparent" variant="transparent"
:menu-class="nightMode ? 'bg-dark' : ''"
no-caret no-caret
> >
<template v-slot:button-content> <template v-slot:button-content>
@ -62,7 +63,7 @@ import RenameList from '@/components/Lists/RenameList';
import ListPreferences from '@/components/Lists/ListPreferences'; import ListPreferences from '@/components/Lists/ListPreferences';
import SortList from '@/components/Lists/SortList'; import SortList from '@/components/Lists/SortList';
import AddGameModal from '@/components/Lists/AddGameModal'; import AddGameModal from '@/components/Lists/AddGameModal';
import { mapState } from 'vuex'; import { mapState, mapGetters } from 'vuex';
export default { export default {
components: { components: {
@ -86,6 +87,7 @@ export default {
computed: { computed: {
...mapState(['user', 'platform', 'board']), ...mapState(['user', 'platform', 'board']),
...mapGetters(['nightMode']),
isFirst() { isFirst() {
return this.listIndex === 0; return this.listIndex === 0;

View file

@ -18,6 +18,7 @@
boundary="viewport" boundary="viewport"
v-b-tooltip.hover.right v-b-tooltip.hover.right
:title="$t('navMenu.changeBoard')" :title="$t('navMenu.changeBoard')"
:menu-class="nightMode ? 'bg-dark' : ''"
variant="transparent" variant="transparent"
> >
<template v-slot:button-content> <template v-slot:button-content>
@ -28,6 +29,7 @@
:to="`/board/${id}`" :to="`/board/${id}`"
:key="id" :key="id"
v-for="{ name, id } in sortedBoards" v-for="{ name, id } in sortedBoards"
variant="transparent"
:active="board.id === id" :active="board.id === id"
> >
{{ name }} {{ name }}
@ -88,7 +90,7 @@
<b-button <b-button
variant="link" variant="link"
:title="$t('navMenu.about')" :title="$t('navMenu.theme')"
v-b-tooltip.hover.right v-b-tooltip.hover.right
@click="toggleTheme" @click="toggleTheme"
> >

View file

@ -26,7 +26,8 @@
"language": "Language", "language": "Language",
"releases": "Releases", "releases": "Releases",
"about": "About", "about": "About",
"account": "Account" "account": "Account",
"theme": "Switch theme"
}, },
"gitHub": { "gitHub": {
"watch": "Watch", "watch": "Watch",