Update Themes.xm
This commit is contained in:
parent
e28b165211
commit
5b2436e39f
1 changed files with 7 additions and 0 deletions
|
|
@ -688,8 +688,15 @@ UIColor *customHexColor;
|
|||
|
||||
%ctor {
|
||||
if (IS_CUSTOM_DARK_THEME_SELECTED) {
|
||||
NSData *colorData = [[NSUserDefaults standardUserDefaults] objectForKey:@"kCustomThemeColor"];
|
||||
NSKeyedUnarchiver *unarchiver = [[NSKeyedUnarchiver alloc] initForReadingFromData:colorData error:nil];
|
||||
[unarchiver setRequiresSecureCoding:NO];
|
||||
NSString *hexString = [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||
if (hexString != nil) {
|
||||
customHexColor = [unarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||
%init(gCustomTheme);
|
||||
}
|
||||
}
|
||||
if (IS_OLED_DARK_THEME_SELECTED) {
|
||||
%init(gOLED);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue