Updated Themes (New Button: Custom Dark Theme)

Added a button to let anyone be able to use trigger the Custom Theme Colors. (exclusive to Dark Theme only.)
This commit is contained in:
arichornlover 2024-02-24 02:11:20 -06:00 committed by GitHub
parent 38cd078dc3
commit be3a005893
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,6 +168,16 @@ extern NSBundle *uYouPlusBundle();
return YES;
}
],
[YTSettingsSectionItemClass
checkmarkItemWithTitle:LOC(@"Custom Dark Theme")
titleDescription:LOC(@"In order to use Custom Themes that is in the uYouPlus Button, you will need to select this to be able to use custom colors.")
selectBlock:^BOOL (YTSettingsCell *cell, NSUInteger arg1) {
[[NSUserDefaults standardUserDefaults] setInteger:3 forKey:@"appTheme"];
[settingsViewController reloadData];
SHOW_RELAUNCH_YT_SNACKBAR;
return YES;
}
],
[YTSettingsSectionItemClass
switchItemWithTitle:LOC(@"OLED_KEYBOARD")
titleDescription:LOC(@"OLED_KEYBOARD_DESC")