add: new filter to filter skins

This commit is contained in:
Barış Soner Uşaklı
2023-07-20 15:31:12 -04:00
parent 6e95fc6986
commit c1361ee580

View File

@@ -256,13 +256,12 @@ CSS.getSkinSwitcherOptions = async function (uid) {
});
return skins;
}
return {
return await plugins.hooks.fire('filter:meta.css.getSkinSwitcherOptions', {
default: defaultSkins,
custom: customSkins.map(s => ({ ...s, selected: s.value === userSettings.bootswatchSkin })),
light: parseSkins(lightSkins),
dark: parseSkins(darkSkins),
};
});
};
CSS.getCustomSkins = async function (opts = {}) {