Skip to content

Commit 54af077

Browse files
author
David Paquette
authored
Merge pull request #101 from HTBox/vuetify-theme-color
Apply TwoWeeksReady theme colors
2 parents 84070ea + d4ad95a commit 54af077

14 files changed

Lines changed: 170 additions & 16636 deletions

2wr-app/package-lock.json

Lines changed: 99 additions & 16568 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

2wr-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"uuid": "^3.4.0",
2626
"vue": "^2.6.11",
2727
"vue-router": "^3.4.9",
28-
"vuetify": "^2.4.2",
28+
"vuetify": "^2.5.10",
2929
"vuex": "^3.6.0"
3030
},
3131
"devDependencies": {

2wr-app/src/App.vue

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<v-app>
2+
<v-app :style="{background: $vuetify.theme.themes[theme].background}">
33
<div v-if="isBusy" class="loading-line"></div>
44
<v-main>
55
<router-view></router-view>
@@ -21,24 +21,24 @@
2121
<!-- show login when not authenticated -->
2222

2323
<!-- show logout when authenticated -->
24-
<v-bottom-navigation app fixed grow color="primary">
25-
<v-btn v-if="!$auth.isAuthenticated" height="100%" @click="login">
24+
<v-bottom-navigation app fixed background-color="secondary">
25+
<v-btn v-if="!$auth.isAuthenticated" height="100%" @click="login" color="secondary">
2626
<span>login</span>
2727
<v-icon>mdi-login-variant</v-icon>
2828
</v-btn>
29-
<v-btn v-if="$auth.isAuthenticated" to="/prepare" height="100%">
29+
<v-btn v-if="$auth.isAuthenticated" to="/prepare" height="100%" color="secondary">
3030
<span>Prepare</span>
3131
<v-icon>mdi-clipboard-list-outline</v-icon>
3232
</v-btn>
33-
<v-btn v-if="$auth.isAuthenticated" to="/recent" height="100%">
33+
<v-btn v-if="$auth.isAuthenticated" to="/recent" height="100%" color="secondary">
3434
<span>Recent Events</span>
3535
<v-icon>mdi-calendar-star</v-icon>
3636
</v-btn>
37-
<v-btn v-if="$auth.isAuthenticated" to="/settings" height="100%">
37+
<v-btn v-if="$auth.isAuthenticated" to="/settings" height="100%" color="secondary">
3838
<span>Settings</span>
3939
<v-icon>mdi-cog</v-icon>
4040
</v-btn>
41-
<v-btn v-if="$auth.isAuthenticated" @click="logout" height="100%">
41+
<v-btn v-if="$auth.isAuthenticated" @click="logout" height="100%" color="secondary">
4242
<span>Logout</span>
4343
<v-icon>mdi-logout-variant</v-icon>
4444
</v-btn>
@@ -59,6 +59,9 @@ export default {
5959
},
6060
error() {
6161
return this.$store.state.error;
62+
},
63+
theme(){
64+
return (this.$vuetify.theme.dark) ? 'dark' : 'light'
6265
}
6366
},
6467
methods: {

2wr-app/src/components/common/InfoBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="mb-1">
3-
<v-app-bar app flat dense fixed color="blue-grey lighten-4">
3+
<v-app-bar app flat dense fixed color="background" >
44
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
55
<v-toolbar-title>{{ title }}</v-toolbar-title>
66
</v-app-bar>

2wr-app/src/components/prepare/emergency-kits/emergency-kit-create.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-container class="py-0">
3-
<v-app-bar app flat dense fixed>
3+
<v-app-bar app flat dense fixed color="background">
44
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
55
<v-icon class="mr-2">mdi-medical-bag</v-icon>
66
<v-toolbar-title>Emergency Kit Create</v-toolbar-title>

2wr-app/src/components/prepare/emergency-kits/emergency-kit-edit.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
size="64"
77
></v-progress-circular>
88
</v-overlay>
9-
<v-app-bar app flat dense fixed>
9+
<v-app-bar app flat dense fixed color="background">
1010
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
1111
<v-icon class="mr-2">mdi-medical-bag</v-icon>
1212
<v-toolbar-title>Emergency Kit Edit</v-toolbar-title>

2wr-app/src/components/prepare/emergency-kits/emergency-kit-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-container class="py-0">
3-
<v-app-bar app flat dense fixed>
3+
<v-app-bar app flat dense fixed color="background">
44
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
55
<v-icon class="mr-2">mdi-medical-bag</v-icon>
66
<v-toolbar-title>Emergency Kit List</v-toolbar-title>

2wr-app/src/components/prepare/family-plans/family-plans-list.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</v-btn>
1616
</v-fab-transition>
1717
<InfoBar title="My Family Plan"></InfoBar>
18-
<v-tabs background-color="blue" dark grow v-model="currentTab">
18+
<v-tabs background-color="transparent" grow v-model="currentTab">
1919
<v-tab> My Family Plan </v-tab>
2020
<v-tab>
2121
Plans Shared<br />
@@ -24,6 +24,7 @@
2424
</v-tabs>
2525
<v-tabs-items v-model="currentTab">
2626
<v-tab-item>
27+
<v-card color="background">
2728
<v-data-iterator
2829
:items="familyPlans"
2930
disable-pagination
@@ -37,7 +38,6 @@
3738
v-for="item in props.items"
3839
:key="item.id"
3940
class="mx-2 my-2"
40-
color="#eee"
4141
ripple
4242
:to="`/prepare/familyplan/${item.id}`"
4343
>
@@ -54,6 +54,7 @@
5454
</div>
5555
</template>
5656
</v-data-iterator>
57+
</v-card>
5758
</v-tab-item>
5859
<v-tab-item>
5960
<p>Shared Plans</p>

2wr-app/src/components/prepare/family-plans/family-plans-view.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<div class="info-table">
6262
<v-card
6363
class="mx-2 my-2"
64-
color="#eee"
64+
color="primary"
6565
ripple
6666
@click="ensureNamed('Emergency Contacts', 'emergencycontacts')"
6767
>
@@ -74,7 +74,7 @@
7474
</v-card>
7575
<v-card
7676
class="mx-2 my-2"
77-
color="#eee"
77+
color="primary"
7878
ripple
7979
@click="ensureNamed('Routes and Locations', 'routes')"
8080
>
@@ -87,7 +87,7 @@
8787
</v-card>
8888
<v-card
8989
class="mx-2 my-2"
90-
color="#eee"
90+
color="primary"
9191
ripple
9292
@click="ensureNamed('Children', 'children')"
9393
>
@@ -100,7 +100,7 @@
100100
</v-card>
101101
<v-card
102102
class="mx-2 my-2"
103-
color="#eee"
103+
color="primary"
104104
ripple
105105
@click="ensureNamed('Pets', 'pets')"
106106
>

2wr-app/src/components/prepare/family-plans/route-location-list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</v-btn>
1616
</v-fab-transition>
1717
<InfoBar :title="`${ plan.title } - Routes and Locations`"></InfoBar>
18-
<v-app-bar app flat dense fixed>
18+
<v-app-bar app flat dense fixed color="background">
1919
<v-icon class="mr-2" v-on:click="goBack()">mdi-arrow-left</v-icon>
2020
<v-toolbar-title>{{ plan.title }} - Routes and Locations</v-toolbar-title>
2121
</v-app-bar>

0 commit comments

Comments
 (0)