diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control index 160c488..8656020 100644 --- a/.theos/_/DEBIAN/control +++ b/.theos/_/DEBIAN/control @@ -3,8 +3,10 @@ Name: UnderTime Depends: mobilesubstrate Architecture: iphoneos-arm Description: Customizable date under time in iX StatusBar. -Maintainer: MPG13 -Author: MPG13 +Homepage: https://mpg13.github.io +Depiction: https://mpg13.github.io/repo/depicts/undertime.html +Maintainer: MPG13 +Author: MPG13 Section: Tweaks -Version: 1.1-16+debug +Version: 1.3-18+debug Installed-Size: 192 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib index 2b4b439..fe4c89e 100755 Binary files a/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/UnderTime.dylib differ diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist index 2c1334d..b0e769b 100644 --- a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist +++ b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/Root.plist @@ -32,14 +32,68 @@ label Enable tweak + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneEnable + label + Custom First Line + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneStandard + label + First Line Standard String + cell PSGroupCell label - Date Format + First Line height 10 + + cell + PSEditTextCell + default + h:m + defaults + com.mpg13.undertime + key + lineOne + + + cell + PSGroupCell + label + Second Line + height + 10 + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineTwoStandard + label + Second Line Standard String + cell PSEditTextCell @@ -48,7 +102,7 @@ defaults com.mpg13.undertime key - dformat + lineTwo cell @@ -116,12 +170,6 @@ label Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" - - cell - PSGroupCell - label - Respringing twice might be necessary. - title UnderTime diff --git a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime index 2f4d7ca..e178660 100755 Binary files a/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime and b/.theos/_/Library/PreferenceBundles/UnderTime.bundle/UnderTime differ diff --git a/.theos/last_package b/.theos/last_package index 471057d..4fc6aea 100644 --- a/.theos/last_package +++ b/.theos/last_package @@ -1 +1 @@ -./packages/com.mpg13.undertime_1.1-16+debug_iphoneos-arm.deb +./packages/com.mpg13.undertime_1.3-18+debug_iphoneos-arm.deb diff --git a/.theos/obj/debug/UnderTime.bundle/Root.plist b/.theos/obj/debug/UnderTime.bundle/Root.plist index 2c1334d..b0e769b 100644 --- a/.theos/obj/debug/UnderTime.bundle/Root.plist +++ b/.theos/obj/debug/UnderTime.bundle/Root.plist @@ -32,14 +32,68 @@ label Enable tweak + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneEnable + label + Custom First Line + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneStandard + label + First Line Standard String + cell PSGroupCell label - Date Format + First Line height 10 + + cell + PSEditTextCell + default + h:m + defaults + com.mpg13.undertime + key + lineOne + + + cell + PSGroupCell + label + Second Line + height + 10 + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineTwoStandard + label + Second Line Standard String + cell PSEditTextCell @@ -48,7 +102,7 @@ defaults com.mpg13.undertime key - dformat + lineTwo cell @@ -116,12 +170,6 @@ label Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" - - cell - PSGroupCell - label - Respringing twice might be necessary. - title UnderTime diff --git a/.theos/obj/debug/UnderTime.bundle/UnderTime b/.theos/obj/debug/UnderTime.bundle/UnderTime index 2f4d7ca..e178660 100755 Binary files a/.theos/obj/debug/UnderTime.bundle/UnderTime and b/.theos/obj/debug/UnderTime.bundle/UnderTime differ diff --git a/.theos/obj/debug/UnderTime.dylib b/.theos/obj/debug/UnderTime.dylib index 2b4b439..fe4c89e 100755 Binary files a/.theos/obj/debug/UnderTime.dylib and b/.theos/obj/debug/UnderTime.dylib differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.41206041.Td b/.theos/obj/debug/arm64/Tweak.xm.41206041.Td new file mode 100644 index 0000000..5923f15 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.xm.41206041.Td @@ -0,0 +1,17 @@ +/home/mpg13/UnderTime/.theos/obj/debug/arm64/Tweak.xm.41206041.o: \ + /home/mpg13/UnderTime/.theos/obj/debug/arm64/Tweak.xm.mm \ + /home/mpg13/theos/Prefix.pch \ + /home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \ + /home/mpg13/UnderTime/important.h \ + /home/mpg13/theos/vendor/include/substrate.h + +/home/mpg13/theos/Prefix.pch: + +/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h: + +/home/mpg13/UnderTime/important.h: + +/home/mpg13/theos/vendor/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.xm.41206041.o b/.theos/obj/debug/arm64/Tweak.xm.41206041.o new file mode 100644 index 0000000..4af37b8 Binary files /dev/null and b/.theos/obj/debug/arm64/Tweak.xm.41206041.o differ diff --git a/.theos/obj/debug/arm64/Tweak.xm.mm b/.theos/obj/debug/arm64/Tweak.xm.mm index d2b6362..8acfb5a 100644 --- a/.theos/obj/debug/arm64/Tweak.xm.mm +++ b/.theos/obj/debug/arm64/Tweak.xm.mm @@ -1,5 +1,6 @@ #line 1 "Tweak.xm" #import "important.h" +#import @interface _UIStatusBarStringView : UIView @property (copy) NSString *text; @@ -31,27 +32,42 @@ int sizeOfFont = GetPrefInt(@"sizeOfFont"); #define _LOGOS_RETURN_RETAINED #endif -@class _UIStatusBarBackgroundActivityView; @class _UIStatusBarTimeItem; @class _UIStatusBarStringView; +@class _UIStatusBarBackgroundActivityView; @class _UIStatusBarStringView; @class _UIStatusBarTimeItem; static void (*_logos_orig$_ungrouped$_UIStatusBarStringView$setText$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST, SEL, NSString *); static id (*_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static id _logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST, SEL, id, id); static void (*_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$)(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint); static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST, SEL, CGPoint); -#line 12 "Tweak.xm" +#line 13 "Tweak.xm" static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarStringView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, NSString * text) { - if(GetPrefBool(@"Enable")) { - _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text); + if(GetPrefBool(@"Enable") && ![text containsString:@"%"]) { + NSString *lineTwo = GetPrefString(@"lineTwo"); + NSString *lineOne = GetPrefString(@"lineOne"); + NSString *timeLineTwo; + NSString *timeLineOne; - NSString *dformat = GetPrefString(@"dformat"); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; - [dateFormatter setDateFormat:dformat]; NSDate *now = [NSDate date]; - NSString *shortDate = [dateFormatter stringFromDate:now]; - shortDate = [shortDate substringToIndex:[shortDate length]]; - NSString *newString = [NSString stringWithFormat:@"%@\n%@", text, shortDate]; - + if(!GetPrefBool(@"lineOneStandard")){ + [dateFormatter setDateFormat:lineTwo]; + timeLineTwo = [dateFormatter stringFromDate:now]; + timeLineTwo = [timeLineTwo substringToIndex:[timeLineTwo length]]; + } + if(!GetPrefBool(@"lineTwoStandard")){ + [dateFormatter setDateFormat:lineOne]; + timeLineOne = [dateFormatter stringFromDate:now]; + timeLineOne = [timeLineOne substringToIndex:[timeLineOne length]]; + } + NSString *newString; + if(GetPrefBool(@"lineOneEnable")){ + newString = [NSString stringWithFormat:@"%@\n%@", timeLineOne, timeLineTwo]; + } + else{ + newString = [NSString stringWithFormat:@"%@\n%@", text, timeLineTwo]; + } + [self setFont: [self.font fontWithSize:sizeOfFont]]; if(GetPrefBool(@"replaceTime")){ - _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, shortDate); + _logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, timeLineTwo); } else{ self.textAlignment = 1; @@ -72,16 +88,13 @@ static void _logos_method$_ungrouped$_UIStatusBarStringView$setText$(_LOGOS_SELF @end - static id _logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarTimeItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1, id arg2) { - _logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(self, _cmd, arg1, arg2); - if(GetPrefBool(@"Enable")) { id returnThis = _logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$(self, _cmd, arg1, arg2); - [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; - [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; - return returnThis; + if(GetPrefBool(@"Enable")) { + [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; + [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; } -return 0; + return returnThis; } @@ -93,20 +106,17 @@ return 0; static void _logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(_LOGOS_SELF_TYPE_NORMAL _UIStatusBarBackgroundActivityView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, CGPoint point) { - _logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(self, _cmd, point); - if(GetPrefBool(@"Enable")) { - if(GetPrefBool(@"replaceTime")){ - } - else{ + if(GetPrefBool(@"Enable") && !GetPrefBool(@"replaceTime")){ point.y = 11; self.frame = CGRectMake(0, 0, self.frame.size.width, 31); self.pulseLayer.frame = CGRectMake(0, 0, self.frame.size.width, 31); _logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$(self, _cmd, point); - } } } + + static __attribute__((constructor)) void _logosLocalInit() { {Class _logos_class$_ungrouped$_UIStatusBarStringView = objc_getClass("_UIStatusBarStringView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarStringView, @selector(setText:), (IMP)&_logos_method$_ungrouped$_UIStatusBarStringView$setText$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarStringView$setText$);Class _logos_class$_ungrouped$_UIStatusBarTimeItem = objc_getClass("_UIStatusBarTimeItem"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarTimeItem, @selector(applyUpdate:toDisplayItem:), (IMP)&_logos_method$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarTimeItem$applyUpdate$toDisplayItem$);Class _logos_class$_ungrouped$_UIStatusBarBackgroundActivityView = objc_getClass("_UIStatusBarBackgroundActivityView"); MSHookMessageEx(_logos_class$_ungrouped$_UIStatusBarBackgroundActivityView, @selector(setCenter:), (IMP)&_logos_method$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$, (IMP*)&_logos_orig$_ungrouped$_UIStatusBarBackgroundActivityView$setCenter$);} } -#line 84 "Tweak.xm" +#line 94 "Tweak.xm" diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime index a6089f1..d63c5b6 100755 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime and b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime differ diff --git a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime index 9979473..ae40458 100644 Binary files a/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime and b/.theos/obj/debug/arm64/UnderTime.bundle/UnderTime.dSYM/Contents/Resources/DWARF/UnderTime differ diff --git a/.theos/obj/debug/arm64/UnderTime.dylib b/.theos/obj/debug/arm64/UnderTime.dylib index 12f0929..247e8c5 100755 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib and b/.theos/obj/debug/arm64/UnderTime.dylib differ diff --git a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib b/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib index 9526112..9e05b92 100644 Binary files a/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib and b/.theos/obj/debug/arm64/UnderTime.dylib.dSYM/Contents/Resources/DWARF/UnderTime.dylib differ diff --git a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td new file mode 100644 index 0000000..1fd04fe --- /dev/null +++ b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.Td @@ -0,0 +1,19 @@ +/home/mpg13/UnderTime/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o: \ + udtRootListController.m /home/mpg13/theos/Prefix.pch \ + /home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \ + udtRootListController.h \ + /home/mpg13/theos/vendor/include/Preferences/PSListController.h \ + /home/mpg13/theos/vendor/include/Preferences/PSViewController.h + +/home/mpg13/theos/Prefix.pch: + +/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h: + +udtRootListController.h: + +/home/mpg13/theos/vendor/include/Preferences/PSListController.h: + +/home/mpg13/theos/vendor/include/Preferences/PSViewController.h: diff --git a/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o new file mode 100644 index 0000000..e0d5f1d Binary files /dev/null and b/.theos/obj/debug/arm64/udtRootListController.m.b4efe98b.o differ diff --git a/.theos/packages/com.mpg13.undertime-1.1 b/.theos/packages/com.mpg13.undertime-1.1 new file mode 100644 index 0000000..19c7bdb --- /dev/null +++ b/.theos/packages/com.mpg13.undertime-1.1 @@ -0,0 +1 @@ +16 \ No newline at end of file diff --git a/.theos/packages/com.mpg13.undertime-1.2 b/.theos/packages/com.mpg13.undertime-1.2 index c24b6ae..72f523f 100644 --- a/.theos/packages/com.mpg13.undertime-1.2 +++ b/.theos/packages/com.mpg13.undertime-1.2 @@ -1 +1 @@ -38 \ No newline at end of file +39 \ No newline at end of file diff --git a/.theos/packages/com.mpg13.undertime-1.3 b/.theos/packages/com.mpg13.undertime-1.3 new file mode 100644 index 0000000..25bf17f --- /dev/null +++ b/.theos/packages/com.mpg13.undertime-1.3 @@ -0,0 +1 @@ +18 \ No newline at end of file diff --git a/Tweak.xm b/Tweak.xm index 0e58e32..1999afc 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -1,4 +1,5 @@ #import "important.h" +#import @interface _UIStatusBarStringView : UIView @property (copy) NSString *text; @@ -12,20 +13,35 @@ int sizeOfFont = GetPrefInt(@"sizeOfFont"); %hook _UIStatusBarStringView - (void)setText:(NSString *)text { - if(GetPrefBool(@"Enable")) { - %orig; + if(GetPrefBool(@"Enable") && ![text containsString:@"%"]) { + NSString *lineTwo = GetPrefString(@"lineTwo"); + NSString *lineOne = GetPrefString(@"lineOne"); + NSString *timeLineTwo; + NSString *timeLineOne; - NSString *dformat = GetPrefString(@"dformat"); NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; - [dateFormatter setDateFormat:dformat]; NSDate *now = [NSDate date]; - NSString *shortDate = [dateFormatter stringFromDate:now]; - shortDate = [shortDate substringToIndex:[shortDate length]]; - NSString *newString = [NSString stringWithFormat:@"%@\n%@", text, shortDate]; - + if(!GetPrefBool(@"lineOneStandard")){ + [dateFormatter setDateFormat:lineTwo]; + timeLineTwo = [dateFormatter stringFromDate:now]; + timeLineTwo = [timeLineTwo substringToIndex:[timeLineTwo length]]; + } + if(!GetPrefBool(@"lineTwoStandard")){ + [dateFormatter setDateFormat:lineOne]; + timeLineOne = [dateFormatter stringFromDate:now]; + timeLineOne = [timeLineOne substringToIndex:[timeLineOne length]]; + } + NSString *newString; + if(GetPrefBool(@"lineOneEnable")){ + newString = [NSString stringWithFormat:@"%@\n%@", timeLineOne, timeLineTwo]; + } + else{ + newString = [NSString stringWithFormat:@"%@\n%@", text, timeLineTwo]; + } + [self setFont: [self.font fontWithSize:sizeOfFont]]; if(GetPrefBool(@"replaceTime")){ - %orig(shortDate); + %orig(timeLineTwo); } else{ self.textAlignment = 1; @@ -46,16 +62,13 @@ int sizeOfFont = GetPrefInt(@"sizeOfFont"); @end %hook _UIStatusBarTimeItem - - (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 { - %orig; - if(GetPrefBool(@"Enable")) { id returnThis = %orig; - [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; - [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; - return returnThis; + if(GetPrefBool(@"Enable")) { + [self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]]; + [self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:sizeOfFont]]; } -return 0; + return returnThis; } %end @@ -67,17 +80,14 @@ return 0; %hook _UIStatusBarBackgroundActivityView - (void)setCenter:(CGPoint)point { - %orig; - if(GetPrefBool(@"Enable")) { - if(GetPrefBool(@"replaceTime")){ - } - else{ + if(GetPrefBool(@"Enable") && !GetPrefBool(@"replaceTime")){ point.y = 11; self.frame = CGRectMake(0, 0, self.frame.size.width, 31); self.pulseLayer.frame = CGRectMake(0, 0, self.frame.size.width, 31); %orig(point); - } } } + + %end diff --git a/control b/control index a523347..5e981d2 100644 --- a/control +++ b/control @@ -1,9 +1,11 @@ Package: com.mpg13.undertime Name: UnderTime Depends: mobilesubstrate -Version: 1.1 +Version: 1.3 Architecture: iphoneos-arm Description: Customizable date under time in iX StatusBar. -Maintainer: MPG13 -Author: MPG13 +Homepage: https://mpg13.github.io +Depiction: https://mpg13.github.io/repo/depicts/undertime.html +Maintainer: MPG13 +Author: MPG13 Section: Tweaks diff --git a/packages/com.mpg13.undertime_1.1-1+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-1+debug_iphoneos-arm.deb new file mode 100644 index 0000000..cd71b54 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-1+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-10+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-10+debug_iphoneos-arm.deb new file mode 100644 index 0000000..03b3184 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-10+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-11+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-11+debug_iphoneos-arm.deb new file mode 100644 index 0000000..193701e Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-11+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-12+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-12+debug_iphoneos-arm.deb new file mode 100644 index 0000000..7473811 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-12+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-13+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-13+debug_iphoneos-arm.deb new file mode 100644 index 0000000..cf4cea6 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-13+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-14+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-14+debug_iphoneos-arm.deb new file mode 100644 index 0000000..195c383 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-14+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-15+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-15+debug_iphoneos-arm.deb new file mode 100644 index 0000000..4cad846 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-15+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-16+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-16+debug_iphoneos-arm.deb new file mode 100644 index 0000000..3628ec7 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-16+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-2+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-2+debug_iphoneos-arm.deb new file mode 100644 index 0000000..1b8ce90 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-2+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-3+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-3+debug_iphoneos-arm.deb new file mode 100644 index 0000000..a1dce9c Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-3+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-4+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-4+debug_iphoneos-arm.deb new file mode 100644 index 0000000..bbbcf1d Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-4+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-5+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-5+debug_iphoneos-arm.deb new file mode 100644 index 0000000..e869f87 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-5+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-6+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-6+debug_iphoneos-arm.deb new file mode 100644 index 0000000..ea6b783 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-6+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-7+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-7+debug_iphoneos-arm.deb new file mode 100644 index 0000000..290915a Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-7+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-8+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-8+debug_iphoneos-arm.deb new file mode 100644 index 0000000..e3fe3e7 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-8+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.1-9+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.1-9+debug_iphoneos-arm.deb new file mode 100644 index 0000000..7ef0ce6 Binary files /dev/null and b/packages/com.mpg13.undertime_1.1-9+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.2-39+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.2-39+debug_iphoneos-arm.deb new file mode 100644 index 0000000..cae6969 Binary files /dev/null and b/packages/com.mpg13.undertime_1.2-39+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-1+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-1+debug_iphoneos-arm.deb new file mode 100644 index 0000000..299896c Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-1+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-10+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-10+debug_iphoneos-arm.deb new file mode 100644 index 0000000..2ac71a7 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-10+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-11+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-11+debug_iphoneos-arm.deb new file mode 100644 index 0000000..66d766f Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-11+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-12+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-12+debug_iphoneos-arm.deb new file mode 100644 index 0000000..008cb19 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-12+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-13+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-13+debug_iphoneos-arm.deb new file mode 100644 index 0000000..9a90279 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-13+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-14+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-14+debug_iphoneos-arm.deb new file mode 100644 index 0000000..bc6cb35 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-14+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-15+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-15+debug_iphoneos-arm.deb new file mode 100644 index 0000000..3cbe29b Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-15+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-16+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-16+debug_iphoneos-arm.deb new file mode 100644 index 0000000..0fbcbf9 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-16+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-17+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-17+debug_iphoneos-arm.deb new file mode 100644 index 0000000..40c183b Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-17+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-18+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-18+debug_iphoneos-arm.deb new file mode 100644 index 0000000..3c48be3 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-18+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-2+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-2+debug_iphoneos-arm.deb new file mode 100644 index 0000000..7384d34 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-2+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-3+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-3+debug_iphoneos-arm.deb new file mode 100644 index 0000000..b52a5a8 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-3+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-4+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-4+debug_iphoneos-arm.deb new file mode 100644 index 0000000..1758b2c Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-4+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-5+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-5+debug_iphoneos-arm.deb new file mode 100644 index 0000000..ba02896 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-5+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-6+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-6+debug_iphoneos-arm.deb new file mode 100644 index 0000000..dece560 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-6+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-7+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-7+debug_iphoneos-arm.deb new file mode 100644 index 0000000..7024ccb Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-7+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-8+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-8+debug_iphoneos-arm.deb new file mode 100644 index 0000000..733cd7e Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-8+debug_iphoneos-arm.deb differ diff --git a/packages/com.mpg13.undertime_1.3-9+debug_iphoneos-arm.deb b/packages/com.mpg13.undertime_1.3-9+debug_iphoneos-arm.deb new file mode 100644 index 0000000..93a2629 Binary files /dev/null and b/packages/com.mpg13.undertime_1.3-9+debug_iphoneos-arm.deb differ diff --git a/UnderTime/Makefile b/undertime/Makefile similarity index 91% rename from UnderTime/Makefile rename to undertime/Makefile index 670fe7e..87b6abb 100644 --- a/UnderTime/Makefile +++ b/undertime/Makefile @@ -4,7 +4,7 @@ TARGET = iphone:clang:latest include $(THEOS)/makefiles/common.mk BUNDLE_NAME = UnderTime -UnderTime_FILES = UnderTimeRootListController.m +UnderTime_FILES = udtRootListController.m UnderTime_INSTALL_PATH = /Library/PreferenceBundles UnderTime_FRAMEWORKS = UIKit UnderTime_PRIVATE_FRAMEWORKS = Preferences diff --git a/UnderTime/Resources/Info.plist b/undertime/Resources/Info.plist similarity index 88% rename from UnderTime/Resources/Info.plist rename to undertime/Resources/Info.plist index cd0ea7e..1146527 100644 --- a/UnderTime/Resources/Info.plist +++ b/undertime/Resources/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable UnderTime CFBundleIdentifier - com.mpg13.UnderTime + com.mpg13.undertime CFBundleInfoDictionaryVersion 6.0 CFBundlePackageType @@ -19,6 +19,6 @@ CFBundleVersion 1.0 NSPrincipalClass - UnderTimeRootListController + udtRootListController diff --git a/undertime/Resources/Root.plist b/undertime/Resources/Root.plist new file mode 100644 index 0000000..b0e769b --- /dev/null +++ b/undertime/Resources/Root.plist @@ -0,0 +1,177 @@ + + + + + items + + + cell + PSStaticTextCell + height + 45 + label + UnderTime + + + cell + PSGroupCell + label + + height + 10 + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + Enable + label + Enable tweak + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneEnable + label + Custom First Line + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineOneStandard + label + First Line Standard String + + + cell + PSGroupCell + label + First Line + height + 10 + + + cell + PSEditTextCell + default + h:m + defaults + com.mpg13.undertime + key + lineOne + + + cell + PSGroupCell + label + Second Line + height + 10 + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + lineTwoStandard + label + Second Line Standard String + + + cell + PSEditTextCell + default + d/M + defaults + com.mpg13.undertime + key + lineTwo + + + cell + PSGroupCell + label + Use nsdateformatter.com to help you format your date! + + + cell + PSGroupCell + label + Font Size + height + 10 + + + cell + PSSliderCell + default + 12 + defaults + com.mpg13.undertime + key + sizeOfFont + max + 18 + min + 6 + showValue + + + + cell + PSGroupCell + label + Replace the date with the time + height + 10 + + + cell + PSSwitchCell + default + + defaults + com.mpg13.undertime + key + replaceTime + label + Replace Time + + + action + respring + height + 30 + cell + PSButtonCell + label + Respring + + + cell + PSGroupCell + label + Developed partially by MPG13 | Forked from NeinZedd's "DateUnderTimeX" + + + title + UnderTime + + diff --git a/UnderTime/Resources/icon@2x.png b/undertime/Resources/icon@2x.png similarity index 100% rename from UnderTime/Resources/icon@2x.png rename to undertime/Resources/icon@2x.png diff --git a/UnderTime/entry.plist b/undertime/entry.plist similarity index 90% rename from UnderTime/entry.plist rename to undertime/entry.plist index fdbc75a..79329c4 100644 --- a/UnderTime/entry.plist +++ b/undertime/entry.plist @@ -9,7 +9,7 @@ cell PSLinkCell detail - UnderTimeRootListController + udtRootListController icon icon.png isController diff --git a/undertime/udtRootListController.h b/undertime/udtRootListController.h new file mode 100644 index 0000000..93237ff --- /dev/null +++ b/undertime/udtRootListController.h @@ -0,0 +1,5 @@ +#import + +@interface udtRootListController : PSListController + +@end diff --git a/undertime/udtRootListController.m b/undertime/udtRootListController.m new file mode 100644 index 0000000..04aeac9 --- /dev/null +++ b/undertime/udtRootListController.m @@ -0,0 +1,23 @@ +#include "udtRootListController.h" +#import + +@implementation udtRootListController + +- (NSArray *)specifiers { + if (!_specifiers) { + _specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain]; + } + + return _specifiers; +} + + +-(void) respring { +pid_t pid; +int status; +posix_spawn(&pid, "/usr/bin/uicache", NULL, NULL, NULL, NULL); +const char* args[] = {"killall", "-9", "backboardd", NULL}; +posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL); +waitpid(pid, &status, WEXITED); +} +@end