-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1.0.0
- Loading branch information
0 parents
commit 120c988
Showing
57 changed files
with
2,557 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
build | ||
TweakSettings.xcodeproj/xcuserdata | ||
TweakSettings.xcodeproj/xcshareddata | ||
TweakSettings.xcodeproj/project.xcworkspace/xcuserdata | ||
TweakSettings.xcodeproj/project.xcworkspace/xcshareddata | ||
.idea | ||
.staging | ||
.theos | ||
.vscode | ||
.idea | ||
.DS_Store | ||
.DS_Store? |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
export TARGET = iphone:clang:13.0:10.0 | ||
export ARCHS = armv7 arm64 | ||
|
||
DEBUG = 0 | ||
FINALPACKAGE = 1 | ||
GO_EASY_ON_ME = 0 | ||
LEAN_AND_MEAN = 1 | ||
THEOS_PACKAGE_DIR = Releases | ||
INSTALL_TARGET_PROCESSES = TweakSettings | ||
|
||
include $(THEOS)/makefiles/common.mk | ||
|
||
XCODEPROJ_NAME = TweakSettings | ||
TweakSettings_XCODEFLAGS = PACKAGE_VERSION='@\"$(THEOS_PACKAGE_BASE_VERSION)\"' | ||
TweakSettings_CODESIGN_FLAGS = -SResources/entitlements.plist | ||
|
||
include $(THEOS_MAKE_PATH)/xcodeproj.mk | ||
|
||
after-install:: | ||
install.exec "killall -9 TweakSettings; uicache -p /Applications/TweakSettings.app; uiopen tweaks:" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@class PSListController, PSSpecifier; | ||
|
||
@interface PSBundleController : NSObject | ||
|
||
- (instancetype)initWithParentListController:(PSListController *)listController; | ||
- (instancetype)initWithParentListController:(PSListController *)listController properties:(NSDictionary *)properties; | ||
|
||
- (NSArray *)specifiersWithSpecifier:(PSSpecifier *)specifier; | ||
|
||
- (void)load; | ||
- (void)unload; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#import "PSTableCell.h" | ||
|
||
@interface PSControlTableCell : PSTableCell | ||
|
||
- (void)controlChanged:(UIControl *)control; | ||
|
||
@property (nonatomic, retain) UIControl *control; | ||
@property (nonatomic, retain) id value; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#import "PSViewController.h" | ||
|
||
@class UIKeyboard, PSEditingPane, UIView; | ||
|
||
@interface PSDetailController : PSViewController { | ||
PSEditingPane* _pane; | ||
UIKeyboard* _keyboard; | ||
BOOL _keyboardVisible; | ||
} | ||
|
||
@property(retain) PSEditingPane *pane; | ||
@property(readonly, assign) BOOL keyboardVisible; | ||
|
||
- (void)_updateNavBarButtons; | ||
- (void)_addKeyboardView; | ||
- (void)setKeyboardVisible:(BOOL)visible animated:(BOOL)animated; | ||
- (void)saveChanges; | ||
- (void)doneButtonClicked:(id)clicked; | ||
- (void)cancelButtonClicked:(id)clicked; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@interface PSDiscreteSlider : UISlider | ||
|
||
@property (nonatomic, retain) UIColor *trackMarkersColor; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* This header is generated by classdump-dyld 1.0 | ||
* on Sunday, July 31, 2016 at 10:10:26 PM Australian Western Standard Time | ||
* Operating System: Version 9.3.3 (Build 13G34) | ||
* Image Source: /System/Library/PrivateFrameworks/Preferences.framework/Preferences | ||
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos. | ||
*/ | ||
|
||
#import <Preferences/PSListController.h> | ||
|
||
@interface PSEditableListController : PSListController { | ||
|
||
BOOL _editable; | ||
BOOL _editingDisabled; | ||
|
||
} | ||
- (id)init; | ||
- (id)tableView:(id)arg1 willSelectRowAtIndexPath:(id)arg2 ; | ||
- (UITableViewCellEditingStyle)tableView:(id)arg1 editingStyleForRowAtIndexPath:(id)arg2 ; | ||
- (void)tableView:(id)arg1 commitEditingStyle:(long long)arg2 forRowAtIndexPath:(id)arg3 ; | ||
- (void)suspend; | ||
- (void)viewWillAppear:(BOOL)arg1 ; | ||
- (void)setEditable:(BOOL)arg1 ; | ||
- (BOOL)editable; | ||
- (void)showController:(id)arg1 animate:(BOOL)arg2 ; | ||
- (void)didLock; | ||
- (void)editDoneTapped; | ||
- (id)_editButtonBarItem; | ||
- (void)_setEditable:(BOOL)arg1 animated:(BOOL)arg2 ; | ||
- (BOOL)performDeletionActionForSpecifier:(id)arg1 ; | ||
- (void)setEditingButtonHidden:(BOOL)arg1 animated:(BOOL)arg2 ; | ||
- (void)setEditButtonEnabled:(BOOL)arg1 ; | ||
- (void)_updateNavigationBar; | ||
@end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#import "PSTableCell.h" | ||
|
||
@class PSSpecifier; | ||
@interface PSEditableTableCell : PSTableCell { | ||
id _userInfo; | ||
SEL _targetSetter; | ||
id _realTarget; | ||
} | ||
|
||
- (void)controlChanged:(id)changed; | ||
- (void)setValueChangedOnReturn; | ||
- (void)setValueChangedTarget:(id)target action:(SEL)action userInfo:(id)info; | ||
|
||
- (void)setValue:(id)arg1; | ||
- (void)setValueChangedTarget:(id)arg1 action:(SEL)arg2 specifier:(PSSpecifier *)arg3; | ||
- (UITextField *)textField; | ||
- (void)textFieldDidBeginEditing:(id)arg1; | ||
- (void)textFieldDidEndEditing:(id)arg1; | ||
- (bool)textFieldShouldClear:(id)arg1; | ||
- (bool)textFieldShouldReturn:(id)arg1; | ||
- (id)value; | ||
|
||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@class PSSpecifier, UITableView; | ||
|
||
@protocol PSHeaderFooterView | ||
|
||
@required | ||
- (UIView<PSHeaderFooterView> *)initWithSpecifier:(PSSpecifier *)specifier; | ||
|
||
@optional | ||
- (CGFloat)preferredHeightForWidth:(CGFloat)width inTableView:(UITableView *)tableView; | ||
- (CGFloat)preferredHeightForWidth:(CGFloat)width; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
/** | ||
* @Author: Dana Buehre <creaturesurvive> | ||
* @Date: 17-09-2016 2:51:39 | ||
* @Email: [email protected] | ||
* @Project: motuumLS | ||
* @Filename: PSListController.h | ||
* @Last modified by: creaturesurvive | ||
* @Last modified time: 08-07-2017 6:23:13 | ||
* @Copyright: Copyright © 2014-2017 CreatureSurvive | ||
*/ | ||
|
||
|
||
#import "PSViewController.h" | ||
|
||
@class PSRootController, PSSpecifier, PSTableCell; | ||
|
||
@interface PSListController : PSViewController <UITableViewDelegate, UITableViewDataSource, UIAppearance> { | ||
NSMutableArray *_specifiers; | ||
NSIndexPath* _savedSelectedIndexPath; | ||
} | ||
|
||
+ (BOOL)displaysButtonBar; | ||
|
||
- (NSArray *)loadSpecifiersFromPlistName:(NSString *)name target:(PSListController *)target; | ||
- (NSArray *)loadSpecifiersFromPlistName:(NSString *)name target:(PSListController *)target bundle:(NSBundle *)bundle; | ||
|
||
- (Class)tableViewClass; | ||
- (UITableViewStyle)tableViewStyle; | ||
|
||
@property (nonatomic, retain) UITableView *view; | ||
@property (nonatomic, retain) UITableView *table; // 3.0 - 6.0 | ||
@property (nonatomic, retain) UITableView *tableView; | ||
|
||
- (PSSpecifier *)specifierAtIndex:(NSInteger)index; | ||
- (PSSpecifier *)specifierAtIndexPath:(NSIndexPath *)indexPath; | ||
- (PSSpecifier *)specifierForID:(NSString *)identifier; | ||
- (NSArray *)specifiersForIDs:(NSArray *)identifiers; | ||
- (NSArray *)specifiersInGroup:(NSInteger)group; | ||
|
||
@property (nonatomic, retain) NSMutableArray *specifiers; | ||
@property (nonatomic, retain) PSSpecifier *specifier; | ||
@property (nonatomic, retain) NSString *specifierID; | ||
@property (nonatomic, retain) NSString *specifierIDPendingPush; | ||
@property (nonatomic, retain) id specifierDataSource; | ||
|
||
- (NSInteger)numberOfGroups; | ||
- (NSInteger)rowsForGroup:(NSInteger)group; | ||
|
||
- (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifier:(PSSpecifier *)specifier; | ||
- (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifierAtIndex:(NSInteger)specifier; | ||
- (BOOL)getGroup:(NSInteger *)group row:(NSInteger *)row ofSpecifierID:(NSString *)specifierID; | ||
|
||
- (NSInteger)indexForIndexPath:(NSIndexPath *)indexPath; | ||
- (NSInteger)indexForRow:(NSInteger)row inGroup:(NSInteger)group; | ||
|
||
- (NSInteger)indexOfGroup:(NSInteger)group; | ||
- (NSInteger)indexOfSpecifier:(PSSpecifier *)specifier; | ||
- (NSInteger)indexOfSpecifierID:(NSString *)specifierID; | ||
|
||
- (NSIndexPath *)indexPathForIndex:(NSInteger)index; | ||
- (NSIndexPath *)indexPathForSpecifier:(PSSpecifier *)specifier; | ||
|
||
- (void)addSpecifier:(PSSpecifier *)specifier; | ||
- (void)addSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated; | ||
- (void)addSpecifiersFromArray:(NSArray *)specifiers; | ||
- (void)addSpecifiersFromArray:(NSArray *)specifiers animated:(BOOL)animated; | ||
|
||
- (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifier:(PSSpecifier *)afterSpecifier; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifier:(PSSpecifier *)afterSpecifier animated:(BOOL)animated; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifierID:(NSString *)specifierID; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier afterSpecifierID:(NSString *)specifierID animated:(BOOL)animated; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier atEndOfGroup:(NSInteger)groupIndex; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier atEndOfGroup:(NSInteger)groupIndex animated:(BOOL)animated; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier atIndex:(NSInteger)index; | ||
- (void)insertSpecifier:(PSSpecifier *)specifier atIndex:(NSInteger)index animated:(BOOL)animated; | ||
|
||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifier:(PSSpecifier *)specifier; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifierID:(NSString *)specifierID; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers afterSpecifierID:(NSString *)specifierID animated:(BOOL)animated; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers atEndOfGroup:(NSInteger)groupIndex; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers atEndOfGroup:(NSInteger)groupIndex animated:(BOOL)animated; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers atIndex:(NSInteger)index; | ||
- (void)insertContiguousSpecifiers:(NSArray *)specifiers atIndex:(NSInteger)index animated:(BOOL)animated; | ||
|
||
- (void)reload; | ||
- (void)reloadSpecifier:(PSSpecifier *)specifier; | ||
- (void)reloadSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated; | ||
- (void)reloadSpecifierAtIndex:(NSInteger)index; | ||
- (void)reloadSpecifierAtIndex:(NSInteger)index animated:(BOOL)animated; | ||
- (void)reloadSpecifierID:(NSString *)specifierID; | ||
- (void)reloadSpecifierID:(NSString *)specifierID animated:(BOOL)animated; | ||
- (void)reloadSpecifiers; | ||
|
||
- (void)removeContiguousSpecifiers:(NSArray *)specifiers; | ||
- (void)removeContiguousSpecifiers:(NSArray *)specifiers animated:(BOOL)animated; | ||
- (void)removeLastSpecifier; | ||
- (void)removeLastSpecifierAnimated:(BOOL)animated; | ||
- (void)removeSpecifier:(PSSpecifier *)specifier; | ||
- (void)removeSpecifier:(PSSpecifier *)specifier animated:(BOOL)animated; | ||
- (void)removeSpecifierAtIndex:(NSInteger)index; | ||
- (void)removeSpecifierAtIndex:(NSInteger)index animated:(BOOL)animated; | ||
- (void)removeSpecifierID:(NSString *)specifierID; | ||
- (void)removeSpecifierID:(NSString *)specifierID animated:(BOOL)animated; | ||
|
||
- (void)replaceContiguousSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers; | ||
- (void)replaceContiguousSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers animated:(BOOL)animated; | ||
|
||
- (void)updateSpecifiers:(NSArray *)specifiers withSpecifiers:(NSArray *)newSpecifiers; | ||
- (void)updateSpecifiersInRange:(NSRange)range withSpecifiers:(NSArray *)newSpecifiers; | ||
|
||
- (NSRange)rangeOfSpecifiersInGroupID:(NSString *)groupID; | ||
|
||
@property (nonatomic, retain) NSBundle *bundle; | ||
|
||
- (void)reloadIconForSpecifierForBundle:(NSBundle *)bundle; | ||
|
||
@property (nonatomic) BOOL forceSynchronousIconLoadForCreatedCells; | ||
|
||
@property (nonatomic, retain) UIColor *altTextColor; | ||
@property (nonatomic, retain) UIColor *backgroundColor; | ||
@property (nonatomic, retain) UIColor *buttonTextColor; | ||
@property (nonatomic, retain) UIColor *cellAccessoryColor; | ||
@property (nonatomic, retain) UIColor *cellAccessoryHighlightColor; | ||
@property (nonatomic, retain) UIColor *cellHighlightColor; | ||
@property (nonatomic, retain) UIColor *editableInsertionPointColor; | ||
@property (nonatomic, retain) UIColor *editablePlaceholderTextColor; | ||
@property (nonatomic, retain) UIColor *editableSelectionBarColor; | ||
@property (nonatomic, retain) UIColor *editableSelectionHighlightColor; | ||
@property (nonatomic, retain) UIColor *editableTextColor; | ||
@property (nonatomic, retain) UIColor *footerHyperlinkColor; | ||
@property (nonatomic, retain) UIColor *foregroundColor; | ||
@property (nonatomic, retain) UIColor *segmentedSliderTrackColor; | ||
@property (nonatomic, retain) UIColor *separatorColor; | ||
@property (nonatomic, retain) UIColor *textColor; | ||
|
||
@property (nonatomic) BOOL usesDarkTheme; | ||
@property (nonatomic) BOOL edgeToEdgeCells; | ||
@property (nonatomic) BOOL resusesCells; | ||
@property (nonatomic, readonly) NSInteger observerType; // TODO: what is this? | ||
|
||
@property (nonatomic, retain) NSDictionary *pendingURLResourceDictionary; | ||
|
||
- (void)beginUpdates; | ||
- (void)endUpdates; | ||
|
||
- (PSTableCell *)cachedCellForSpecifier:(PSSpecifier *)specifier; | ||
- (PSTableCell *)cachedCellForSpecifierID:(NSString *)specifierID; | ||
- (PSSpecifier *)getGroupSpecifierForSpecifierID:(NSString *)identifier; | ||
- (PSSpecifier *)getGroupSpecifierForSpecifier:(PSSpecifier *)specifier; | ||
|
||
//TODO find out param types | ||
- (void)_keyboardDidShow:(id)sender; | ||
- (void)_keyboardWillHide:(id)sender; | ||
- (void)_keyboardDidHide:(id)sender; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#import "PSListController.h" | ||
|
||
@class PSSpecifier; | ||
|
||
@interface PSListItemsController : PSListController { | ||
|
||
long long _rowToSelect; | ||
BOOL _deferItemSelection; | ||
BOOL _restrictionList; | ||
PSSpecifier* _lastSelectedSpecifier; | ||
id _retainedTarget; | ||
|
||
} | ||
- (void)tableView:(id)arg1 didSelectRowAtIndexPath:(id)arg2; | ||
- (id)tableView:(id)arg1 cellForRowAtIndexPath:(id)arg2; | ||
- (void)suspend; | ||
- (void)viewWillAppear:(BOOL)arg1; | ||
- (void)viewWillDisappear:(BOOL)arg1; | ||
- (void)prepareSpecifiersMetadata; | ||
- (void)didLock; | ||
- (void)scrollToSelectedCell; | ||
- (void)setValueForSpecifier:(id)arg1 defaultValue:(id)arg2; | ||
- (void)setRowToSelect; | ||
- (void)listItemSelected:(id)arg1; | ||
- (void)_addStaticText:(id)arg1; | ||
- (id)itemsFromParent; | ||
- (NSMutableArray *)itemsFromDataSource; | ||
- (BOOL)isRestrictionList; | ||
- (void)setIsRestrictionList:(BOOL)arg1; | ||
- (id)specifiers; | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
@class PSListController; | ||
|
||
@interface PSRootController : UINavigationController | ||
|
||
- (instancetype)initWithTitle:(NSString *)title identifier:(NSString *)identifier; | ||
|
||
- (void)handleURL:(id)url ; | ||
- (void)pushController:(PSListController *)controller; // < 3.2 | ||
- (void)suspend; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#import "PSControlTableCell.h" | ||
|
||
@interface PSSliderTableCell : PSControlTableCell | ||
|
||
@end |
Oops, something went wrong.