hide deprecation notices, add shadow to alternate app icon picker, change tvos top shelf image

This commit is contained in:
Dominic Drees 2025-04-22 20:48:53 +02:00
parent 2bf3ad5cc3
commit 790e1f0814
6 changed files with 20 additions and 10 deletions

View file

@ -290,8 +290,10 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
self.watchNextButton.alpha = 1.0
self.view.layoutIfNeeded()
}
hiddenVolumeView.showsRouteButton = false
if #unavailable(iOS 15) {
hiddenVolumeView.showsRouteButton = false
}
hiddenVolumeView.isHidden = true
view.addSubview(hiddenVolumeView)
@ -968,7 +970,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
skipIntroButton.setTitleColor(.white, for: .normal)
skipIntroButton.layer.cornerRadius = 15
skipIntroButton.alpha = skipButtonBaseAlpha
skipIntroButton.contentEdgeInsets = UIEdgeInsets(top: 6, left: 10, bottom: 6, right: 10)
if #unavailable(iOS 15) {
skipIntroButton.contentEdgeInsets = UIEdgeInsets(top: 6, left: 10, bottom: 6, right: 10)
}
skipIntroButton.layer.shadowColor = UIColor.black.cgColor
skipIntroButton.layer.shadowOffset = CGSize(width: 0, height: 2)
skipIntroButton.layer.shadowOpacity = 0.6
@ -1001,7 +1007,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
skipOutroButton.setTitleColor(.white, for: .normal)
skipOutroButton.layer.cornerRadius = skipIntroButton.layer.cornerRadius
skipOutroButton.alpha = skipIntroButton.alpha
skipOutroButton.contentEdgeInsets = skipIntroButton.contentEdgeInsets
if #unavailable(iOS 15) {
skipOutroButton.contentEdgeInsets = skipIntroButton.contentEdgeInsets
}
skipOutroButton.layer.shadowColor = skipIntroButton.layer.shadowColor
skipOutroButton.layer.shadowOffset = skipIntroButton.layer.shadowOffset
skipOutroButton.layer.shadowOpacity = skipIntroButton.layer.shadowOpacity
@ -1173,9 +1183,11 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
skip85Button.setTitleColor(.white, for: .normal)
skip85Button.layer.cornerRadius = 21
skip85Button.alpha = 0.7
skip85Button.contentEdgeInsets = UIEdgeInsets(top: 6, left: 10, bottom: 6, right: 10)
if #unavailable(iOS 15) {
skip85Button.contentEdgeInsets = UIEdgeInsets(top: 6, left: 10, bottom: 6, right: 10)
}
skip85Button.layer.shadowColor = UIColor.black.cgColor
skip85Button.layer.shadowOffset = CGSize(width: 0, height: 2)
skip85Button.layer.shadowOpacity = 0.6
@ -1312,9 +1324,6 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
self.topSubtitleLabel.isHidden = true
}
let current = self.currentTimeVal
DispatchQueue.main.async {
if let currentItem = self.player.currentItem, currentItem.duration.seconds > 0 {
let progress = min(max(self.currentTimeVal / self.duration, 0), 1.0)

View file

@ -33,6 +33,7 @@ struct SettingsViewAlternateAppIconPicker: View {
.scaledToFit()
.frame(width: 60, height: 60)
.cornerRadius(10)
.shadow(radius: 6)
.padding()
.background(
currentAppIcon == icon.name ? Color.accentColor.opacity(0.3) : Color.clear

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 795 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 651 KiB

After

Width:  |  Height:  |  Size: 1 MiB