mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Update chart colors
This commit is contained in:
parent
7d7ccbee75
commit
bdada453ad
@ -29,12 +29,11 @@ extension GColor {
|
|||||||
|
|
||||||
convenience init?(hexString: String) {
|
convenience init?(hexString: String) {
|
||||||
let r, g, b, a: CGFloat
|
let r, g, b, a: CGFloat
|
||||||
|
|
||||||
let components = hexString.components(separatedBy: "#")
|
let components = hexString.components(separatedBy: "#")
|
||||||
if let name = components.first, !name.isEmpty {
|
if let name = components.first, !name.isEmpty {
|
||||||
switch name.lowercased() {
|
switch name.lowercased() {
|
||||||
case "red":
|
case "red":
|
||||||
self.init(hexString: "#ff2d55")
|
self.init(hexString: "#ff3b30")
|
||||||
return
|
return
|
||||||
case "green":
|
case "green":
|
||||||
self.init(hexString: "#34c759")
|
self.init(hexString: "#34c759")
|
||||||
@ -43,13 +42,13 @@ extension GColor {
|
|||||||
self.init(hexString: "#007aff")
|
self.init(hexString: "#007aff")
|
||||||
return
|
return
|
||||||
case "golden":
|
case "golden":
|
||||||
self.init(hexString: "#ff9500")
|
self.init(hexString: "#ffcc00")
|
||||||
return
|
return
|
||||||
case "yellow":
|
case "yellow":
|
||||||
self.init(hexString: "#ffcc00")
|
self.init(hexString: "#ffcc00")
|
||||||
return
|
return
|
||||||
case "lightgreen":
|
case "lightgreen":
|
||||||
self.init(hexString: "#8fcf39")
|
self.init(hexString: "#7ED321")
|
||||||
return
|
return
|
||||||
case "lightblue":
|
case "lightblue":
|
||||||
self.init(hexString: "#5ac8fa")
|
self.init(hexString: "#5ac8fa")
|
||||||
@ -58,16 +57,19 @@ extension GColor {
|
|||||||
self.init(hexString: "#35afdc")
|
self.init(hexString: "#35afdc")
|
||||||
return
|
return
|
||||||
case "orange":
|
case "orange":
|
||||||
self.init(hexString: "#fd7a32")
|
self.init(hexString: "#ff9500")
|
||||||
return
|
return
|
||||||
case "violet":
|
case "violet":
|
||||||
self.init(hexString: "#9968f7")
|
self.init(hexString: "#af52de")
|
||||||
return
|
return
|
||||||
case "emerald":
|
case "emerald":
|
||||||
self.init(hexString: "#37cca3")
|
self.init(hexString: "#50e3c2")
|
||||||
return
|
return
|
||||||
case "pink":
|
case "pink":
|
||||||
self.init(hexString: "#ff4f79")
|
self.init(hexString: "#ff2d55")
|
||||||
|
return
|
||||||
|
case "indigo":
|
||||||
|
self.init(hexString: "#5e5ce6")
|
||||||
return
|
return
|
||||||
default:
|
default:
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user