|
|
|
|
|
|
|
|
-(id)_dateColor; |
|
|
-(id)_dateColor; |
|
|
-(BOOL)isDateHidden; |
|
|
-(BOOL)isDateHidden; |
|
|
-(void)layoutDuplexCalendarLabel; |
|
|
-(void)layoutDuplexCalendarLabel; |
|
|
|
|
|
-(void)_updateLabels; |
|
|
@end |
|
|
@end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@interface _UILegibilityView : UIView |
|
|
@interface _UILegibilityView : UIView |
|
|
@end |
|
|
|
|
|
|
|
|
@end |
|
|
|
|
|
|
|
|
@interface _UILegibilityLabel : _UILegibilityView |
|
|
@interface _UILegibilityLabel : _UILegibilityView |
|
|
@end |
|
|
@end |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-(void)_layoutLunarDateLabel{ |
|
|
-(void)_layoutLunarDateLabel{ |
|
|
%orig; |
|
|
%orig; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!isLunarDateRefreshed) { |
|
|
if(!isLunarDateRefreshed) { |
|
|
isLunarDateRefreshed = YES; |
|
|
isLunarDateRefreshed = YES; |
|
|
[lockScreenDateView _updateLabels]; |
|
|
[lockScreenDateView _updateLabels]; |
|
|
|
|
|
|
|
|
self.duplexCalendarLabel.font = [[self _dateFont] fontWithSize:16]; |
|
|
self.duplexCalendarLabel.font = [[self _dateFont] fontWithSize:16]; |
|
|
[self addSubview:self.duplexCalendarLabel]; |
|
|
[self addSubview:self.duplexCalendarLabel]; |
|
|
self.duplexCalendarLabel.textColor = [self _dateColor]; |
|
|
self.duplexCalendarLabel.textColor = [self _dateColor]; |
|
|
self.duplexCalendarLabel.textAlignment = 1; |
|
|
|
|
|
|
|
|
self.duplexCalendarLabel.textAlignment = (NSTextAlignment)1; |
|
|
} |
|
|
} |
|
|
return lockScreenDateView; |
|
|
return lockScreenDateView; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
-(void)layoutDuplexCalendarLabel{ |
|
|
-(void)layoutDuplexCalendarLabel{ |
|
|
NSString *offsetXTextField = [prefs objectForKey:@"offsetXTextField"]; |
|
|
NSString *offsetXTextField = [prefs objectForKey:@"offsetXTextField"]; |
|
|
NSString *offsetYTextField = [prefs objectForKey:@"offsetYTextField"]; |
|
|
NSString *offsetYTextField = [prefs objectForKey:@"offsetYTextField"]; |
|
|
NSString *FontSizeTextField = [prefs objectForKey:@"FontSizeTextField"]; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NSString *FontSizeTextField = [prefs objectForKey:@"FontSizeTextField"]; |
|
|
|
|
|
|
|
|
//if(originx <= 0.0) |
|
|
//if(originx <= 0.0) |
|
|
//{ |
|
|
//{ |
|
|
UILabel *originalLabel = MSHookIvar<UILabel *>(self, "_dateLabel"); |
|
|
UILabel *originalLabel = MSHookIvar<UILabel *>(self, "_dateLabel"); |
|
|
|
|
|
|
|
|
self.duplexCalendarLabel.text = self.todayHeaderViewText; |
|
|
self.duplexCalendarLabel.text = self.todayHeaderViewText; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
-(void)_layoutDateLabel { |
|
|
|
|
|
|
|
|
-(void)_layoutDateLabel { |
|
|
%orig; |
|
|
%orig; |
|
|
[self layoutDuplexCalendarLabel]; |
|
|
[self layoutDuplexCalendarLabel]; |
|
|
_UILegibilityLabel *originalLegibilityLabel = MSHookIvar<_UILegibilityLabel *>(self, "_legibilityDateLabel"); |
|
|
_UILegibilityLabel *originalLegibilityLabel = MSHookIvar<_UILegibilityLabel *>(self, "_legibilityDateLabel"); |
|
|
|
|
|
|
|
|
(void*)myObserver, |
|
|
(void*)myObserver, |
|
|
savePressed, |
|
|
savePressed, |
|
|
CFSTR("duplexcalendar.savepressed"), |
|
|
CFSTR("duplexcalendar.savepressed"), |
|
|
NULL, |
|
|
|
|
|
|
|
|
NULL, |
|
|
CFNotificationSuspensionBehaviorDeliverImmediately); |
|
|
CFNotificationSuspensionBehaviorDeliverImmediately); |
|
|
savePressed(); |
|
|
savePressed(); |
|
|
} |
|
|
} |