mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
default language & white popup background fix
This commit is contained in:
@@ -27,15 +27,17 @@ class EncoreLabelHook: ClassHook<UIView> {
|
||||
}
|
||||
}
|
||||
|
||||
class SPTEncorePopUpDialogHook: ClassHook<NSObject> {
|
||||
class SPTEncorePopUpContainerHook: ClassHook<UIViewController> {
|
||||
|
||||
typealias Group = DarkPopUps
|
||||
static let targetName = "SPTEncorePopUpDialog"
|
||||
|
||||
func uiView() -> UIView {
|
||||
let view = orig.uiView()
|
||||
view.backgroundColor = UIColor(Color(hex: "#242424"))
|
||||
|
||||
return view
|
||||
static let targetName = "SPTEncorePopUpContainer"
|
||||
|
||||
func containedView() -> SPTEncorePopUpDialog {
|
||||
return orig.containedView()
|
||||
}
|
||||
|
||||
func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
|
||||
containedView().uiView().backgroundColor = UIColor(Color(hex: "#242424"))
|
||||
return orig.supportedInterfaceOrientations()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,10 @@ extension UserDefaults {
|
||||
return lyricsOptions
|
||||
}
|
||||
|
||||
return LyricsOptions(romanization: false, musixmatchLanguage: "")
|
||||
return LyricsOptions(
|
||||
romanization: false,
|
||||
musixmatchLanguage: Locale.current.languageCode ?? ""
|
||||
)
|
||||
}
|
||||
set (lyricsOptions) {
|
||||
defaults.set(try! JSONEncoder().encode(lyricsOptions), forKey: lyricsOptionsKey)
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
@objc protocol SPTEncorePopUpDialog {
|
||||
func `init`() -> SPTEncorePopUpDialog
|
||||
func uiView() -> UIView
|
||||
func update(_ popUpModel: SPTEncorePopUpDialogModel)
|
||||
func setEventHandler(_ handler: @escaping (_ state: ClickState) -> Void)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user