|
@@ -199,8 +199,8 @@ import Cocoa
|
|
}
|
|
}
|
|
|
|
|
|
@objc func updateViewColor () {
|
|
@objc func updateViewColor () {
|
|
- self.trialMessageField.textColor = KMAppearance.KMColor_Layout_H0()
|
|
|
|
- self.trialFeaturesField.textColor = KMAppearance.KMColor_Layout_H0()
|
|
|
|
|
|
+ self.trialMessageField.textColor = KMAppearance.Layout.h0Color()
|
|
|
|
+ self.trialFeaturesField.textColor = KMAppearance.Layout.h0Color()
|
|
|
|
|
|
self.features1Field.textColor = NSColor(red: 14.0/255.0, green: 17.0/255.0, blue: 20.0/255.0, alpha: 1)
|
|
self.features1Field.textColor = NSColor(red: 14.0/255.0, green: 17.0/255.0, blue: 20.0/255.0, alpha: 1)
|
|
self.features2Field.textColor = NSColor(red: 14.0/255.0, green: 17.0/255.0, blue: 20.0/255.0, alpha: 1)
|
|
self.features2Field.textColor = NSColor(red: 14.0/255.0, green: 17.0/255.0, blue: 20.0/255.0, alpha: 1)
|
|
@@ -211,21 +211,21 @@ import Cocoa
|
|
|
|
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.nameTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.nameTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.emailTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.emailTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
if (KMAppearance.isDarkMode)() {
|
|
if (KMAppearance.isDarkMode)() {
|
|
- self.nameTextField.textColor = KMAppearance.KMColor_Layout_W0()
|
|
|
|
- self.emailTextField.textColor = KMAppearance.KMColor_Layout_W0()
|
|
|
|
|
|
+ self.nameTextField.textColor = KMAppearance.Layout.w0Color()
|
|
|
|
+ self.emailTextField.textColor = KMAppearance.Layout.w0Color()
|
|
|
|
|
|
self.rView.layer?.backgroundColor = NSColor(red: 24.0/255.0, green: 22.0/255.0, blue: 31.0/255.0, alpha: 0.9).cgColor
|
|
self.rView.layer?.backgroundColor = NSColor(red: 24.0/255.0, green: 22.0/255.0, blue: 31.0/255.0, alpha: 0.9).cgColor
|
|
|
|
|
|
@@ -280,7 +280,7 @@ import Cocoa
|
|
let privacyPolicy : String = NSLocalizedString("Privacy Policy.", comment: "")
|
|
let privacyPolicy : String = NSLocalizedString("Privacy Policy.", comment: "")
|
|
|
|
|
|
let allRange = (stringValue as NSString).range(of: stringValue)
|
|
let allRange = (stringValue as NSString).range(of: stringValue)
|
|
- attributedString.addAttributes([NSAttributedString.Key.foregroundColor : KMAppearance.KMColor_Layout_W70()], range: allRange)
|
|
|
|
|
|
+ attributedString.addAttributes([NSAttributedString.Key.foregroundColor : KMAppearance.Layout.w70Color()], range: allRange)
|
|
attributedString.addAttributes([NSAttributedString.Key.font :NSFont(name: "SFProText-Regular", size: 12.0) as Any], range: allRange)
|
|
attributedString.addAttributes([NSAttributedString.Key.font :NSFont(name: "SFProText-Regular", size: 12.0) as Any], range: allRange)
|
|
|
|
|
|
let urlString : String = "https://www.pdfreaderpro.com/privacy-policy"
|
|
let urlString : String = "https://www.pdfreaderpro.com/privacy-policy"
|
|
@@ -290,7 +290,7 @@ import Cocoa
|
|
attributedString.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: linkRange)
|
|
attributedString.addAttribute(.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: linkRange)
|
|
|
|
|
|
self.bottomTextView.linkTextAttributes = [
|
|
self.bottomTextView.linkTextAttributes = [
|
|
- NSAttributedString.Key.foregroundColor: KMAppearance.KMColor_Interactive_A0(),
|
|
|
|
|
|
+ NSAttributedString.Key.foregroundColor: KMAppearance.Interactive.a0Color(),
|
|
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
|
|
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
|
|
]
|
|
]
|
|
|
|
|
|
@@ -300,8 +300,8 @@ import Cocoa
|
|
self.bottomTextView.sizeToFit()
|
|
self.bottomTextView.sizeToFit()
|
|
} else {
|
|
} else {
|
|
|
|
|
|
- self.nameTextField.textColor = KMAppearance.KMColor_Layout_H0()
|
|
|
|
- self.emailTextField.textColor = KMAppearance.KMColor_Layout_H0()
|
|
|
|
|
|
+ self.nameTextField.textColor = KMAppearance.Layout.h0Color()
|
|
|
|
+ self.emailTextField.textColor = KMAppearance.Layout.h0Color()
|
|
|
|
|
|
self.rView.layer?.backgroundColor = NSColor(red: 248.0/255.0, green: 249.0/255.0, blue: 255.0/255.0, alpha: 1).cgColor
|
|
self.rView.layer?.backgroundColor = NSColor(red: 248.0/255.0, green: 249.0/255.0, blue: 255.0/255.0, alpha: 1).cgColor
|
|
|
|
|
|
@@ -358,7 +358,7 @@ import Cocoa
|
|
attributedString.addAttribute(NSAttributedString.Key.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: linkRange)
|
|
attributedString.addAttribute(NSAttributedString.Key.underlineStyle, value: NSUnderlineStyle.single.rawValue, range: linkRange)
|
|
|
|
|
|
let allRange = (stringValue as NSString).range(of: stringValue)
|
|
let allRange = (stringValue as NSString).range(of: stringValue)
|
|
- attributedString.addAttributes([NSAttributedString.Key.foregroundColor : KMAppearance.KMColor_Layout_H1()], range: allRange)
|
|
|
|
|
|
+ attributedString.addAttributes([NSAttributedString.Key.foregroundColor : KMAppearance.Layout.h1Color()], range: allRange)
|
|
attributedString.addAttributes([NSAttributedString.Key.font :NSFont(name: "SFProText-Regular", size: 12.0) as Any], range: allRange)
|
|
attributedString.addAttributes([NSAttributedString.Key.font :NSFont(name: "SFProText-Regular", size: 12.0) as Any], range: allRange)
|
|
|
|
|
|
// 设置悬停时链接文本颜色
|
|
// 设置悬停时链接文本颜色
|
|
@@ -366,7 +366,7 @@ import Cocoa
|
|
// attributedString.addAttribute(NSAttributedString.Key(rawValue: "NSMouseInRectAttribute"), value: hoverColor, range: linkRange)
|
|
// attributedString.addAttribute(NSAttributedString.Key(rawValue: "NSMouseInRectAttribute"), value: hoverColor, range: linkRange)
|
|
// 设置TextView的富文本属性
|
|
// 设置TextView的富文本属性
|
|
self.bottomTextView.linkTextAttributes = [
|
|
self.bottomTextView.linkTextAttributes = [
|
|
- NSAttributedString.Key.foregroundColor: KMAppearance.KMColor_Interactive_A0(),
|
|
|
|
|
|
+ NSAttributedString.Key.foregroundColor: KMAppearance.Interactive.a0Color(),
|
|
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
|
|
NSAttributedString.Key.underlineStyle: NSUnderlineStyle.single.rawValue
|
|
]
|
|
]
|
|
|
|
|
|
@@ -442,14 +442,14 @@ import Cocoa
|
|
|
|
|
|
self.nameTextFieldView.layer?.borderWidth = 0.0
|
|
self.nameTextFieldView.layer?.borderWidth = 0.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.nameTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.nameTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.emailTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.emailTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
@@ -461,14 +461,14 @@ import Cocoa
|
|
|
|
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.nameTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.nameTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
self.emailTextFieldView.layer?.borderWidth = 0.0
|
|
self.emailTextFieldView.layer?.borderWidth = 0.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.emailTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.emailTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
@@ -486,14 +486,14 @@ import Cocoa
|
|
}
|
|
}
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
self.nameTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.nameTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.nameTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
self.emailTextFieldView.layer?.borderWidth = 0.0
|
|
self.emailTextFieldView.layer?.borderWidth = 0.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.emailTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.emailTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
@@ -506,14 +506,14 @@ import Cocoa
|
|
}
|
|
}
|
|
self.nameTextFieldView.layer?.borderWidth = 0.0
|
|
self.nameTextFieldView.layer?.borderWidth = 0.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.nameTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.nameTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.nameTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|
|
|
|
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
self.emailTextFieldView.layer?.borderWidth = 1.0
|
|
if (KMAppearance.isDarkMode)(){
|
|
if (KMAppearance.isDarkMode)(){
|
|
- self.emailTextFieldView.layer?.borderColor = KMAppearance.KMColor_Layout_W30().cgColor
|
|
|
|
|
|
+ self.emailTextFieldView.layer?.borderColor = KMAppearance.Layout.w30Color().cgColor
|
|
} else {
|
|
} else {
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
self.emailTextFieldView.layer?.borderColor = NSColor(red: 0.0/255.0, green: 85.0/255.0, blue: 251.0/255.0, alpha: 1).cgColor
|
|
}
|
|
}
|