From d2cb9115dc80f23bc22f896d11ed8dc1f247aaff Mon Sep 17 00:00:00 2001 From: FivePixels Date: Wed, 19 May 2021 13:24:15 -0500 Subject: Signate initial commit --- signateprefs/.DS_Store | Bin 0 -> 6148 bytes signateprefs/._.DS_Store | Bin 0 -> 4096 bytes signateprefs/Makefile | 15 ++ signateprefs/Resources/.DS_Store | Bin 0 -> 6148 bytes signateprefs/Resources/._.DS_Store | Bin 0 -> 4096 bytes signateprefs/Resources/Info.plist | 24 ++++ signateprefs/Resources/Signate.plist | 253 ++++++++++++++++++++++++++++++++++ signateprefs/Resources/icon.png | Bin 0 -> 1298 bytes signateprefs/Resources/icon@2x.png | Bin 0 -> 3432 bytes signateprefs/Resources/icon@3x.png | Bin 0 -> 6020 bytes signateprefs/Resources/twitter.png | Bin 0 -> 763 bytes signateprefs/Resources/twitter@2x.png | Bin 0 -> 2393 bytes signateprefs/Resources/twitter@3x.png | Bin 0 -> 5355 bytes signateprefs/SGNRootListController.m | 27 ++++ signateprefs/entry.plist | 21 +++ 15 files changed, 340 insertions(+) create mode 100644 signateprefs/.DS_Store create mode 100644 signateprefs/._.DS_Store create mode 100644 signateprefs/Makefile create mode 100644 signateprefs/Resources/.DS_Store create mode 100644 signateprefs/Resources/._.DS_Store create mode 100644 signateprefs/Resources/Info.plist create mode 100644 signateprefs/Resources/Signate.plist create mode 100644 signateprefs/Resources/icon.png create mode 100644 signateprefs/Resources/icon@2x.png create mode 100644 signateprefs/Resources/icon@3x.png create mode 100644 signateprefs/Resources/twitter.png create mode 100644 signateprefs/Resources/twitter@2x.png create mode 100644 signateprefs/Resources/twitter@3x.png create mode 100644 signateprefs/SGNRootListController.m create mode 100644 signateprefs/entry.plist (limited to 'signateprefs') diff --git a/signateprefs/.DS_Store b/signateprefs/.DS_Store new file mode 100644 index 0000000..966890a Binary files /dev/null and b/signateprefs/.DS_Store differ diff --git a/signateprefs/._.DS_Store b/signateprefs/._.DS_Store new file mode 100644 index 0000000..8e82ed9 Binary files /dev/null and b/signateprefs/._.DS_Store differ diff --git a/signateprefs/Makefile b/signateprefs/Makefile new file mode 100644 index 0000000..1f4d05b --- /dev/null +++ b/signateprefs/Makefile @@ -0,0 +1,15 @@ +include $(THEOS)/makefiles/common.mk + +BUNDLE_NAME = SignatePrefs + +SignatePrefs_FILES = SGNRootListController.m +SignatePrefs_INSTALL_PATH = /Library/PreferenceBundles +SignatePrefs_FRAMEWORKS = UIKit +SignatePrefs_PRIVATE_FRAMEWORKS = Preferences +SignatePrefs_CFLAGS = -fobjc-arc + +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/SignatePrefs.plist$(ECHO_END) diff --git a/signateprefs/Resources/.DS_Store b/signateprefs/Resources/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/signateprefs/Resources/.DS_Store differ diff --git a/signateprefs/Resources/._.DS_Store b/signateprefs/Resources/._.DS_Store new file mode 100644 index 0000000..8e82ed9 Binary files /dev/null and b/signateprefs/Resources/._.DS_Store differ diff --git a/signateprefs/Resources/Info.plist b/signateprefs/Resources/Info.plist new file mode 100644 index 0000000..f9fb712 --- /dev/null +++ b/signateprefs/Resources/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + SignatePrefs + CFBundleIdentifier + com.5px.signateprefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0.0 + CFBundleSignature + ???? + CFBundleVersion + 1.0 + NSPrincipalClass + SGNRootListController + + diff --git a/signateprefs/Resources/Signate.plist b/signateprefs/Resources/Signate.plist new file mode 100644 index 0000000..6e98e38 --- /dev/null +++ b/signateprefs/Resources/Signate.plist @@ -0,0 +1,253 @@ + + + + + + items + + + cell + PSGroupCell + footerText + Signate will automatically apply changes about 5 seconds after making a change + + + cell + PSSwitchCell + default + + defaults + com.5px.signate + key + enabled + label + Enabled + PostNotification + com.5px.signate.settingschanged + + + cell + PSGroupCell + footerText + Add the text "Uptime:" before the time displayed + + + cell + PSSwitchCell + default + + defaults + com.5px.signate + key + uptimeTextEnabled + label + Uptime Label + PostNotification + com.5px.signate.settingschanged + + + + cell + PSGroupCell + label + Signate Options + footerText + Select units to be displayed on the lockscreen + + + + cell + PSSegmentCell + defaults + com.5px.signate + key + displaySetting + default + 1 + validTitles + + Days + Hours + Minutes + Seconds + + validValues + + 0 + 1 + 2 + 3 + + PostNotification + com.5px.signate.settingschanged + + + + cell + PSGroupCell + label + Font Options + + + + cell + PSSegmentCell + defaults + com.5px.signate + key + fontWeight + default + 2 + validTitles + + Thin + Regular + Bold + Heavy + + validValues + + 0 + 1 + 2 + 3 + + PostNotification + com.5px.signate.settingschanged + + + + cell + PSLinkListCell + defaults + com.5px.signate + default + 1 + detail + PSListItemsController + key + fontAlignment + label + Alignment + validTitles + + Left + Center + Right + + validValues + + 0 + 1 + 2 + + PostNotification + com.5px.signate.settingschanged + + + + cell + PSGroupCell + label + X and Y Offset + footerText + The X-axis negative values will make the label move left, positive will move the label move right. The Y-axis negative values will move the label up, positive will move the label down. + + + + cell + PSSliderCell + default + 0 + defaults + com.5px.signate + key + offsetWidth + max + 200 + min + -200 + showValue + + PostNotification + com.5px.signate.settingschanged + + + + cell + PSSliderCell + default + -35 + defaults + com.5px.signate + key + offsetHeight + max + 200 + min + -200 + showValue + + PostNotification + com.5px.signate.settingschanged + + + cell + PSGroupCell + label + Support + footerText + If you have any issues with this tweak, describe your issue and I'll try to assist you in the best way possible! + + + action + openTwitterDM + cell + PSButtonCell + label + DM @o5pxels on Twitter + icon + twitter.png + + + cell + PSGroupCell + label + Credits + + + action + openTwitter5px + cell + PSButtonCell + label + @o5pxels + footerText + Developer + + + action + openTwitterRO + cell + PSButtonCell + label + @rollerorangedev + footerText + Designer + + + cell + PSGroupCell + footerAlignment + 1 + footerText + © 2020 FivePixels + + + + + title + Signate + + + diff --git a/signateprefs/Resources/icon.png b/signateprefs/Resources/icon.png new file mode 100644 index 0000000..2c5b8b7 Binary files /dev/null and b/signateprefs/Resources/icon.png differ diff --git a/signateprefs/Resources/icon@2x.png b/signateprefs/Resources/icon@2x.png new file mode 100644 index 0000000..5c5339d Binary files /dev/null and b/signateprefs/Resources/icon@2x.png differ diff --git a/signateprefs/Resources/icon@3x.png b/signateprefs/Resources/icon@3x.png new file mode 100644 index 0000000..3759fc5 Binary files /dev/null and b/signateprefs/Resources/icon@3x.png differ diff --git a/signateprefs/Resources/twitter.png b/signateprefs/Resources/twitter.png new file mode 100644 index 0000000..18edeb4 Binary files /dev/null and b/signateprefs/Resources/twitter.png differ diff --git a/signateprefs/Resources/twitter@2x.png b/signateprefs/Resources/twitter@2x.png new file mode 100644 index 0000000..e67c2ce Binary files /dev/null and b/signateprefs/Resources/twitter@2x.png differ diff --git a/signateprefs/Resources/twitter@3x.png b/signateprefs/Resources/twitter@3x.png new file mode 100644 index 0000000..7a9d166 Binary files /dev/null and b/signateprefs/Resources/twitter@3x.png differ diff --git a/signateprefs/SGNRootListController.m b/signateprefs/SGNRootListController.m new file mode 100644 index 0000000..1489f36 --- /dev/null +++ b/signateprefs/SGNRootListController.m @@ -0,0 +1,27 @@ +#import + +@interface SGNRootListController : PSListController + +@end +@implementation SGNRootListController + +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [self loadSpecifiersFromPlistName:@"Signate" target:self]; + } + + return _specifiers; +} + +-(void)openTwitterDM { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/messages/compose?recipient_id=765771568337264641&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)openTwitterRO { + [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/rollerorangedev"] options:@{} completionHandler:nil]; +} + + +@end diff --git a/signateprefs/entry.plist b/signateprefs/entry.plist new file mode 100644 index 0000000..dac1410 --- /dev/null +++ b/signateprefs/entry.plist @@ -0,0 +1,21 @@ + + + + + entry + + bundle + SignatePrefs + cell + PSLinkCell + detail + SGNRootListController + icon + icon.png + isController + + label + Signate + + + -- cgit v1.2.3