diff --git a/Tweak.xm b/Tweak.xm
index 4e01987..7124c80 100644
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -46,7 +46,7 @@ else {
colourString = [preferencesDictionary objectForKey: @"kCustomDarkColor"];
}
- UIColor* darkColor = [SparkColourPickerUtils colourWithString: colourString withFallback: @"#FF00FF"];
+ UIColor* darkColor = [SparkColourPickerUtils colourWithString: colourString withFallback: @"#000000:0.44"];
// by default have our tweak overide this.
if (@available(iOS 13, *)) {
diff --git a/zenithdarkprefs/Resources/Root.plist b/zenithdarkprefs/Resources/Root.plist
index 4e0f107..370f4c8 100644
--- a/zenithdarkprefs/Resources/Root.plist
+++ b/zenithdarkprefs/Resources/Root.plist
@@ -46,6 +46,8 @@
PSGroupCell
label
Color Options
+ footerText
+ Default: #000000:0.44
cell
@@ -109,6 +111,35 @@
label
About
+
+
+ cell
+ PSGroupCell
+ label
+
+ footerText
+
+
+
+
+ cell
+ PSButtonCell
+ label
+ Reset Settings
+ action
+ resetSettings
+ confirmation
+
+ title
+ Reset
+ prompt
+ Reset all settings?
+ okTitle
+ Reset
+ cancelTitle
+ Cancel
+
+
title
diff --git a/zenithdarkprefs/ZNDarkPrefsRootListController.m b/zenithdarkprefs/ZNDarkPrefsRootListController.m
index 1258da8..283ab9e 100644
--- a/zenithdarkprefs/ZNDarkPrefsRootListController.m
+++ b/zenithdarkprefs/ZNDarkPrefsRootListController.m
@@ -2,6 +2,7 @@
#import
#import
#import
+#import "SparkColourPickerUtils.h"
#define THEME_COLOR \
[UIColor colorWithRed:0.82 \
@@ -23,6 +24,16 @@
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCompose target:self action:@selector(shareTapped)];
}
+- (void)resetSettings {
+ CFArrayRef keyList = CFPreferencesCopyKeyList(CFSTR("com.mac-user669.zenithdark"), kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
+ if (keyList) {
+ CFPreferencesSetMultiple(nil, keyList, CFSTR("com.mac-user669.zenithdark"), kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
+ CFRelease(keyList);
+ }
+ [[NSFileManager defaultManager] removeItemAtPath:@"/var/mobile/Library/Preferences/com.mac-user669.zenithdark.plist" error:nil];
+
+ [self respring];
+}
// Hide Large Title
- (void)viewDidLoad {