-
Notifications
You must be signed in to change notification settings - Fork 5
/
Tweak.h
175 lines (139 loc) · 5.07 KB
/
Tweak.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
#import <UIKit/UIKit.h>
#import <rootless.h>
@interface UIView (Undocumented)
- (UIViewController *)_viewControllerForAncestor;
@end
@interface SBFolderBackgroundView : UIView
@end
@interface SBIconListGridLayoutConfiguration : NSObject
@property (nonatomic, assign) BOOL isOldFolder;
@property (nonatomic, assign) BOOL check;
- (BOOL)checkIfFolder;
- (void)setNumberOfPortraitColumns:(NSUInteger)numberOfPortraitColumns;
- (NSUInteger)numberOfPortraitColumns;
- (void)setNumberOfPortraitRows:(NSUInteger)numberOfPortraitRows;
- (NSUInteger)numberOfPortraitRows;
@end
@interface _UITextLayoutCanvasView : UIView
@end
@interface _UITextFieldClearButton : UIButton
@end
@interface SBFolderTitleTextField : UITextField
@property (nonatomic, strong) _UITextLayoutCanvasView *_textCanvasView;
@property (nonatomic, strong) UIView *_backgroundView;
@property (nonatomic, strong) _UITextFieldClearButton *_clearButton;
@property (nonatomic, strong) UILabel *_br_appCountLabel;
@property (nonatomic, strong) NSLayoutConstraint *_br_newConstraint;
@property (nonatomic, strong) NSNumberFormatter *_br_numberFormatter;
- (void)_br_updateIconCount;
- (BOOL)showingEditUI;
@end
@interface SBFolder : NSObject
@property (nonatomic, assign) NSUInteger iconCount;
@property (nonatomic, strong) NSString *displayName;
@end
@interface SBFloatyFolderView : UIView
@property (nonatomic, strong, readonly, getter=_titleTextField) SBFolderTitleTextField *titleTextField;
@property (nonatomic, strong) SBFolder *folder;
@end
@interface SBFloatyFolderController : NSObject
@property (nonatomic, strong) SBFloatyFolderView *folderView;
@end
@interface SBIconListGridLayout : NSObject
@property (nonatomic, strong) SBIconListGridLayoutConfiguration *layoutConfiguration;
@end
@interface SBIconListFlowLayout : SBIconListGridLayout
@end
@interface SBIconGridImage : UIImage
@property (nonatomic, strong) SBIconListGridLayout *listLayout;
@property (nonatomic, assign) NSUInteger numberOfColumns;
@property (nonatomic, assign) NSUInteger numberOfRows;
- (id)iconImageAtIndex:(NSUInteger)index;
@end
@interface _SBIconGridWrapperView : UIImageView
- (void)adjustTransform;
@end
typedef struct SBHIconGridSize {
short width;
short height;
} SBHIconGridSize;
@interface SBIconListModel : NSObject
@property (nonatomic, strong) NSString *location;
@property (nonatomic, assign) NSUInteger maxNumberOfIcons;
@property (nonatomic, assign) NSUInteger numberOfIcons;
@property (nonatomic, strong) NSArray *icons;
@property (nonatomic, strong) SBFolder *folder;
- (SBIconListModel *)initWithFolder:(SBFolder *)folder maxIconCount:(NSUInteger)maxCount;
- (SBHIconGridSize)gridSizeForCurrentOrientation;
@end
@interface SBFolderController : UIView
@end
@interface SBFolderIconImageCache : NSObject
@property (nonatomic, strong) SBIconListGridLayout *listLayout;
@end
@interface SBIconView : UIView
@property (nonatomic, assign, readwrite, getter=isIconContentScalingEnabled) BOOL iconContentScalingEnabled;
- (NSString *)location;
- (void)setIconContentScale:(CGFloat)scale;
@end
@interface SBIconListPageControl : UIView
@end
@interface SBIconListFlowExtendedLayout : NSObject
@property (nonatomic, strong) SBIconListGridLayoutConfiguration *layoutConfiguration;
@end
@interface SBIconListView : UIView
@property (nonatomic, strong) SBIconListGridLayout *layout;
@property (nonatomic, strong) SBIconListModel *model;
@property (nonatomic, strong) NSString *iconLocation;
@end
@interface SBFolderIconImageView : UIView
@end
/*
|====================|
| Global Preferences |
|====================|
*/
BOOL tweakEnabled;
NSString *countText;
NSUInteger rows;
NSUInteger columns;
/*
|======================|
| Portrait Preferences |
|======================|
*/
NSInteger titleOffset_portrait;
NSInteger subtitleOffset_portrait;
NSInteger horizontalIconInset_portrait;
NSInteger topIconInset_portrait;
NSInteger horizontalOffset_portrait;
double titleScale_portrait;
double subtitleScale_portrait;
double titleTransparency_portrait;
double subtitleTransparency_portrait;
double iconScale_portrait;
NSUInteger verticalIconSpacing_portrait;
BOOL homescreenIconBlur_portrait;
BOOL folderBackground_portrait;
/*
|==================================================================|
| Landscape Preferences |
| ---------------------------------------------------------------- |
| The original Bolders had landscape as well. |
| However, since landscape is pretty much broken on iOS 14 and 15, |
| Landscape support is not planned at the moment. |
|==================================================================|
*/
// NSInteger titleOffset_landscape;
// NSInteger subtitleOffset_landscape;
// NSInteger horizontalIconInset_landscape;
// NSInteger topIconInset_landscape;
// NSInteger horizontalOffset_landscape;
// double titleScale_landscape;
// double subtitleScale_landscape;
// double titleTransparency_landscape;
// double subtitleTransparency_landscape;
// double iconScale_landscape;
// NSUInteger verticalIconSpacing_landscape;
// BOOL homescreenIconBlur_landscape;
// BOOL folderBackground_landscape;