mirror of
https://github.com/arichornlover/uYouEnhanced.git
synced 2026-01-11 22:40:19 +00:00
Update LowContrastMode.xm
This commit is contained in:
parent
6aa7661dc3
commit
fff8d429c6
1 changed files with 1 additions and 1 deletions
|
|
@ -527,7 +527,7 @@ static inline BOOL customContrastMode() {
|
|||
%hook NSAttributedString
|
||||
- (instancetype)initWithString:(NSString *)str attributes:(NSDictionary<NSAttributedStringKey, id> *)attrs {
|
||||
if (UIScreen.mainScreen.traitCollection.userInterfaceStyle == UIUserInterfaceStyleDark) {
|
||||
MutableDictionary *modifiedAttributes = [NSMutableDictionary dictionaryWithDictionary:attrs];
|
||||
NSMutableDictionary *modifiedAttributes = [NSMutableDictionary dictionaryWithDictionary:attrs];
|
||||
modifiedAttributes[NSForegroundColorAttributeName] = kDefaultTextColor;
|
||||
return %orig(str, modifiedAttributes);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue