summaryrefslogtreecommitdiff
path: root/finicalprefs
diff options
context:
space:
mode:
Diffstat (limited to 'finicalprefs')
-rw-r--r--finicalprefs/.DS_Storebin0 -> 6148 bytes
-rw-r--r--finicalprefs/FCLRootListController.m30
-rw-r--r--finicalprefs/Makefile15
-rw-r--r--finicalprefs/Resources/Finical.plist200
-rw-r--r--finicalprefs/Resources/Info.plist24
-rw-r--r--finicalprefs/Resources/discord@2x.pngbin0 -> 2228 bytes
-rw-r--r--finicalprefs/Resources/discord@3x.pngbin0 -> 3401 bytes
-rw-r--r--finicalprefs/Resources/icon@2x.pngbin0 -> 4229 bytes
-rw-r--r--finicalprefs/Resources/icon@3x.pngbin0 -> 7751 bytes
-rw-r--r--finicalprefs/Resources/twitter@2x.pngbin0 -> 1768 bytes
-rw-r--r--finicalprefs/Resources/twitter@3x.pngbin0 -> 2747 bytes
-rw-r--r--finicalprefs/entry.plist21
12 files changed, 290 insertions, 0 deletions
diff --git a/finicalprefs/.DS_Store b/finicalprefs/.DS_Store
new file mode 100644
index 0000000..966890a
--- /dev/null
+++ b/finicalprefs/.DS_Store
Binary files differ
diff --git a/finicalprefs/FCLRootListController.m b/finicalprefs/FCLRootListController.m
new file mode 100644
index 0000000..e22d31c
--- /dev/null
+++ b/finicalprefs/FCLRootListController.m
@@ -0,0 +1,30 @@
+#import <Preferences/PSListController.h>
+#import <spawn.h>
+@interface FCLRootListController : PSListController
+@end
+@implementation FCLRootListController
+
+-(void)respring {
+ pid_t pid;
+ const char* args[] = {"sbreload", NULL};
+ posix_spawn(&pid, "/usr/bin/sbreload", NULL, NULL, (char* const*)args, NULL);
+}
+- (NSArray *)specifiers {
+ if (!_specifiers) {
+ _specifiers = [self loadSpecifiersFromPlistName:@"Finical" target:self];
+ }
+ return _specifiers;
+}
+-(void)openDiscord {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://discord.gg/Vg2EYDR"] options:@{} completionHandler:nil];
+}
+-(void)openTwitterDM {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=974524608949903361&text=%28Please+describe+your+issue+here%29"] options:@{} completionHandler:nil];
+}
+-(void)openTwitter5px {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/o5pxels"] options:@{} completionHandler:nil];
+}
+-(void)openPayPal {
+ [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://paypal.me/fivepixels"] options:@{} completionHandler:nil];
+}
+@end
diff --git a/finicalprefs/Makefile b/finicalprefs/Makefile
new file mode 100644
index 0000000..1a63e84
--- /dev/null
+++ b/finicalprefs/Makefile
@@ -0,0 +1,15 @@
+include $(THEOS)/makefiles/common.mk
+
+BUNDLE_NAME = FinicalPrefs
+
+FinicalPrefs_FILES = FCLRootListController.m
+FinicalPrefs_INSTALL_PATH = /Library/PreferenceBundles
+FinicalPrefs_FRAMEWORKS = UIKit
+FinicalPrefs_PRIVATE_FRAMEWORKS = Preferences
+FinicalPrefs_CFLAGS = -fobjc-arc
+ARCHS = arm64 arm64e
+include $(THEOS_MAKE_PATH)/bundle.mk
+
+internal-stage::
+ $(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
+ $(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/FinicalPrefs.plist$(ECHO_END)
diff --git a/finicalprefs/Resources/Finical.plist b/finicalprefs/Resources/Finical.plist
new file mode 100644
index 0000000..d4c28ee
--- /dev/null
+++ b/finicalprefs/Resources/Finical.plist
@@ -0,0 +1,200 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+ <dict>
+ <key>items</key>
+ <array>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>label</key>
+ <string>Settings</string>
+ <key>footerText</key>
+ <string>Respring your device to apply changes.</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSwitchCell</string>
+ <key>default</key>
+ <true/>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>enabled</string>
+ <key>label</key>
+ <string>Enabled</string>
+
+ </dict>
+ <dict>
+ <key>action</key>
+ <string>respring</string>
+ <key>cell</key>
+ <string>PSButtonCell</string>
+ <key>label</key>
+ <string>Respring</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>label</key>
+ <string>Gesture Direction</string>
+ <key>footerText</key>
+ <string>The swipe direction to dismiss the Lockscreen player.</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSegmentCell</string>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>dismissGesture</string>
+ <key>default</key>
+ <integer>2</integer>
+ <key>validTitles</key>
+ <array>
+ <string>Left</string>
+ <string>Right</string>
+ <string>Up</string>
+ <string>Down</string>
+ </array>
+ <key>validValues</key>
+ <array>
+ <integer>0</integer>
+ <integer>1</integer>
+ <integer>2</integer>
+ <integer>3</integer>
+ </array>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>label</key>
+ <string>options</string>
+ <key>footerText</key>
+ <string>The time until the player is automatically dismissed.</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSwitchCell</string>
+ <key>default</key>
+ <false/>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>killApp</string>
+ <key>label</key>
+ <string>Close Now Playing App on Dismissal</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSwitchCell</string>
+ <key>default</key>
+ <false/>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>dismissPlayer</string>
+ <key>label</key>
+ <string>Dismiss Automatically</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSliderCell</string>
+ <key>min</key>
+ <real>0</real>
+ <key>max</key>
+ <real>60</real>
+ <key>default</key>
+ <real>0</real>
+ <key>showValue</key>
+ <true/>
+ <key>isSegmented</key>
+ <true/>
+ <key>segmentCount</key>
+ <integer>60</integer>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>timeValue</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSSegmentCell</string>
+ <key>defaults</key>
+ <string>com.5px.finical</string>
+ <key>key</key>
+ <string>timeOption</string>
+ <key>default</key>
+ <integer>0</integer>
+ <key>validTitles</key>
+ <array>
+ <string>Seconds</string>
+ <string>Minutes</string>
+ <string>Hours</string>
+ </array>
+ <key>validValues</key>
+ <array>
+ <integer>0</integer>
+ <integer>1</integer>
+ <integer>2</integer>
+ </array>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>label</key>
+ <string>Support</string>
+ <key>footerText</key>
+ <string>Having trouble with Finical?</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSButtonCell</string>
+ <key>action</key>
+ <string>openDiscord</string>
+ <key>label</key>
+ <string>FivePixels Discord Server</string>
+ <key>icon</key>
+ <string>discord.png</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSButtonCell</string>
+ <key>action</key>
+ <string>openTwitterDM</string>
+ <key>label</key>
+ <string>Get Support on Twitter</string>
+ <key>icon</key>
+ <string>twitter.png</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>label</key>
+ <string>Developer</string>
+ <key>footerText</key>
+ <string>"If this is coffee, please bring me some tea; but if this is tea, please bring me some coffee."</string>
+ <key>footerAlignment</key>
+ <integer>1</integer>
+ </dict>
+ <dict>
+ <key>action</key>
+ <string>openTwitter5px</string>
+ <key>cell</key>
+ <string>PSButtonCell</string>
+ <key>label</key>
+ <string>Dylan Bolger (FivePixels)</string>
+ </dict>
+ <dict>
+ <key>cell</key>
+ <string>PSGroupCell</string>
+ <key>footerAlignment</key>
+ <integer>1</integer>
+ <key>footerText</key>
+ <string>Dylan Bolger (FivePixels) © 2020</string>
+ </dict>
+ </array>
+ <key>title</key>
+ <string>Finical</string>
+ </dict>
+</plist>
diff --git a/finicalprefs/Resources/Info.plist b/finicalprefs/Resources/Info.plist
new file mode 100644
index 0000000..ffd77b8
--- /dev/null
+++ b/finicalprefs/Resources/Info.plist
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>FinicalPrefs</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.5px.finicalprefs</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundlePackageType</key>
+ <string>BNDL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>1.0.0</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>1.0</string>
+ <key>NSPrincipalClass</key>
+ <string>FCLRootListController</string>
+</dict>
+</plist>
diff --git a/finicalprefs/Resources/discord@2x.png b/finicalprefs/Resources/discord@2x.png
new file mode 100644
index 0000000..54f6a92
--- /dev/null
+++ b/finicalprefs/Resources/discord@2x.png
Binary files differ
diff --git a/finicalprefs/Resources/discord@3x.png b/finicalprefs/Resources/discord@3x.png
new file mode 100644
index 0000000..d58c334
--- /dev/null
+++ b/finicalprefs/Resources/discord@3x.png
Binary files differ
diff --git a/finicalprefs/Resources/icon@2x.png b/finicalprefs/Resources/icon@2x.png
new file mode 100644
index 0000000..3b9d210
--- /dev/null
+++ b/finicalprefs/Resources/icon@2x.png
Binary files differ
diff --git a/finicalprefs/Resources/icon@3x.png b/finicalprefs/Resources/icon@3x.png
new file mode 100644
index 0000000..43b0661
--- /dev/null
+++ b/finicalprefs/Resources/icon@3x.png
Binary files differ
diff --git a/finicalprefs/Resources/twitter@2x.png b/finicalprefs/Resources/twitter@2x.png
new file mode 100644
index 0000000..5fa8892
--- /dev/null
+++ b/finicalprefs/Resources/twitter@2x.png
Binary files differ
diff --git a/finicalprefs/Resources/twitter@3x.png b/finicalprefs/Resources/twitter@3x.png
new file mode 100644
index 0000000..9af7a41
--- /dev/null
+++ b/finicalprefs/Resources/twitter@3x.png
Binary files differ
diff --git a/finicalprefs/entry.plist b/finicalprefs/entry.plist
new file mode 100644
index 0000000..e094ad6
--- /dev/null
+++ b/finicalprefs/entry.plist
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>entry</key>
+ <dict>
+ <key>bundle</key>
+ <string>FinicalPrefs</string>
+ <key>cell</key>
+ <string>PSLinkCell</string>
+ <key>detail</key>
+ <string>FCLRootListController</string>
+ <key>icon</key>
+ <string>icon.png</string>
+ <key>isController</key>
+ <true/>
+ <key>label</key>
+ <string>Finical</string>
+ </dict>
+</dict>
+</plist>