Quellcode durchsuchen

【2025】【综合】右上角登录按钮修改

niehaoyu vor 2 Wochen
Ursprung
Commit
4f12453f5e

+ 25 - 3
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.m

@@ -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 ||

+ 2 - 0
PDF Office/PDF Master/Class/Purchase/DMG/Verification/KMVerificationMessageViewController.xib

@@ -22,6 +22,7 @@
                 <outlet property="officeButton" destination="KqO-uv-nE3" id="ymr-oZ-IrV"/>
                 <outlet property="officeImg" destination="cq6-oo-5NI" id="G63-1n-dWC"/>
                 <outlet property="secondTrialBtn" destination="pIG-TY-YRO" id="CtU-7B-BUB"/>
+                <outlet property="signUpBGImage" destination="NmA-6V-BX3" id="cM8-2v-J6l"/>
                 <outlet property="signUpImg" destination="OWQ-bX-dHV" id="9pD-mT-8b9"/>
                 <outlet property="signUpLabel" destination="VXk-gj-6b7" id="nFh-q0-Sgi"/>
                 <outlet property="signUpView" destination="VSH-IJ-52g" id="nfu-Jj-V9A"/>
@@ -231,6 +232,7 @@
                     <constraints>
                         <constraint firstAttribute="height" constant="32" id="AIK-o8-yEe"/>
                     </constraints>
+                    <font key="titleFont" metaFont="smallSystem"/>
                 </box>
             </subviews>
             <constraints>

+ 1 - 0
PDF Office/PDF Master/Strings/de.lproj/Localizable.strings

@@ -3487,3 +3487,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Bitte bleiben Sie gespannt auf PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "Das PDF Reader Pro-Team hat Ihre Vorschläge berücksichtigt. ";
 "Your attachments are strictly confidential and will only be used for the current operation."= "Ihre Anhänge werden streng vertraulich behandelt und nur für den aktuellen Vorgang verwendet.";
+"Unlock Benefits" = "Schalten Sie Vorteile frei";

+ 1 - 0
PDF Office/PDF Master/Strings/es.lproj/Localizable.strings

@@ -3411,3 +3411,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "¡Estén atentos a PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "El equipo de PDF Reader Pro ha tenido en cuenta sus sugerencias. ";
 "Your attachments are strictly confidential and will only be used for the current operation."= "Sus archivos adjuntos son estrictamente confidenciales y sólo se utilizarán para la operación actual.";
+"Unlock Benefits" = "Desbloquear beneficios";

+ 1 - 0
PDF Office/PDF Master/Strings/fr.lproj/Localizable.strings

@@ -3440,3 +3440,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Restez à l’écoute de PDF Reader Pro 2025 !";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "L'équipe PDF Reader Pro a pris en compte vos suggestions.";
 "Your attachments are strictly confidential and will only be used for the current operation."= "Vos pièces jointes sont strictement confidentielles et ne seront utilisées que pour l'opération en cours.";
+"Unlock Benefits" = "Bénéficiez d'avantages";

+ 1 - 0
PDF Office/PDF Master/Strings/it.lproj/Localizable.strings

@@ -3367,3 +3367,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Restate sintonizzati per PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "Il PDF Reader Pro Team ha preso in considerazione i tuoi suggerimenti. ";
 "Your attachments are strictly confidential and will only be used for the current operation."= "I tuoi allegati sono strettamente confidenziali e verranno utilizzati solo per l'operazione corrente.";
+"Unlock Benefits" = "Sblocca i vantaggi";

+ 1 - 0
PDF Office/PDF Master/Strings/ja.lproj/Localizable.strings

@@ -3647,3 +3647,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "PDF Reader Pro 2025 にご期待ください。";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "PDF Reader Pro チームは、あなたの提案を考慮して取り入れました。";
 "Your attachments are strictly confidential and will only be used for the current operation."= "إن添付ファイルは極秘に扱われ、現在の操作にのみ使用されます。";
+"Unlock Benefits" = "ログイン";

+ 1 - 0
PDF Office/PDF Master/Strings/nl.lproj/Localizable.strings

@@ -3131,3 +3131,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Houd ons in de gaten voor PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "Het PDF Reader Pro Team heeft uw suggesties in overweging genomen.";
 "Your attachments are strictly confidential and will only be used for the current operation."= "Uw bijlagen zijn strikt vertrouwelijk en zullen alleen worden gebruikt voor de huidige operatie.";
+"Unlock Benefits" = "Ontgrendel voordelen";

+ 1 - 0
PDF Office/PDF Master/Strings/pl.lproj/Localizable.strings

@@ -3247,3 +3247,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Czekajcie na PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "Zespół PDF Reader Pro uwzględnił Twoje sugestie. ";
 "Your attachments are strictly confidential and will only be used for the current operation."= "إنTwoje załączniki są ściśle poufne i zostaną wykorzystane wyłącznie w bieżącej operacji.";
+"Unlock Benefits" = "Odblokuj korzyści";

+ 1 - 0
PDF Office/PDF Master/Strings/pt.lproj/Localizable.strings

@@ -5041,3 +5041,4 @@
 "Please stay tuned for PDF Reader Pro 2025!" = "Fique atento ao PDF Reader Pro 2025!";
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "A equipe do PDF Reader Pro incorporou suas sugestões em consideração. ";
 "Your attachments are strictly confidential and will only be used for the current operation."= "Seus anexos são estritamente confidenciais e serão usados ​​apenas para a operação atual.";
+"Unlock Benefits" = "Desbloquear benefícios";

+ 1 - 0
PDF Office/PDF Master/Strings/ru.lproj/Localizable.strings

@@ -3309,3 +3309,4 @@
 "PDF Reader Pro Team has incorporated your suggestions into consideration." = "Команда PDF Reader Pro учла ваши предложения. ";
 
 "Your attachments are strictly confidential and will only be used for the current operation."= "Ваши вложения строго конфиденциальны и будут использоваться только для текущей операции.";
+"Unlock Benefits" = "Разблокируйте преимущества";

+ 1 - 0
PDF Office/PDF Master/Strings/zh-Hans.lproj/Localizable.strings

@@ -4562,3 +4562,4 @@
 "Feedback to get" = "参与测评获取";
 "Feedback to get a %@ Coupon" = "参与测评获取%@优惠券";
 "Feedback to get a" = "参与测评获取";
+"Unlock Benefits" = "解锁权益";

+ 1 - 0
PDF Office/PDF Master/Strings/zh-Hant.lproj/Localizable.strings

@@ -4460,3 +4460,4 @@
 "Feedback to get a" = "參與測評取得";
 "Feedback to get a %@ Coupon" = "參與測評取得%@優惠券";
 "Feedback to get" = "參與測評取得";
+"Unlock Benefits" = "解鎖權益";