MCPcopy Create free account
hub / github.com/UI5/webcomponents / onThemeRegistered

Function onThemeRegistered

packages/base/src/Boot.ts:117–128  ·  view source on GitHub ↗
(theme: string)

Source from the content-addressed store, hash-verified

115 * @param { string } theme
116 */
117const onThemeRegistered = (theme: string) => {
118 if (!booted) {
119 return;
120 }
121
122 const currentTheme = getTheme();
123 const currentBaseTheme = getBaseTheme();
124
125 if (theme === currentTheme || theme === currentBaseTheme) {
126 applyTheme(currentTheme);
127 }
128};
129
130export {
131 boot,

Callers

nothing calls this directly

Calls 3

getBaseThemeFunction · 0.85
applyThemeFunction · 0.85
getThemeFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…