修复折叠群组夜间模式显示问题

This commit is contained in:
Fin 2024-12-27 17:47:31 +08:00
parent ca057fbf3a
commit f38cf5b7d2
4 changed files with 42 additions and 2 deletions

View File

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

View File

@ -34,6 +34,8 @@ class BKColor: NSObject {
}
public static let white = UIColor(named: "white")!
public static let black = UIColor(named: "black")!
enum background {
public static let primary = UIColor(named: "background")!

View File

@ -42,7 +42,7 @@ class MessageListViewController: BaseViewController<MessageListViewModel> {
let btn = BKButton()
btn.setImage(UIImage(named: "group_expand")?.withRenderingMode(.alwaysTemplate), for: .normal)
btn.setImage(UIImage(named: "group_collapse")?.withRenderingMode(.alwaysTemplate), for: .selected)
btn.imageView?.tintColor = UIColor.black
btn.imageView?.tintColor = BKColor.black
btn.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
return UIBarButtonItem(customView: btn)
}()

View File

@ -19,7 +19,7 @@ class MessageItemView: UIView {
let blackMaskView: UIView = {
let view = UIView()
view.layer.cornerRadius = 10
view.backgroundColor = UIColor.black
view.backgroundColor = BKColor.black
view.isUserInteractionEnabled = false
view.alpha = 0
return view