restore waterMark Text

This commit is contained in:
TrueZhuangjia committed 2025-01-05 13:09:47 +08:00
1 parent 8506640d7f
commit b6abd71392
1 file changed
+5 -2
@@ -1035,14 +1035,17 @@ static NSMutableSet* hostList;
self->waterMark.text = [LocalizationHelper localizedStringForKey:@"waterMarkText"]; self->waterMark.text = [LocalizationHelper localizedStringForKey:@"waterMarkText"];
CGFloat labelHeight = 60; CGFloat labelHeight = 60;
NSLog(@"fullscr: %d", [self isFullScreenRequired]); NSLog(@"fullscr: %d", [self isFullScreenRequired]);
// the app is unable to automatically lock screen orientation in app window resiable mode(aka. not require fullscreen) // the app is unable to automatically lock screen orientation in app window resizable mode(aka. not require fullscreen)
if(![self isFullScreenRequired]){
// if(![self isFullScreenRequired]){
if(false){
NSString* screenRotationTip = [LocalizationHelper localizedStringForKey:@"screenRotationTIp"]; NSString* screenRotationTip = [LocalizationHelper localizedStringForKey:@"screenRotationTIp"];
self->waterMark.text = [NSString stringWithFormat:@"%@\n%@", self->waterMark.text, screenRotationTip]; self->waterMark.text = [NSString stringWithFormat:@"%@\n%@", self->waterMark.text, screenRotationTip];
self->waterMark.numberOfLines = 0; // Allow multiline text self->waterMark.numberOfLines = 0; // Allow multiline text
self->waterMark.font = [UIFont systemFontOfSize:19]; self->waterMark.font = [UIFont systemFontOfSize:19];
labelHeight = 80; labelHeight = 80;
} }
self->waterMark.textColor = UIColor.blackColor; self->waterMark.textColor = UIColor.blackColor;
self->waterMark.alpha = 0.35; self->waterMark.alpha = 0.35;
self->waterMark.textAlignment = NSTextAlignmentCenter; self->waterMark.textAlignment = NSTextAlignmentCenter;