Skip to content

Commit

Permalink
Working default colors and color loading from file
Browse files Browse the repository at this point in the history
  • Loading branch information
philwing100 committed Jun 11, 2024
1 parent ca5eee0 commit 509c408
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
25 changes: 20 additions & 5 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,26 @@ export default {
components: {
SideBar,
},
provide() {
return {
colors: colorsData,
};
}
provide() {
if (colorsData) {
return {
colors: colorsData,
};
} else {
return {
colors: {
primary: '#3498db',
secondary: '#2ecc71',
downClick: '#e74c3c',
clicked: 'e',
hover: '#383444',
text: 'white',
background: '#343541',
sidebar: '#000000',
},
};
}
},
};
</script>

Expand Down
2 changes: 1 addition & 1 deletion src/assets/colors.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
"hover": "#383444",
"text": "white",
"background": "#343541",
"sidebar": "#000000"
"sideBar": "black"
}

0 comments on commit 509c408

Please sign in to comment.