mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
add: new filter to filter skins
This commit is contained in:
@@ -256,13 +256,12 @@ CSS.getSkinSwitcherOptions = async function (uid) {
|
|||||||
});
|
});
|
||||||
return skins;
|
return skins;
|
||||||
}
|
}
|
||||||
|
return await plugins.hooks.fire('filter:meta.css.getSkinSwitcherOptions', {
|
||||||
return {
|
|
||||||
default: defaultSkins,
|
default: defaultSkins,
|
||||||
custom: customSkins.map(s => ({ ...s, selected: s.value === userSettings.bootswatchSkin })),
|
custom: customSkins.map(s => ({ ...s, selected: s.value === userSettings.bootswatchSkin })),
|
||||||
light: parseSkins(lightSkins),
|
light: parseSkins(lightSkins),
|
||||||
dark: parseSkins(darkSkins),
|
dark: parseSkins(darkSkins),
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
CSS.getCustomSkins = async function (opts = {}) {
|
CSS.getCustomSkins = async function (opts = {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user