yee almost there!

This commit is contained in:
MPG13 2018-05-07 00:25:07 -06:00
parent 899aa3d2c3
commit aad5421b3f
112 changed files with 1170 additions and 9 deletions

10
.theos/_/DEBIAN/control Normal file
View file

@ -0,0 +1,10 @@
Package: com.mpg13.undertime
Name: UnderTime
Depends: mobilesubstrate
Architecture: iphoneos-arm
Description: Customizable date under time in iX StatusBar.
Maintainer: MPG13
Author: MPG13
Section: Tweaks
Version: 1.2-29+debug
Installed-Size: 188

View file

@ -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>UnderTime</string>
<key>CFBundleIdentifier</key>
<string>com.mpg13.UnderTime</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>UnderTimeRootListController</string>
</dict>
</plist>

View file

@ -0,0 +1,67 @@
<?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>footerCellClass</key>
<string>UnderTimeCustomCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>Enable</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSEditTextCell</string>
<key>default</key>
<string>d/M</string>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>dformat</string>
<key>showValue</key>
<true/>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
<key>footerAlignment</key>
<integer>1</integer>
</dict>
<dict>
<key>action</key>
<string>respring</string>
<key>height</key>
<string>38</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
</dict>
</array>
<key>title</key>
<string></string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

View file

@ -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>UnderTime</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>UnderTimeRootListController</string>
<key>icon</key>
<string>icon.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>UnderTime</string>
</dict>
</dict>
</plist>

0
.theos/build_session Normal file
View file

0
.theos/fakeroot Normal file
View file

1
.theos/last_package Normal file
View file

@ -0,0 +1 @@
./packages/com.mpg13.undertime_1.2-29+debug_iphoneos-arm.deb

0
.theos/obj/debug/.stamp Normal file
View file

View file

@ -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>UnderTime</string>
<key>CFBundleIdentifier</key>
<string>com.mpg13.UnderTime</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>UnderTimeRootListController</string>
</dict>
</plist>

View file

@ -0,0 +1,67 @@
<?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>footerCellClass</key>
<string>UnderTimeCustomCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>Enable</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSEditTextCell</string>
<key>default</key>
<string>d/M</string>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>dformat</string>
<key>showValue</key>
<true/>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
<key>footerAlignment</key>
<integer>1</integer>
</dict>
<dict>
<key>action</key>
<string>respring</string>
<key>height</key>
<string>38</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
</dict>
</array>
<key>title</key>
<string></string>
</dict>
</plist>

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

BIN
.theos/obj/debug/UnderTime.dylib Executable file

Binary file not shown.

View file

@ -0,0 +1,17 @@
/home/mpg13/DateUnderTimeX/.theos/obj/debug/arm64/Tweak.xm.c666351f.o: \
/home/mpg13/DateUnderTimeX/.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/DateUnderTimeX/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/DateUnderTimeX/important.h:
/home/mpg13/theos/vendor/include/substrate.h:

Binary file not shown.

View file

@ -0,0 +1,104 @@
#line 1 "Tweak.xm"
#import "important.h"
@interface _UIStatusBarStringView : UIView
@property (copy) NSString *text;
@property NSInteger numberOfLines;
@property (copy) UIFont *font;
@property NSInteger textAlignment;
@end
#include <substrate.h>
#if defined(__clang__)
#if __has_feature(objc_arc)
#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained
#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed))
#define _LOGOS_SELF_CONST const
#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained))
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif
#else
#define _LOGOS_SELF_TYPE_NORMAL
#define _LOGOS_SELF_TYPE_INIT
#define _LOGOS_SELF_CONST
#define _LOGOS_RETURN_RETAINED
#endif
@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 10 "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([text containsString:@":"]) {
_logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text);
if(GetPrefBool(@"Enable")) {
NSString *key = @"key";
NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key];
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];
self.numberOfLines = 2;
self.textAlignment = 1;
[self setFont: [self.font fontWithSize:12]];
_logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, newString);
}
}
else {
_logos_orig$_ungrouped$_UIStatusBarStringView$setText$(self, _cmd, text);
}
}
@interface _UIStatusBarTimeItem
@property (copy) _UIStatusBarStringView *shortTimeView;
@property (copy) _UIStatusBarStringView *pillTimeView;
@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:12]];
[self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:12]];
return returnThis;
}
return 0;
}
@interface _UIStatusBarBackgroundActivityView : UIView
@property (copy) CALayer *pulseLayer;
@end
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")) {
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 76 "Tweak.xm"

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.UnderTime</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.UnderTime.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View file

@ -0,0 +1,19 @@
/home/mpg13/DateUnderTimeX/.theos/obj/debug/arm64/UnderTimeRootListController.m.adc5d2ae.o: \
UnderTimeRootListController.m /home/mpg13/theos/Prefix.pch \
/home/mpg13/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/theos/vendor/include/_Prefix/IOSMacros.h \
UnderTimeRootListController.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:
UnderTimeRootListController.h:
/home/mpg13/theos/vendor/include/Preferences/PSListController.h:
/home/mpg13/theos/vendor/include/Preferences/PSViewController.h:

View file

@ -0,0 +1 @@
29

View file

@ -3,10 +3,12 @@ TARGET = iphone:clang:latest
include $(THEOS)/makefiles/common.mk
TWEAK_NAME = DateUnderTimeX
DateUnderTimeX_FILES = Tweak.xm
TWEAK_NAME = UnderTime
UnderTime_FILES = Tweak.xm
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 SpringBoard"
SUBPROJECTS += UnderTime
include $(THEOS_MAKE_PATH)/aggregate.mk

View file

@ -1,3 +1,5 @@
#import "important.h"
@interface _UIStatusBarStringView : UIView
@property (copy) NSString *text;
@property NSInteger numberOfLines;
@ -9,9 +11,13 @@
- (void)setText:(NSString *)text {
if([text containsString:@":"]) {
%orig;
if(GetPrefBool(@"Enable")) {
NSString *key = @"key";
NSString *dformat = [[NSDictionary dictionaryWithContentsOfFile:@"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"] valueForKey:key];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
// dateFormatter.locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
[dateFormatter setDateFormat:@"d/M"];
[dateFormatter setDateFormat:dformat];
//dateFormatter.dateStyle = dd/MM/yyyy;
NSDate *now = [NSDate date];
NSString *shortDate = [dateFormatter stringFromDate:now];
@ -21,6 +27,7 @@
self.textAlignment = 1;
[self setFont: [self.font fontWithSize:12]];
%orig(newString);
}
}
else {
%orig(text);
@ -37,10 +44,14 @@
%hook _UIStatusBarTimeItem
- (id)applyUpdate:(id)arg1 toDisplayItem:(id)arg2 {
%orig;
if(GetPrefBool(@"Enable")) {
id returnThis = %orig;
[self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:12]];
[self.pillTimeView setFont: [self.pillTimeView.font fontWithSize:12]];
return returnThis;
}
return 0;
}
%end
@ -52,10 +63,13 @@
%hook _UIStatusBarBackgroundActivityView
- (void)setCenter:(CGPoint)point {
%orig;
if(GetPrefBool(@"Enable")) {
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

5
UnderTime.plist Normal file
View file

@ -0,0 +1,5 @@
{
Filter = {
Classes = ( "_UIStatusBarStringView", "_UIStatusBarTimeItem", "_UIStatusBarNavigationItem" );
};
}

16
UnderTime/Makefile Normal file
View file

@ -0,0 +1,16 @@
ARCHS = arm64
TARGET = iphone:clang:latest
include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = UnderTime
UnderTime_FILES = UnderTimeRootListController.m
UnderTime_INSTALL_PATH = /Library/PreferenceBundles
UnderTime_FRAMEWORKS = UIKit
UnderTime_PRIVATE_FRAMEWORKS = Preferences
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/UnderTime.plist$(ECHO_END)

View file

@ -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>UnderTime</string>
<key>CFBundleIdentifier</key>
<string>com.mpg13.UnderTime</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>UnderTimeRootListController</string>
</dict>
</plist>

View file

@ -0,0 +1,67 @@
<?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>footerCellClass</key>
<string>UnderTimeCustomCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>Enable</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSEditTextCell</string>
<key>default</key>
<string>d/M</string>
<key>defaults</key>
<string>com.mpg13.UnderTime</string>
<key>key</key>
<string>dformat</string>
<key>showValue</key>
<true/>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Updated by /u/-mpg13- || Original code by /u/NeinZedd9</string>
<key>footerAlignment</key>
<integer>1</integer>
</dict>
<dict>
<key>action</key>
<string>respring</string>
<key>height</key>
<string>38</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
</dict>
</array>
<key>title</key>
<string></string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

View file

@ -0,0 +1,5 @@
#import <Preferences/PSListController.h>
@interface UnderTimeRootListController : PSListController
@end

View file

@ -0,0 +1,76 @@
#include "UnderTimeRootListController.h"
#import <spawn.h>
@protocol PreferencesTableCustomView
- (id)initWithSpecifier:(id)arg1;
@optional
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1;
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2;
@end
@interface UnderTimeCustomCell : UITableViewCell <PreferencesTableCustomView> {
UILabel *label;
UILabel *underLabel;
}
@end
@implementation UnderTimeCustomCell
- (id)initWithSpecifier:(PSSpecifier *)specifier
{
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
if (self) {
#define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width
CGRect labelFrame = CGRectMake(0, -15, kWidth, 70);
CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70);
label = [[UILabel alloc] initWithFrame:labelFrame];
[label setNumberOfLines:1];
label.font = [UIFont fontWithName:@"HelveticaNeue" size:30];
[label setText:@"UnderTime"];
[label setBackgroundColor:[UIColor clearColor]];
label.textColor = [UIColor blackColor];
label.textAlignment = NSTextAlignmentCenter;
underLabel = [[UILabel alloc] initWithFrame:underLabelFrame];
[underLabel setNumberOfLines:1];
underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:0];
[underLabel setText:@"Nevermind this"];
[underLabel setBackgroundColor:[UIColor clearColor]];
underLabel.textColor = [UIColor clearColor];
underLabel.textAlignment = NSTextAlignmentRight;
[self addSubview:label];
[self addSubview:underLabel];
}
return self;
}
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 {
CGFloat prefHeight = 75.0;
return prefHeight;
}
@end
@implementation UnderTimeRootListController
- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
}
return _specifiers;
}
-(void) respring {
pid_t pid;
int status;
const char* args[] = {"killall", "-9", "backboardd", NULL};
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
waitpid(pid, &status, WEXITED);
}
@end

21
UnderTime/entry.plist Normal file
View file

@ -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>UnderTime</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>UnderTimeRootListController</string>
<key>icon</key>
<string>icon.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>UnderTime</string>
</dict>
</dict>
</plist>

12
control
View file

@ -1,9 +1,9 @@
Package: com.neinzedd9.dateundertimex
Name: DateUnderTimeX
Package: com.mpg13.undertime
Name: UnderTime
Depends: mobilesubstrate
Version: 1.1
Version: 1.2
Architecture: iphoneos-arm
Description: Adds the date under the status bar on iPhone X.
Maintainer: NeinZedd9
Author: NeinZedd9
Description: Customizable date under time in iX StatusBar.
Maintainer: MPG13
Author: MPG13
Section: Tweaks

View file

View file

View file

@ -0,0 +1,17 @@
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.9d552d4c.o: \
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/Tweak.xm.mm \
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.i8Corners</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View file

@ -0,0 +1,20 @@
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/arm64/i8CornersRootListController.m.52999d91.o: \
i8CornersRootListController.m \
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
i8CornersRootListController.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
i8CornersRootListController.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h:

View file

@ -0,0 +1,17 @@
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.6b919789.o: \
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/Tweak.xm.mm \
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View file

@ -0,0 +1,20 @@
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7/i8CornersRootListController.m.c23f7bb4.o: \
i8CornersRootListController.m \
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
i8CornersRootListController.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
i8CornersRootListController.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSListController.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/Preferences/PSViewController.h:

View file

@ -0,0 +1,17 @@
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.367a5aa9.o: \
/home/mpg13/DateUnderTimeX/i8corners/.theos/obj/debug/armv7s/Tweak.xm.mm \
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h \
/home/mpg13/DateUnderTimeX/i8corners/Bits.h \
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h
/home/mpg13/DateUnderTimeX/i8corners/theos/Prefix.pch:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/BackwardsCompat.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/_Prefix/IOSMacros.h:
/home/mpg13/DateUnderTimeX/i8corners/Bits.h:
/home/mpg13/DateUnderTimeX/i8corners/theos/vendor/include/substrate.h:

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.i8Corners.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

View file

@ -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>i8Corners</string>
<key>CFBundleIdentifier</key>
<string>com.antique.i8corners</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>i8CornersRootListController</string>
</dict>
</plist>

View file

@ -0,0 +1,71 @@
<?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>footerCellClass</key>
<string>i8CornersCustomCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.antique.i8corners</string>
<key>key</key>
<string>Enable</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSSliderCell</string>
<key>default</key>
<integer>0</integer>
<key>defaults</key>
<string>com.antique.i8corners</string>
<key>key</key>
<string>cRadius</string>
<key>max</key>
<real>15</real>
<key>min</key>
<real>0</real>
<key>showValue</key>
<true/>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Developed by @Antique_Dev © 2017. All Rights Reserved</string>
<key>footerAlignment</key>
<integer>1</integer>
</dict>
<dict>
<key>action</key>
<string>respring</string>
<key>height</key>
<string>38</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
</dict>
</array>
<key>title</key>
<string></string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

11
i8corners/Bits.h Normal file
View file

@ -0,0 +1,11 @@
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.antique.i8corners.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}
inline int GetPrefInt(NSString *key) {
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] intValue];
}

15
i8corners/Makefile Normal file
View file

@ -0,0 +1,15 @@
ARCHS = arm64
TARGET = iphone:clang:latest:latest
include theos/makefiles/common.mk
TWEAK_NAME = i8Corners
i8Corners_FILES = Tweak.xm
i8Corners_FRAMEWORKS = UIKit
include $(THEOS_MAKE_PATH)/tweak.mk
after-install::
install.exec "killall -9 backboardd"
SUBPROJECTS += i8corners
include $(THEOS_MAKE_PATH)/aggregate.mk

14
i8corners/Tweak.xm Normal file
View file

@ -0,0 +1,14 @@
#import "Bits.h"
%hook UIWindow
-(void) layoutSubviews {
%orig;
int radius = GetPrefInt(@"cRadius");
if(GetPrefBool(@"Enable")) {
self.layer.cornerRadius = radius;
}
}
%end

10
i8corners/control Normal file
View file

@ -0,0 +1,10 @@
Package: com.antique.i8corners
Name: i8Corners
Depends: mobilesubstrate
Version: 0.12
Description: iPhone 8 inspired screen corners
Depiction: https://antiquebeta.github.io/i8corners.html
Architecture: iphoneos-arm
Maintainer: Antique <boernai290@gmail.com>
Author: Antique <boernai290@gmail.com>
Section: Tweaks

View file

@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.springboard", "com.apple.UIKit" ); }; }

View file

@ -0,0 +1,13 @@
include $(THEOS)/makefiles/common.mk
BUNDLE_NAME = i8Corners
i8Corners_FILES = i8CornersRootListController.m
i8Corners_INSTALL_PATH = /Library/PreferenceBundles
i8Corners_FRAMEWORKS = UIKit
i8Corners_PRIVATE_FRAMEWORKS = Preferences
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/i8Corners.plist$(ECHO_END)

View file

@ -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>i8Corners</string>
<key>CFBundleIdentifier</key>
<string>com.antique.i8corners</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>i8CornersRootListController</string>
</dict>
</plist>

View file

@ -0,0 +1,71 @@
<?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>footerCellClass</key>
<string>i8CornersCustomCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
<key>default</key>
<false/>
<key>defaults</key>
<string>com.antique.i8corners</string>
<key>key</key>
<string>Enable</string>
<key>label</key>
<string>Enable</string>
</dict>
<dict>
<key>cell</key>
<string>PSSliderCell</string>
<key>default</key>
<integer>0</integer>
<key>defaults</key>
<string>com.antique.i8corners</string>
<key>key</key>
<string>cRadius</string>
<key>max</key>
<real>15</real>
<key>min</key>
<real>0</real>
<key>showValue</key>
<true/>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Developed by @Antique_Dev © 2017. All Rights Reserved</string>
<key>footerAlignment</key>
<integer>1</integer>
</dict>
<dict>
<key>action</key>
<string>respring</string>
<key>height</key>
<string>38</string>
<key>cell</key>
<string>PSButtonCell</string>
<key>label</key>
<string>Respring</string>
</dict>
</array>
<key>title</key>
<string></string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

View file

@ -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>i8Corners</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>detail</key>
<string>i8CornersRootListController</string>
<key>icon</key>
<string>icon.png</string>
<key>isController</key>
<true/>
<key>label</key>
<string>i8Corners</string>
</dict>
</dict>
</plist>

View file

@ -0,0 +1,5 @@
#import <Preferences/PSListController.h>
@interface i8CornersRootListController : PSListController
@end

View file

@ -0,0 +1,76 @@
#include "i8CornersRootListController.h"
#import <spawn.h>
@protocol PreferencesTableCustomView
- (id)initWithSpecifier:(id)arg1;
@optional
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1;
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 inTableView:(id)arg2;
@end
@interface i8CornersCustomCell : UITableViewCell <PreferencesTableCustomView> {
UILabel *label;
UILabel *underLabel;
}
@end
@implementation i8CornersCustomCell
- (id)initWithSpecifier:(PSSpecifier *)specifier
{
self = [super initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"Cell"];
if (self) {
#define kWidth [[UIApplication sharedApplication] keyWindow].frame.size.width
CGRect labelFrame = CGRectMake(0, -15, kWidth, 70);
CGRect underLabelFrame = CGRectMake(0, 22, kWidth, 70);
label = [[UILabel alloc] initWithFrame:labelFrame];
[label setNumberOfLines:1];
label.font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:60];
[label setText:@"i8Corners"];
[label setBackgroundColor:[UIColor clearColor]];
label.textColor = [UIColor blackColor];
label.textAlignment = NSTextAlignmentCenter;
underLabel = [[UILabel alloc] initWithFrame:underLabelFrame];
[underLabel setNumberOfLines:1];
underLabel.font = [UIFont fontWithName:@"HelveticaNeue-Light" size:12];
[underLabel setText:@"iPhone 8 Inspired Screen Corners"];
[underLabel setBackgroundColor:[UIColor clearColor]];
underLabel.textColor = [UIColor grayColor];
underLabel.textAlignment = NSTextAlignmentCenter;
[self addSubview:label];
[self addSubview:underLabel];
}
return self;
}
- (CGFloat)preferredHeightForWidth:(CGFloat)arg1 {
CGFloat prefHeight = 75.0;
return prefHeight;
}
@end
@implementation i8CornersRootListController
- (NSArray *)specifiers {
if (!_specifiers) {
_specifiers = [[self loadSpecifiersFromPlistName:@"Root" target:self] retain];
}
return _specifiers;
}
-(void) respring {
pid_t pid;
int status;
const char* args[] = {"killall", "-9", "backboardd", NULL};
posix_spawn(&pid, "/usr/bin/killall", NULL, NULL, (char* const*)args, NULL);
waitpid(pid, &status, WEXITED);
}
@end

1
i8corners/theos Symbolic link
View file

@ -0,0 +1 @@
/home/mpg13/theos

7
important.h Normal file
View file

@ -0,0 +1,7 @@
#define PLIST_PATH @"/var/mobile/Library/Preferences/com.mpg13.UnderTime.plist"
inline bool GetPrefBool(NSString *key)
{
return [[[NSDictionary dictionaryWithContentsOfFile:PLIST_PATH] valueForKey:key] boolValue];
}

Some files were not shown because too many files have changed in this diff Show more