-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improved style/layout of settings
- Loading branch information
Showing
6 changed files
with
75 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<template lang="pug"> | ||
div.d-flex.justify-content-between | ||
div | ||
h5.mb-0 Use fallback colors | ||
small | ||
| Uses the old coloring style for some visualizations when uncategorized or no category color. | ||
div | ||
b-form-checkbox(v-model="useColorFallback", switch) | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'ColorSettings', | ||
data: () => { | ||
return { | ||
useColorFallback: localStorage.useColorFallback || true, | ||
}; | ||
}, | ||
methods: { | ||
set: function (useColorFallback) { | ||
localStorage.useColorFallback = useColorFallback; | ||
console.log('Set useColorFallback to ' + useColorFallback); | ||
}, | ||
}, | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters