new preset on-screen widget profiles 20251229

This commit is contained in:
TrueZhuanjia committed 2025-12-29 16:34:29 +08:00
1 parent 46902afdc4
commit 2071b89d18
5 files changed
+5 -4

No files matched your search

@@ -229,7 +229,8 @@ static CGRect layoutViewBounds;
NSMutableArray *profiles = [self getAllProfiles]; NSMutableArray *profiles = [self getAllProfiles];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString* persistedKey = @"widgetProfileUpdated-20251015"; // NSString* persistedKey = @"widgetProfileUpdated-20251015";
NSString* persistedKey = @"widgetProfileUpdated-20251229";
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil; BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
if(profiles.count == 0 || needImportDefaultTemplates){ if(profiles.count == 0 || needImportDefaultTemplates){
+1 -1
View File
@@ -2558,7 +2558,7 @@ import SVGKit
private func highlightBorder(highlighted:Bool) { private func highlightBorder(highlighted:Bool) {
if highlighted { if highlighted {
self.layer.borderWidth = 2 self.layer.borderWidth = 3
self.layer.borderColor = voidlinkPurple self.layer.borderColor = voidlinkPurple
} }
else { else {
Binary file not shown.
Binary file not shown.
@@ -836,9 +836,9 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) {
- (IBAction) saveTapped:(id)sender { - (IBAction) saveTapped:(id)sender {
/* /*
OSCProfile* targetProfile = [profilesManager getAllProfiles][3]; OSCProfile* targetProfile = [profilesManager getAllProfiles][0];
OSCProfile* currentProfile = [profilesManager getSelectedProfile]; OSCProfile* currentProfile = [profilesManager getSelectedProfile];
currentProfile.name = @"RPG游戏示例 / RPG example (ZZZ in Genshin style)"; // currentProfile.name = @"RPG游戏示例 / RPG example (ZZZ in Genshin style)";
currentProfile.name = @"Default"; currentProfile.name = @"Default";
[profilesManager replaceProfile:targetProfile withProfile:currentProfile]; [profilesManager replaceProfile:targetProfile withProfile:currentProfile];
*/ */