diff options
Diffstat (limited to 'signateprefs')
| -rw-r--r-- | signateprefs/.DS_Store | bin | 0 -> 6148 bytes | |||
| -rw-r--r-- | signateprefs/._.DS_Store | bin | 0 -> 4096 bytes | |||
| -rw-r--r-- | signateprefs/Makefile | 15 | ||||
| -rw-r--r-- | signateprefs/Resources/.DS_Store | bin | 0 -> 6148 bytes | |||
| -rw-r--r-- | signateprefs/Resources/._.DS_Store | bin | 0 -> 4096 bytes | |||
| -rw-r--r-- | signateprefs/Resources/Info.plist | 24 | ||||
| -rw-r--r-- | signateprefs/Resources/Signate.plist | 253 | ||||
| -rw-r--r-- | signateprefs/Resources/icon.png | bin | 0 -> 1298 bytes | |||
| -rw-r--r-- | signateprefs/Resources/icon@2x.png | bin | 0 -> 3432 bytes | |||
| -rw-r--r-- | signateprefs/Resources/icon@3x.png | bin | 0 -> 6020 bytes | |||
| -rw-r--r-- | signateprefs/Resources/twitter.png | bin | 0 -> 763 bytes | |||
| -rw-r--r-- | signateprefs/Resources/twitter@2x.png | bin | 0 -> 2393 bytes | |||
| -rw-r--r-- | signateprefs/Resources/twitter@3x.png | bin | 0 -> 5355 bytes | |||
| -rw-r--r-- | signateprefs/SGNRootListController.m | 27 | ||||
| -rw-r--r-- | signateprefs/entry.plist | 21 |
15 files changed, 340 insertions, 0 deletions
diff --git a/signateprefs/.DS_Store b/signateprefs/.DS_Store Binary files differnew file mode 100644 index 0000000..966890a --- /dev/null +++ b/signateprefs/.DS_Store diff --git a/signateprefs/._.DS_Store b/signateprefs/._.DS_Store Binary files differnew file mode 100644 index 0000000..8e82ed9 --- /dev/null +++ b/signateprefs/._.DS_Store 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 Binary files differnew file mode 100644 index 0000000..5008ddf --- /dev/null +++ b/signateprefs/Resources/.DS_Store diff --git a/signateprefs/Resources/._.DS_Store b/signateprefs/Resources/._.DS_Store Binary files differnew file mode 100644 index 0000000..8e82ed9 --- /dev/null +++ b/signateprefs/Resources/._.DS_Store 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 @@ +<?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>SignatePrefs</string> + <key>CFBundleIdentifier</key> + <string>com.5px.signateprefs</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>SGNRootListController</string> +</dict> +</plist> 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 @@ +<?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>footerText</key> + <string>Signate will automatically apply changes about 5 seconds after making a change</string> + </dict> + <dict> + <key>cell</key> + <string>PSSwitchCell</string> + <key>default</key> + <true/> + <key>defaults</key> + <string>com.5px.signate</string> + <key>key</key> + <string>enabled</string> + <key>label</key> + <string>Enabled</string> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>footerText</key> + <string>Add the text "Uptime:" before the time displayed</string> + </dict> + <dict> + <key>cell</key> + <string>PSSwitchCell</string> + <key>default</key> + <true/> + <key>defaults</key> + <string>com.5px.signate</string> + <key>key</key> + <string>uptimeTextEnabled</string> + <key>label</key> + <string>Uptime Label</string> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Signate Options</string> + <key>footerText</key> + <string>Select units to be displayed on the lockscreen</string> + </dict> + + <dict> + <key>cell</key> + <string>PSSegmentCell</string> + <key>defaults</key> + <string>com.5px.signate</string> + <key>key</key> + <string>displaySetting</string> + <key>default</key> + <integer>1</integer> + <key>validTitles</key> + <array> + <string>Days</string> + <string>Hours</string> + <string>Minutes</string> + <string>Seconds</string> + </array> + <key>validValues</key> + <array> + <integer>0</integer> + <integer>1</integer> + <integer>2</integer> + <integer>3</integer> + </array> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Font Options</string> + </dict> + + <dict> + <key>cell</key> + <string>PSSegmentCell</string> + <key>defaults</key> + <string>com.5px.signate</string> + <key>key</key> + <string>fontWeight</string> + <key>default</key> + <integer>2</integer> + <key>validTitles</key> + <array> + <string>Thin</string> + <string>Regular</string> + <string>Bold</string> + <string>Heavy</string> + </array> + <key>validValues</key> + <array> + <integer>0</integer> + <integer>1</integer> + <integer>2</integer> + <integer>3</integer> + </array> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + + <dict> + <key>cell</key> + <string>PSLinkListCell</string> + <key>defaults</key> + <string>com.5px.signate</string> + <key>default</key> + <integer>1</integer> + <key>detail</key> + <string>PSListItemsController</string> + <key>key</key> + <string>fontAlignment</string> + <key>label</key> + <string>Alignment</string> + <key>validTitles</key> + <array> + <string>Left</string> + <string>Center</string> + <string>Right</string> + </array> + <key>validValues</key> + <array> + <integer>0</integer> + <integer>1</integer> + <integer>2</integer> + </array> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>X and Y Offset</string> + <key>footerText</key> + <string>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.</string> + </dict> + + <dict> + <key>cell</key> + <string>PSSliderCell</string> + <key>default</key> + <integer>0</integer> <!-- Default value of the slider --> + <key>defaults</key> + <string>com.5px.signate</string> <!-- Your package name here --> + <key>key</key> + <string>offsetWidth</string> <!-- Your key name here --> + <key>max</key> + <real>200</real> <!-- Enter your maximum value here --> + <key>min</key> + <real>-200</real> <!-- Enter your minimum value here --> + <key>showValue</key> <!-- Show the value of the slider. true or false. --> + <true/> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + + <dict> + <key>cell</key> + <string>PSSliderCell</string> + <key>default</key> + <integer>-35</integer> <!-- Default value of the slider --> + <key>defaults</key> + <string>com.5px.signate</string> <!-- Your package name here --> + <key>key</key> + <string>offsetHeight</string> <!-- Your key name here --> + <key>max</key> + <real>200</real> <!-- Enter your maximum value here --> + <key>min</key> + <real>-200</real> <!-- Enter your minimum value here --> + <key>showValue</key> <!-- Show the value of the slider. true or false. --> + <true/> + <key>PostNotification</key> + <string>com.5px.signate.settingschanged</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Support</string> + <key>footerText</key> + <string>If you have any issues with this tweak, describe your issue and I'll try to assist you in the best way possible!</string> + </dict> + <dict> + <key>action</key> + <string>openTwitterDM</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>DM @o5pxels on Twitter</string> + <key>icon</key> + <string>twitter.png</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>label</key> + <string>Credits</string> + </dict> + <dict> + <key>action</key> + <string>openTwitter5px</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>@o5pxels</string> + <key>footerText</key> + <string>Developer</string> + </dict> + <dict> + <key>action</key> + <string>openTwitterRO</string> + <key>cell</key> + <string>PSButtonCell</string> + <key>label</key> + <string>@rollerorangedev</string> + <key>footerText</key> + <string>Designer</string> + </dict> + <dict> + <key>cell</key> + <string>PSGroupCell</string> + <key>footerAlignment</key> + <integer>1</integer> + <key>footerText</key> + <string>© 2020 FivePixels</string> + </dict> + + </array> + + <key>title</key> + <string>Signate</string> +</dict> +</plist> + diff --git a/signateprefs/Resources/icon.png b/signateprefs/Resources/icon.png Binary files differnew file mode 100644 index 0000000..2c5b8b7 --- /dev/null +++ b/signateprefs/Resources/icon.png diff --git a/signateprefs/Resources/icon@2x.png b/signateprefs/Resources/icon@2x.png Binary files differnew file mode 100644 index 0000000..5c5339d --- /dev/null +++ b/signateprefs/Resources/icon@2x.png diff --git a/signateprefs/Resources/icon@3x.png b/signateprefs/Resources/icon@3x.png Binary files differnew file mode 100644 index 0000000..3759fc5 --- /dev/null +++ b/signateprefs/Resources/icon@3x.png diff --git a/signateprefs/Resources/twitter.png b/signateprefs/Resources/twitter.png Binary files differnew file mode 100644 index 0000000..18edeb4 --- /dev/null +++ b/signateprefs/Resources/twitter.png diff --git a/signateprefs/Resources/twitter@2x.png b/signateprefs/Resources/twitter@2x.png Binary files differnew file mode 100644 index 0000000..e67c2ce --- /dev/null +++ b/signateprefs/Resources/twitter@2x.png diff --git a/signateprefs/Resources/twitter@3x.png b/signateprefs/Resources/twitter@3x.png Binary files differnew file mode 100644 index 0000000..7a9d166 --- /dev/null +++ b/signateprefs/Resources/twitter@3x.png 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 <Preferences/PSListController.h> + +@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 @@ +<?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>SignatePrefs</string> + <key>cell</key> + <string>PSLinkCell</string> + <key>detail</key> + <string>SGNRootListController</string> + <key>icon</key> + <string>icon.png</string> + <key>isController</key> + <true/> + <key>label</key> + <string>Signate</string> + </dict> +</dict> +</plist> |
