Skip to content

Commit

Permalink
Change green color usage
Browse files Browse the repository at this point in the history
  • Loading branch information
martenrebane committed Dec 20, 2023
1 parent eeec71f commit b4b4cda
Show file tree
Hide file tree
Showing 7 changed files with 52 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x23",
"green" : "0x81",
"red" : "0x21"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x1B",
"green" : "0x64",
"red" : "0x1A"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
2 changes: 1 addition & 1 deletion MoppApp/MoppApp/ContainerNotificationCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class ContainerNotificationCell: UITableViewCell {
}

func populate(isSuccess: Bool, text: String) {
contentView.backgroundColor = isSuccess ? UIColor.moppSuccess : UIColor.moppWarning
contentView.backgroundColor = isSuccess ? UIColor.moppGreen700 : UIColor.moppWarning
infoLabel.text = text
}
}
2 changes: 1 addition & 1 deletion MoppApp/MoppApp/ContainerSignatureCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ContainerSignatureCell: UITableViewCell {
let signatureStatus = NSMutableAttributedString(string: signatureStatusText)
let mainColor: UIColor
if (valid) {
mainColor = UIColor.moppSuccess
mainColor = UIColor.moppGreen800
} else {
mainColor = UIColor.moppError
}
Expand Down
8 changes: 8 additions & 0 deletions MoppApp/MoppApp/Extensions/UIColor+Additions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,14 @@ extension UIColor {
return UIColor(named: "MoppLabelDarker")!
}

class var moppGreen700: UIColor {
return UIColor(named: "MoppGreen700")!
}

class var moppGreen800: UIColor {
return UIColor(named: "MoppGreen800")!
}

class var moppWarningTextDarker: UIColor {
return UIColor(named: "MoppWarningTextDarker")!
}
Expand Down
2 changes: 1 addition & 1 deletion MoppApp/MoppApp/MyeIDInfoManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class MyeIDInfoManager {
if isValid {
let certValidText = capitalized ? L(.myEidCertValid).capitalized : L(.myEidCertValid)
let validText = NSAttributedString(string: certValidText, attributes:
[.foregroundColor : UIColor.moppSuccess])
[.foregroundColor : UIColor.moppGreen700])
attrText.append(validText)
} else {
let certExpiredText = capitalized ? L(.myEidCertExpired).capitalized : L(.myEidCertExpired)
Expand Down
2 changes: 1 addition & 1 deletion MoppApp/MoppApp/SwitchButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class SwitchButton: UISwitch {
}

private func setDefaultOnColor() {
self.onTintColor = UIColor.moppSuccess
self.onTintColor = UIColor.moppGreen700
}

private func setDefaultOffColor() {
Expand Down

0 comments on commit b4b4cda

Please sign in to comment.