feat: added theme setting options - dark mode, pallates

This commit is contained in:
Lexx YungCarter
2021-08-01 05:13:49 +03:00
parent 582ad340dd
commit fe0c62be75
11 changed files with 3076 additions and 2315 deletions

View File

@@ -18,6 +18,7 @@ class BaseChartModel
use HasSparkline;
use HasGrid;
use HasColors;
use HasTheme;
public function __construct()
{
@@ -30,6 +31,7 @@ class BaseChartModel
$this->initSparkline();
$this->initGrid();
$this->initColors();
$this->initTheme();
}
public function reactiveKey()
@@ -48,7 +50,8 @@ class BaseChartModel
$this->dataLabelsToArray(),
$this->sparklineToArray(),
$this->gridToArray(),
$this->colorsToArray()
$this->colorsToArray(),
$this->themeToArray()
);
}
@@ -63,5 +66,6 @@ class BaseChartModel
$this->sparklineFromArray($array);
$this->gridFromArray($array);
$this->colorsFromArray($array);
$this->themeFromArray($array);
}
}