mirror of
https://github.com/Finb/Bark.git
synced 2025-12-08 21:36:01 +00:00
修复折叠群组夜间模式显示问题
This commit is contained in:
parent
ca057fbf3a
commit
f38cf5b7d2
38
Bark/Assets.xcassets/Colors/black.colorset/Contents.json
Normal file
38
Bark/Assets.xcassets/Colors/black.colorset/Contents.json
Normal 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
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -34,6 +34,8 @@ class BKColor: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static let white = UIColor(named: "white")!
|
public static let white = UIColor(named: "white")!
|
||||||
|
|
||||||
|
public static let black = UIColor(named: "black")!
|
||||||
|
|
||||||
enum background {
|
enum background {
|
||||||
public static let primary = UIColor(named: "background")!
|
public static let primary = UIColor(named: "background")!
|
||||||
|
|||||||
@ -42,7 +42,7 @@ class MessageListViewController: BaseViewController<MessageListViewModel> {
|
|||||||
let btn = BKButton()
|
let btn = BKButton()
|
||||||
btn.setImage(UIImage(named: "group_expand")?.withRenderingMode(.alwaysTemplate), for: .normal)
|
btn.setImage(UIImage(named: "group_expand")?.withRenderingMode(.alwaysTemplate), for: .normal)
|
||||||
btn.setImage(UIImage(named: "group_collapse")?.withRenderingMode(.alwaysTemplate), for: .selected)
|
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)
|
btn.frame = CGRect(x: 0, y: 0, width: 40, height: 40)
|
||||||
return UIBarButtonItem(customView: btn)
|
return UIBarButtonItem(customView: btn)
|
||||||
}()
|
}()
|
||||||
|
|||||||
@ -19,7 +19,7 @@ class MessageItemView: UIView {
|
|||||||
let blackMaskView: UIView = {
|
let blackMaskView: UIView = {
|
||||||
let view = UIView()
|
let view = UIView()
|
||||||
view.layer.cornerRadius = 10
|
view.layer.cornerRadius = 10
|
||||||
view.backgroundColor = UIColor.black
|
view.backgroundColor = BKColor.black
|
||||||
view.isUserInteractionEnabled = false
|
view.isUserInteractionEnabled = false
|
||||||
view.alpha = 0
|
view.alpha = 0
|
||||||
return view
|
return view
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user