diff --git a/src/fields/ColourSwatches.php b/src/fields/ColourSwatches.php index 5822aa4..9c31914 100644 --- a/src/fields/ColourSwatches.php +++ b/src/fields/ColourSwatches.php @@ -138,6 +138,20 @@ public function getSettingsHtml() ], 'rows' => $rows, ]; + + $paletteOptions = []; + $paletteOptions[] = [ + 'label' => null, + 'value' => null, + ]; + foreach (array_keys((array) Plugin::$plugin->settings->palettes) as $palette) { + $paletteOptions[] = [ + 'label' => $palette, + 'value' => $palette, + ]; + } + + $currentPalette = $this->palette; $paletteOptions = []; $paletteOptions[] = [