Skip to content

Commit

Permalink
Merge pull request #37 from VishalZ123/master
Browse files Browse the repository at this point in the history
Add Dark Theme and Toggle button
  • Loading branch information
killbotXD authored Mar 7, 2021
2 parents a70f3b3 + 102cb54 commit 6cbbecb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/common/headers/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
v-icon(:left="$vuetify.breakpoint.mdAndUp") mdi-clipboard-account
span(v-if="$vuetify.breakpoint.mdAndUp") People
v-spacer
v-toolbar-items
v-btn
v-icon(:left="$vuetify.breakpoint.mdAndUp" v-if="$vuetify.theme.dark") mdi-moon-waxing-crescent
v-icon(:left="$vuetify.breakpoint.mdAndUp" v-else) mdi-brightness-7
v-switch(v-model="$vuetify.theme.dark" class="mt-5")
</template>

<script>
Expand Down
9 changes: 9 additions & 0 deletions src/plugins/vuetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ export default new Vuetify({
info: "#2196F3",
success: "#4CAF50",
warning: "#FFC107"
},
dark: {
primary: "#404040",
secondary: "#424242",
accent: "#82B1FF",
error: "#CF6679",
info: "#2196F3",
success: "#4CAF50",
warning: "#FFC107"
}
}
}
Expand Down

0 comments on commit 6cbbecb

Please sign in to comment.