MCPcopy Create free account
hub / github.com/RioArisk/claudecode_api_RemoteControl / applyTheme

Function applyTheme

app/src/modules/settings.js:30–39  ·  view source on GitHub ↗
(mode)

Source from the content-addressed store, hash-verified

28}
29
30function applyTheme(mode) {
31 setThemeModeValue(mode);
32 localStorage.setItem('theme', mode);
33 if (mode === 'light' || mode === 'dark') {
34 document.documentElement.setAttribute('data-theme', mode);
35 } else {
36 document.documentElement.removeAttribute('data-theme');
37 }
38 updateThemeActive();
39}
40
41export function initSettingsValues() {
42 const approvalRadio = document.querySelector(`input[name="approval-mode"][value="${approvalMode}"]`);

Callers 1

initSettingsFunction · 0.70

Calls 2

setThemeModeValueFunction · 0.90
updateThemeActiveFunction · 0.70

Tested by

no test coverage detected