MCPcopy Index your code
hub / github.com/ZToolsCenter/ZTools / setTheme

Method setTheme

src/main/api/renderer/settings.ts:204–207  ·  view source on GitHub ↗
(theme: string)

Source from the content-addressed store, hash-verified

202
203 // 设置主题
204 public setTheme(theme: string): void {
205 nativeTheme.themeSource = theme as 'system' | 'light' | 'dark'
206 console.log('[Settings] 设置主题:', theme)
207 }
208
209 // 设置开机启动
210 public setLaunchAtLogin(enable: boolean): void {

Callers 4

setupIPCMethod · 0.95
loadAndApplySettingsMethod · 0.95
setupIPCMethod · 0.80
applyInitialAppearanceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected