🎉 first commit
This commit is contained in:
commit
2da7325a5d
11 changed files with 274 additions and 0 deletions
9
hanahakiprefs/HANARootListController.h
Normal file
9
hanahakiprefs/HANARootListController.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#import <Preferences/PSListController.h>
|
||||
#import <Preferences/PSSpecifier.h>
|
||||
#include <spawn.h>
|
||||
|
||||
@interface HANARootListController : PSListController
|
||||
|
||||
- (void)respring;
|
||||
|
||||
@end
|
20
hanahakiprefs/HANARootListController.m
Normal file
20
hanahakiprefs/HANARootListController.m
Normal file
|
@ -0,0 +1,20 @@
|
|||
#include "HANARootListController.h"
|
||||
|
||||
@implementation HANARootListController
|
||||
|
||||
- (NSArray *)specifiers {
|
||||
if (!_specifiers) {
|
||||
_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
|
||||
}
|
||||
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
- (void)respring {
|
||||
pid_t respringPid;
|
||||
char *respringArgv[] = {"/usr/bin/killall", (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber_iOS_6_0) ? "backboardd" : "SpringBoard", NULL};
|
||||
posix_spawn(&respringPid, respringArgv[0], NULL, NULL, respringArgv, NULL);
|
||||
waitpid(respringPid, NULL, WEXITED);
|
||||
}
|
||||
|
||||
@end
|
15
hanahakiprefs/Makefile
Normal file
15
hanahakiprefs/Makefile
Normal file
|
@ -0,0 +1,15 @@
|
|||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
BUNDLE_NAME = hanahakiprefs
|
||||
|
||||
hanahakiprefs_FILES = HANARootListController.m
|
||||
hanahakiprefs_INSTALL_PATH = /Library/PreferenceBundles
|
||||
hanahakiprefs_FRAMEWORKS = UIKit
|
||||
hanahakiprefs_PRIVATE_FRAMEWORKS = Preferences
|
||||
hanahakiprefs_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/hanahakiprefs.plist$(ECHO_END)
|
24
hanahakiprefs/Resources/Info.plist
Normal file
24
hanahakiprefs/Resources/Info.plist
Normal 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>hanahakiprefs</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>toys.lily.hanahakiprefs</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>HANARootListController</string>
|
||||
</dict>
|
||||
</plist>
|
61
hanahakiprefs/Resources/Root.plist
Normal file
61
hanahakiprefs/Resources/Root.plist
Normal file
|
@ -0,0 +1,61 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>respring to apply changes</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>action</key>
|
||||
<string>respring</string>
|
||||
<key>label</key>
|
||||
<string>respring</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>global</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>toys.lily.hanahakiprefs</string>
|
||||
<key>key</key>
|
||||
<string>borders</string>
|
||||
<key>label</key>
|
||||
<string>rounded screen corners</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>home screen</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>toys.lily.hanahakiprefs</string>
|
||||
<key>key</key>
|
||||
<string>dockbg</string>
|
||||
<key>label</key>
|
||||
<string>remove dock background</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string>hanahaki</string>
|
||||
</dict>
|
||||
</plist>
|
21
hanahakiprefs/entry.plist
Normal file
21
hanahakiprefs/entry.plist
Normal 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>hanahakiprefs</string>
|
||||
<key>cell</key>
|
||||
<string>PSLinkCell</string>
|
||||
<key>detail</key>
|
||||
<string>HANARootListController</string>
|
||||
<key>icon</key>
|
||||
<string>icon.png</string>
|
||||
<key>isController</key>
|
||||
<true/>
|
||||
<key>label</key>
|
||||
<string>hanahaki</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
Loading…
Add table
Add a link
Reference in a new issue