forked from lint/TFDidThatSay
		
	Fix Apollo bug, add prefs, update Narwhal menu
This commit is contained in:
		
							
								
								
									
										17
									
								
								prefs/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								prefs/Makefile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,17 @@
 | 
			
		||||
include $(THEOS)/makefiles/common.mk
 | 
			
		||||
 | 
			
		||||
ARCHS = arm64 arm64e
 | 
			
		||||
 | 
			
		||||
BUNDLE_NAME = TFDidThatSayPrefs
 | 
			
		||||
 | 
			
		||||
TFDidThatSayPrefs_FILES = TFDTSRootListController.m
 | 
			
		||||
TFDidThatSayPrefs_INSTALL_PATH = /Library/PreferenceBundles
 | 
			
		||||
TFDidThatSayPrefs_FRAMEWORKS = UIKit
 | 
			
		||||
TFDidThatSayPrefs_PRIVATE_FRAMEWORKS = Preferences
 | 
			
		||||
TFDidThatSayPrefs_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/TFDidThatSayPrefs.plist$(ECHO_END)
 | 
			
		||||
							
								
								
									
										24
									
								
								prefs/Resources/Info.plist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								prefs/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>TFDidThatSayPrefs</string>
 | 
			
		||||
	<key>CFBundleIdentifier</key>
 | 
			
		||||
	<string>com.lint.undelete.prefs</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>TFDTSRootListController</string>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
							
								
								
									
										29
									
								
								prefs/Resources/Root.plist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								prefs/Resources/Root.plist
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,29 @@
 | 
			
		||||
<?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>Apollo </string>
 | 
			
		||||
		</dict>
 | 
			
		||||
		<dict>
 | 
			
		||||
			<key>cell</key>
 | 
			
		||||
			<string>PSSwitchCell</string>
 | 
			
		||||
			<key>default</key>
 | 
			
		||||
			<true/>
 | 
			
		||||
			<key>defaults</key>
 | 
			
		||||
			<string>com.lint.undelete.prefs</string>
 | 
			
		||||
			<key>key</key>
 | 
			
		||||
			<string>isApolloDeletedCommentsOnly</string>
 | 
			
		||||
			<key>label</key>
 | 
			
		||||
			<string>Only display eye on deleted comments</string>
 | 
			
		||||
		</dict>
 | 
			
		||||
	</array>
 | 
			
		||||
	<key>title</key>
 | 
			
		||||
	<string>TFDidThatSay?</string>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								prefs/Resources/icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								prefs/Resources/icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.2 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								prefs/Resources/icon@2x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								prefs/Resources/icon@2x.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 3.7 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								prefs/Resources/icon@3x.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								prefs/Resources/icon@3x.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.2 KiB  | 
							
								
								
									
										5
									
								
								prefs/TFDTSRootListController.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								prefs/TFDTSRootListController.h
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,5 @@
 | 
			
		||||
#import <Preferences/PSListController.h>
 | 
			
		||||
 | 
			
		||||
@interface TFDTSRootListController : PSListController
 | 
			
		||||
 | 
			
		||||
@end
 | 
			
		||||
							
								
								
									
										13
									
								
								prefs/TFDTSRootListController.m
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								prefs/TFDTSRootListController.m
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
#include "TFDTSRootListController.h"
 | 
			
		||||
 | 
			
		||||
@implementation TFDTSRootListController
 | 
			
		||||
 | 
			
		||||
- (NSArray *)specifiers {
 | 
			
		||||
	if (!_specifiers) {
 | 
			
		||||
		_specifiers = [self loadSpecifiersFromPlistName:@"Root" target:self];
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return _specifiers;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@end
 | 
			
		||||
							
								
								
									
										21
									
								
								prefs/entry.plist
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								prefs/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>TFDidThatSayPrefs</string>
 | 
			
		||||
		<key>cell</key>
 | 
			
		||||
		<string>PSLinkCell</string>
 | 
			
		||||
		<key>detail</key>
 | 
			
		||||
		<string>TFDTSRootListController</string>
 | 
			
		||||
		<key>icon</key>
 | 
			
		||||
		<string>icon.png</string>
 | 
			
		||||
		<key>isController</key>
 | 
			
		||||
		<true/>
 | 
			
		||||
		<key>label</key>
 | 
			
		||||
		<string>TFDidThatSay?</string>
 | 
			
		||||
	</dict>
 | 
			
		||||
</dict>
 | 
			
		||||
</plist>
 | 
			
		||||
		Reference in New Issue
	
	Block a user