2024-03-22 13:02:01 +00:00
|
|
|
import Theme from 'primevue/themes';
|
|
|
|
|
|
|
|
export default (theme) => {
|
2024-03-31 05:41:28 +00:00
|
|
|
// @todo
|
2024-03-22 13:02:01 +00:00
|
|
|
const [{ options: o1 }, { options: o2 }] = [Theme.getTheme(), theme];
|
|
|
|
const newTheme = {
|
|
|
|
...theme,
|
|
|
|
options: { ...o1, ...o2 }
|
|
|
|
};
|
|
|
|
|
|
|
|
Theme.setTheme(newTheme);
|
|
|
|
|
|
|
|
return newTheme;
|
|
|
|
};
|