Add support for the site theme's color palette

[MAILPOET-5741]
This commit is contained in:
Rostislav Wolny
2024-02-22 14:09:56 +01:00
committed by Rostislav Wolný
parent e5d11f99d4
commit 5f2b5e4bd4
3 changed files with 63 additions and 7 deletions

View File

@ -54,7 +54,7 @@ class SettingsController {
public function getSettings(): array {
$coreDefaultSettings = get_default_block_editor_settings();
$editorTheme = $this->getTheme();
$themeSettings = $editorTheme->get_settings();
$themeSettings = $this->themeController->getSettings();
// body selector is later transformed to .editor-styles-wrapper
// setting padding for bottom and top is needed because \WP_Theme_JSON::get_stylesheet() set them only for .wp-site-blocks selector