Skip to content

A cross platform Audiobookshelf client for Android and iOS

Dart

Slim down the CarPlay playback buttons

Barnabas12cc93bc9ce4
diff --git a/ios/Runner/CarPlayNowPlaying.swift b/ios/Runner/CarPlayNowPlaying.swift
index f7e83a9d..64ea57e0 100644
--- a/ios/Runner/CarPlayNowPlaying.swift
+++ b/ios/Runner/CarPlayNowPlaying.swift
@@ -64,12 +64,11 @@ import UIKit
}
/// SF Symbols are template images, so CarPlay tints them to match the head
- /// unit theme automatically.
+ /// unit theme automatically. We deliberately pass NO size configuration so
+ /// CarPlay applies its own now-playing button metrics - forcing a large
+ /// point size is what made these icons look oversized and bulky.
private static func symbol(_ name: String) -> UIImage {
- let config = UIImage.SymbolConfiguration(pointSize: 36, weight: .medium)
- return UIImage(systemName: name, withConfiguration: config)
- ?? UIImage(systemName: name)
- ?? UIImage()
+ return UIImage(systemName: name) ?? UIImage()
}
/// Renders the current playback rate (e.g. "1.5x") into a template image so it
diff --git a/pubspec.yaml b/pubspec.yaml
index 71438069..e180b119 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,7 +1,7 @@
name: absorb
description: An Audiobookshelf Client
publish_to: 'none'
-version: 1.8.96+164
+version: 1.8.96+165
environment:
sdk: '>=3.1.0 <4.0.0'