tweak: update block action background colour

pull/656/head
ryanzhao 2 years ago
parent be69e9b7a1
commit 53d5c7fb3f

@ -648,7 +648,7 @@ final class HomeVC: BaseVC, UITableViewDataSource, UITableViewDelegate, NewConve
.retainUntilComplete()
}
}
block.backgroundColor = Colors.unimportant
block.backgroundColor = Colors.blockActionBackground
return [ delete, block, pin ]

@ -391,7 +391,7 @@ class MessageRequestsViewController: BaseVC, UITableViewDelegate, UITableViewDat
) { [weak self] _, _ in
self?.block(threadId)
}
block.backgroundColor = Colors.unimportant
block.backgroundColor = Colors.blockActionBackground
return [ delete, block ]

@ -49,4 +49,5 @@ public final class Colors : NSObject {
@objc public static var sessionMessageRequestsIcon: UIColor { UIColor(named: "session_message_requests_icon")! }
@objc public static var sessionMessageRequestsTitle: UIColor { UIColor(named: "session_message_requests_title")! }
@objc public static var sessionMessageRequestsInfoText: UIColor { UIColor(named: "session_message_requests_info_text")! }
@objc public static var blockActionBackground: UIColor { UIColor(named: "session_block_action_background")! }
}

@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2D",
"green" : "0x2D",
"red" : "0x2D"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0x2D",
"green" : "0x2D",
"red" : "0x2D"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -23,9 +23,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "28",
"green" : "28",
"red" : "28"
"blue" : "0x1C",
"green" : "0x1C",
"red" : "0x1C"
}
},
"idiom" : "universal"

@ -6,7 +6,7 @@
"components" : {
"alpha" : "1.000",
"blue" : "0x3A",
"green" : "0x45",
"green" : "0x3A",
"red" : "0xFF"
}
},

@ -23,9 +23,9 @@
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "22",
"green" : "22",
"red" : "22"
"blue" : "0x16",
"green" : "0x16",
"red" : "0x16"
}
},
"idiom" : "universal"

Loading…
Cancel
Save