fix popups

This commit is contained in:
eevee
2024-05-24 22:06:00 +03:00
parent 29226870bb
commit 31ecb4d794
+7 -6
View File
@@ -26,16 +26,17 @@ class EncoreLabelHook: ClassHook<UIView> {
}
}
class SPTEncorePopUpDialogHook: ClassHook<NSObject> {
class SPTEncorePopUpDialogHook: ClassHook<UIView> {
typealias Group = DarkPopUps
static let targetName = "SPTEncorePopUpDialog"
static let targetName = "_TtCO12EncoreMobile5ViewsP33_5A611B064D744992F9E8B522D8DE459B10ScrollView"
func uiView() -> UIView {
func intrinsicContentSize() -> CGSize {
let view = orig.uiView()
view.backgroundColor = UIColor(Color(hex: "#242424"))
if target.accessibilityIdentifier == "PopUp.Dialog" {
target.backgroundColor = UIColor(Color(hex: "#242424"))
}
return view
return orig.intrinsicContentSize()
}
}