mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-03-11 17:15:32 +00:00
Added “Change App Icon” Button (uYouEnhanced Settings)
This commit is contained in:
parent
9c49ae2417
commit
b402cee8ec
1 changed files with 14 additions and 0 deletions
|
|
@ -78,6 +78,20 @@ extern NSBundle *uYouPlusBundle();
|
|||
Class YTSettingsSectionItemClass = %c(YTSettingsSectionItem);
|
||||
YTSettingsViewController *settingsViewController = [self valueForKey:@"_settingsViewControllerDelegate"];
|
||||
|
||||
# pragma mark - App Icon Customization
|
||||
YTSettingsSectionItem *appIcon = [%c(YTSettingsSectionItem)
|
||||
itemWithTitle:LOC(@"Change App Icon")
|
||||
titleDescription:nil
|
||||
accessibilityIdentifier:nil
|
||||
detailTextBlock:nil
|
||||
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
|
||||
AppIconOptionsController *appIconController = [[AppIconOptionsController alloc] init];
|
||||
[settingsViewController.navigationController pushViewController:appIconController animated:YES];
|
||||
return YES;
|
||||
}
|
||||
];
|
||||
[sectionItems addObject:appIcon];
|
||||
|
||||
# pragma mark - About
|
||||
// SECTION_HEADER(LOC(@"ABOUT"));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue