(theme: string)
| 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 { |
no outgoing calls
no test coverage detected