|
@@ -34,6 +34,7 @@ NSPopoverDelegate>
|
|
|
@property (assign) IBOutlet NSView *signUpView;
|
|
|
@property (assign) IBOutlet NSImageView *signUpImg;
|
|
|
@property (assign) IBOutlet NSTextField *signUpLabel;
|
|
|
+@property (strong) IBOutlet NSImageView *signUpBGImage;
|
|
|
|
|
|
@property (weak) IBOutlet NSButton *officeButton;
|
|
|
@property (assign) IBOutlet NSImageView *officeImg;
|
|
@@ -95,6 +96,10 @@ NSPopoverDelegate>
|
|
|
selector:@selector(languageChangedNotification:)
|
|
|
name:@"APPLanguageChangedNotificationName"
|
|
|
object:nil];
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self
|
|
|
+ selector:@selector(uiThemeChangedNotification:)
|
|
|
+ name:@"APPAppearanceChangedNotificationName"
|
|
|
+ object:nil];
|
|
|
|
|
|
_datas = [NSMutableArray arrayWithCapacity:4];
|
|
|
}
|
|
@@ -376,17 +381,18 @@ NSPopoverDelegate>
|
|
|
}
|
|
|
|
|
|
- (CGFloat)dealSignUpView {
|
|
|
- self.signUpLabel.stringValue = KMLocalizedString(@"Sign in", nil);
|
|
|
+ self.signUpLabel.stringValue = KMLocalizedString(@"Unlock Benefits", nil);
|
|
|
self.signUpLabel.font = [NSFont SFProTextSemiboldFont:11];
|
|
|
[self.signUpLabel sizeToFit];
|
|
|
CGFloat signUpWidth = self.signUpLabel.frame.size.width;
|
|
|
signUpWidth += 4;
|
|
|
signUpWidth += 8;
|
|
|
signUpWidth += 8;
|
|
|
- signUpWidth += 12;
|
|
|
+// signUpWidth += 12;
|
|
|
self.signUpImg.frame = CGRectMake(8, CGRectGetHeight(self.signUpView.frame)/2.-6, 12, 12);
|
|
|
CGRect signUplabelRect = self.signUpLabel.frame;
|
|
|
- signUplabelRect.origin.x = CGRectGetMaxX(self.signUpImg.frame) + 4;
|
|
|
+// signUplabelRect.origin.x = CGRectGetMaxX(self.signUpImg.frame) + 4;
|
|
|
+ signUplabelRect.origin.x = 8;
|
|
|
self.signUpLabel.frame = signUplabelRect;
|
|
|
|
|
|
return signUpWidth;
|
|
@@ -909,6 +915,18 @@ NSPopoverDelegate>
|
|
|
self.aiContendView.hidden = YES;
|
|
|
self.userGiftView.hidden = YES;
|
|
|
|
|
|
+ self.signUpView.wantsLayer = YES;
|
|
|
+ self.signUpView.layer.cornerRadius = 4;
|
|
|
+ self.signUpView.layer.masksToBounds = YES;
|
|
|
+ self.signUpView.layer.borderWidth = 1;
|
|
|
+ self.signUpView.layer.borderColor = [ComponentLibrary.shared getComponentColorFromKey:@"comp-button/default-colorBorder-nor"].CGColor;
|
|
|
+ self.signUpView.layer.backgroundColor = [ComponentLibrary.shared getComponentColorFromKey:@"comp-button/default-colorFill-nor"].CGColor;
|
|
|
+
|
|
|
+ self.signUpLabel.textColor = [ComponentLibrary.shared getComponentColorFromKey:@"comp-button/default-colorText-nor"];
|
|
|
+
|
|
|
+ self.signUpBGImage.hidden = YES;
|
|
|
+ self.signUpImg.hidden = true;
|
|
|
+
|
|
|
totalWidth = 10;
|
|
|
|
|
|
totalWidth += self.betaFeedBackLabel.fittingSize.width;
|
|
@@ -1360,6 +1378,10 @@ NSPopoverDelegate>
|
|
|
[self reloadData];
|
|
|
}
|
|
|
|
|
|
+- (void)uiThemeChangedNotification:(NSNotification*)notification {
|
|
|
+ [self reloadData];
|
|
|
+}
|
|
|
+
|
|
|
#pragma mark - Event
|
|
|
- (void)mouseEntered:(NSEvent *)event {
|
|
|
if (ActivityStatusTrialExpire == [VerificationManager manager].status ||
|