Skip to content

Commit de3fc05

Browse files
Update Tweak.xm
1 parent bb9ac70 commit de3fc05

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Tweak.xm

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#import "Tweak.h"
22

3+
%group gLowContrastMode // Low Contrast Mode v1.4.2
34
%hook YTSettingsViewController
4-
- (void)setSectionItems:(NSMutableArray <YTSettingsSectionItem *> *)sectionItems forCategory:(NSInteger)category title:(NSString *)title titleDescription:(NSString *)titleDescription headerHidden:(BOOL)headerHidden {
5+
- (void)setSectionItems:(NSMutableArray<YTSettingsSectionItem *> *)sectionItems forCategory:(NSInteger)category title:(NSString *)title titleDescription:(NSString *)titleDescription headerHidden:(BOOL)headerHidden {
56
if (category == 1) {
6-
YTSettingsSectionItem *lowContrastMode = [[YTSettingsSectionItem alloc] initWithTitle:@"Low Contrast Mode"
7-
titleDescription:@"Enable to make the app easier on the eyes. App restart is required."];
7+
YTSettingsSectionItem *lowContrastMode = [[YTSettingsSectionItem alloc] initWithTitle:@"Low Contrast Mode" titleDescription:@"Enable to make the app easier on the eyes. App restart is required."];
88
lowContrastMode.hasSwitch = YES;
99
lowContrastMode.switchVisible = YES;
1010
lowContrastMode.on = [[NSUserDefaults standardUserDefaults] boolForKey:@"low_contrast_mode"];
11-
lowContrastMode.switchBlock = ^BOOL (YTSettingsCell *cell, BOOL enabled) {
11+
lowContrastMode.switchBlock = ^BOOL(YTSettingsCell *cell, BOOL enabled) {
1212
[[NSUserDefaults standardUserDefaults] setBool:enabled forKey:@"low_contrast_mode"];
1313
return YES;
1414
};
@@ -18,7 +18,6 @@
1818
}
1919
%end
2020

21-
%group gLowContrastMode // Low Contrast Mode v1.4.2
2221
%hook UIColor
2322
+ (UIColor *)whiteColor { // Dark Theme Color
2423
return [UIColor colorWithRed: 0.56 green: 0.56 blue: 0.56 alpha: 1.00];

0 commit comments

Comments
 (0)