Skip to content

feat: 添加 IPluginContext.ApplyTheme 方法使插件窗口可同步主程序主题#644

Merged
ZGGSONG merged 1 commit intoSTranslate:mainfrom
SwiftFloatFlow:main
Feb 13, 2026
Merged

feat: 添加 IPluginContext.ApplyTheme 方法使插件窗口可同步主程序主题#644
ZGGSONG merged 1 commit intoSTranslate:mainfrom
SwiftFloatFlow:main

Conversation

@SwiftFloatFlow
Copy link
Contributor

暗色 亮色

…onization

- Add ApplyTheme(Window window) method to IPluginContext interface
- Implement ApplyTheme in PluginContext class using ThemeManager
- Allows plugins to apply main application theme to their custom windows
- Maintains backward compatibility - existing plugins unaffected
@ZGGSONG ZGGSONG merged commit e32e9d0 into STranslate:main Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature request]: IPluginContext: 提供主题同步 API,使插件窗口自动跟随主程序主题

2 participants