* 构建当前主题信息
()
| 324 | * 构建当前主题信息 |
| 325 | */ |
| 326 | private buildThemeInfo(): { |
| 327 | isDark: boolean |
| 328 | primaryColor: string |
| 329 | customColor?: string |
| 330 | windowMaterial: string |
| 331 | } { |
| 332 | const settings = databaseAPI.dbGet('settings-general') |
| 333 | return { |
| 334 | isDark: nativeTheme.shouldUseDarkColors, |
| 335 | primaryColor: settings?.primaryColor || 'blue', |
| 336 | customColor: settings?.customColor, |
| 337 | windowMaterial: windowManager.getWindowMaterial() |
| 338 | } |
| 339 | } |
| 340 | |
| 341 | /** |
| 342 | * 向所有插件视图广播消息 |
no test coverage detected