mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
506 B
21 lines
506 B
3 years ago
|
import { enumColor as colors } from '@/components/project/spreadsheet/helpers/colors'
|
||
3 years ago
|
|
||
|
export default {
|
||
|
computed: {
|
||
3 years ago
|
colors() {
|
||
3 years ago
|
return this.$store.state.settings.darkTheme ? colors.dark : colors.light
|
||
3 years ago
|
},
|
||
3 years ago
|
textColors() {
|
||
3 years ago
|
return this.$store.state.settings.darkTheme ? colors.light : colors.dark
|
||
3 years ago
|
}
|
||
3 years ago
|
},
|
||
|
methods: {
|
||
|
getColor(i) {
|
||
|
return this.colors[i % this.colors.length]
|
||
|
},
|
||
|
getTextColor(i) {
|
||
|
return this.textColors[i % this.textColors.length]
|
||
|
}
|
||
3 years ago
|
}
|
||
3 years ago
|
}
|