new preset on-screen widget profiles 20251229

This commit is contained in:
TrueZhuanjia
2025-12-29 16:34:29 +08:00
parent 46902afdc4
commit 2071b89d18
5 changed files with 5 additions and 4 deletions
@@ -229,7 +229,8 @@ static CGRect layoutViewBounds;
NSMutableArray *profiles = [self getAllProfiles];
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString* persistedKey = @"widgetProfileUpdated-20251015";
// NSString* persistedKey = @"widgetProfileUpdated-20251015";
NSString* persistedKey = @"widgetProfileUpdated-20251229";
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
if(profiles.count == 0 || needImportDefaultTemplates){
+1 -1
View File
@@ -2558,7 +2558,7 @@ import SVGKit
private func highlightBorder(highlighted:Bool) {
if highlighted {
self.layer.borderWidth = 2
self.layer.borderWidth = 3
self.layer.borderColor = voidlinkPurple
}
else {
Binary file not shown.
Binary file not shown.
@@ -836,9 +836,9 @@ typedef NS_ENUM(NSUInteger, DecelerationRateSliderMode) {
- (IBAction) saveTapped:(id)sender {
/*
OSCProfile* targetProfile = [profilesManager getAllProfiles][3];
OSCProfile* targetProfile = [profilesManager getAllProfiles][0];
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";
[profilesManager replaceProfile:targetProfile withProfile:currentProfile];
*/