恢复默认皮肤

This commit is contained in:
2025-11-19 20:30:30 +08:00
parent 8dbaa9dcf6
commit f51fe1fac9
3 changed files with 45 additions and 3 deletions

View File

@@ -51,6 +51,14 @@
fromViewController:(UIViewController *)presenting
mode:(KBSkinSourceMode)mode
completion:(KBSkinApplyCompletion)completion {
// KBSkinManager reset JSON
if (mode == KBSkinSourceModeResetToDefault) {
[[KBSkinManager shared] resetToDefault];
if (completion) completion(YES);
[KBHUD showInfo:KBLocalized(@"已恢复默认键盘皮肤")];
return;
}
if (skinJSON.count == 0) {
if (completion) completion(NO);
return;