Commit Graph

3 Commits

Author SHA1 Message Date
5f2b5e4bd4 Add support for the site theme's color palette
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
e5d11f99d4 Cache WP_Theme_JSON instance
This is a slight improvement to avoid building WP_Theme_JSON instance repeatedly.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00
b724ef4ac2 Extract Theme related methods from SettingsController as ThemeController
I want to avoid the SettingsController becoming some kind of a god class
so in this step, I extracted themejson-related stuff to an extra class.

In the future, we should also move methods for manipulating CSS to a helper.
[MAILPOET-5741]
2024-02-28 09:01:20 +01:00