mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-04-21 11:52:00 +00:00
Update LowContrastMode.xm
This commit is contained in:
parent
dc2ccb6528
commit
d6380ee379
1 changed files with 7 additions and 0 deletions
|
|
@ -577,6 +577,13 @@ UIColor *lcmHexColor;
|
||||||
%init(gLowContrastMode);
|
%init(gLowContrastMode);
|
||||||
}
|
}
|
||||||
if (customContrastMode()) {
|
if (customContrastMode()) {
|
||||||
|
NSData *lcmColorData = [[NSUserDefaults standardUserDefaults] objectForKey:@"kYTLcmColourOptionVFive"];
|
||||||
|
NSKeyedUnarchiver *lcmUnarchiver = [[NSKeyedUnarchiver alloc] initForReadingFromData:lcmColorData error:nil];
|
||||||
|
[lcmUnarchiver setRequiresSecureCoding:NO];
|
||||||
|
NSString *lcmHexString = [lcmUnarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||||
|
if (lcmHexString != nil) {
|
||||||
|
lcmHexColor = [lcmUnarchiver decodeObjectForKey:NSKeyedArchiveRootObjectKey];
|
||||||
%init(gCustomContrastMode);
|
%init(gCustomContrastMode);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue