|
|
@@ -919,7 +919,7 @@ function getFontSize() {
|
|
|
|
|
|
function getColors(color, theme) {
|
|
|
let c = getDefaultColors(theme);
|
|
|
- if(typeof color == 'array') {
|
|
|
+ if(color && color.length > 0) {
|
|
|
for(let i = 0; i < color.length; i++) {
|
|
|
c[i] = color[i];
|
|
|
}
|
|
|
@@ -933,6 +933,8 @@ function getDefaultColors(theme) {
|
|
|
]
|
|
|
}else if(theme == 'dark') {
|
|
|
return ['#dd6b66','#759aa0','#e69d87','#8dc1a9','#ea7e53','#eedd78','#73a373','#73b9bc','#7289ab', '#91ca8c','#f49f42']
|
|
|
+ }else {
|
|
|
+ return ['#dd6b66','#759aa0','#e69d87','#8dc1a9','#ea7e53','#eedd78','#73a373','#73b9bc','#7289ab', '#91ca8c','#f49f42']
|
|
|
}
|
|
|
}
|
|
|
|