fix: color not syncing and add new screenshot

This commit is contained in:
Kingkor Roy Tirtho 2023-07-02 22:20:02 +06:00
parent 8563ef55a6
commit 62055018fe
7 changed files with 11 additions and 8 deletions

View File

@ -13,7 +13,7 @@
--- ---
<img src="assets/spotube-screenshot.jpg" alt="Spotube Desktop" width="500"> <img src="assets/mobile-screenshots/player-view.jpg" alt="Spotube Mobile" height="375"> <img src="assets/spotube-screenshot.png" alt="Spotube Desktop" width="700"> <img src="assets/mobile-screenshots/player-view.jpg" alt="Spotube Mobile" height="395">
</div> </div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 187 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 KiB

View File

@ -45,7 +45,7 @@ class Assets {
static const AssetGenImage spotubeLogoAndroid12 = static const AssetGenImage spotubeLogoAndroid12 =
AssetGenImage('assets/spotube-logo_android12.png'); AssetGenImage('assets/spotube-logo_android12.png');
static const AssetGenImage spotubeScreenshot = static const AssetGenImage spotubeScreenshot =
AssetGenImage('assets/spotube-screenshot.jpg'); AssetGenImage('assets/spotube-screenshot.png');
static const AssetGenImage spotubeBanner = static const AssetGenImage spotubeBanner =
AssetGenImage('assets/spotube_banner.png'); AssetGenImage('assets/spotube_banner.png');
static const AssetGenImage success = AssetGenImage('assets/success.png'); static const AssetGenImage success = AssetGenImage('assets/success.png');

View File

@ -90,9 +90,7 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
isFetchingSegments = false; isFetchingSegments = false;
if (preferences.albumColorSync) {
updatePalette(); updatePalette();
}
}); });
audioPlayer.shuffledStream.listen((event) { audioPlayer.shuffledStream.listen((event) {
@ -483,7 +481,12 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
await audioPlayer.stop(); await audioPlayer.stop();
} }
Future<void> updatePalette() { Future<void> updatePalette() async {
final palette = ref.read(paletteProvider);
if (!preferences.albumColorSync) {
if (palette != null) ref.read(paletteProvider.notifier).state = null;
return;
}
return Future.microtask(() async { return Future.microtask(() async {
final activeTrack = state.tracks.elementAtOrNull(state.active ?? 0); final activeTrack = state.tracks.elementAtOrNull(state.active ?? 0);

View File

@ -39,7 +39,7 @@
<screenshots> <screenshots>
<screenshot> <screenshot>
<image type="source"> <image type="source">
https://rawcdn.githack.com/KRTirtho/spotube/ebb00cdcb68c98ee785144568a5af1690ec7e6a3/assets/spotube-screenshot.jpg</image> https://rawcdn.githack.com/KRTirtho/spotube/ebb00cdcb68c98ee785144568a5af1690ec7e6a3/assets/spotube-screenshot.png</image>
</screenshot> </screenshot>
</screenshots> </screenshots>
<launchable type="desktop-id">com.github.KRTirtho.Spotube.desktop</launchable> <launchable type="desktop-id">com.github.KRTirtho.Spotube.desktop</launchable>

View File

@ -1,6 +1,6 @@
--- ---
title: Getting Started With Spotube title: Getting Started With Spotube
cover_image: https://github.com/KRTirtho/spotube/raw/master/assets/spotube-screenshot.jpg cover_image: https://github.com/KRTirtho/spotube/raw/master/assets/spotube-screenshot.png
date: "July 16, 2022" date: "July 16, 2022"
author: Kingkor Roy Tirtho author: Kingkor Roy Tirtho
author_avatar_url: https://avatars.githubusercontent.com/u/61944859?v=4 author_avatar_url: https://avatars.githubusercontent.com/u/61944859?v=4