new preset on-screen widget profiles 20251229
This commit is contained in:
@@ -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){
|
||||
|
||||
@@ -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.
+2
-2
@@ -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];
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user