MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / updateToggleButtons

Method updateToggleButtons

static/js/utils.js:115–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 }
114
115 updateToggleButtons() {
116 const buttons = document.querySelectorAll('.theme-toggle');
117 buttons.forEach(btn => {
118 btn.innerHTML = this.theme === 'light' ? '🌙' : '☀️';
119 btn.title = this.theme === 'light' ? '切换到暗色模式' : '切换到亮色模式';
120 });
121 }
122}
123
124// 全局主题实例

Callers 1

applyThemeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected