diff --git a/Sources/EeveeSpotify/DarkPopUps.x.swift b/Sources/EeveeSpotify/DarkPopUps.x.swift index d307522..ae44806 100644 --- a/Sources/EeveeSpotify/DarkPopUps.x.swift +++ b/Sources/EeveeSpotify/DarkPopUps.x.swift @@ -26,16 +26,17 @@ class EncoreLabelHook: ClassHook { } } -class SPTEncorePopUpDialogHook: ClassHook { +class SPTEncorePopUpDialogHook: ClassHook { 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() } }