Skip to content

Commit

Permalink
fix: color not syncing and add new screenshot
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Jul 2, 2023
1 parent 8563ef5 commit 6205501
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

Expand Down
Binary file removed assets/spotube-screenshot.jpg
Binary file not shown.
Binary file added assets/spotube-screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/collections/assets.gen.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions lib/provider/proxy_playlist/proxy_playlist_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>

isFetchingSegments = false;

if (preferences.albumColorSync) {
updatePalette();
}
updatePalette();
});

audioPlayer.shuffledStream.listen((event) {
Expand Down Expand Up @@ -483,7 +481,12 @@ class ProxyPlaylistNotifier extends PersistedStateNotifier<ProxyPlaylist>
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 {
final activeTrack = state.tracks.elementAtOrNull(state.active ?? 0);

Expand Down
2 changes: 1 addition & 1 deletion linux/com.github.KRTirtho.Spotube.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<screenshots>
<screenshot>
<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>
</screenshots>
<launchable type="desktop-id">com.github.KRTirtho.Spotube.desktop</launchable>
Expand Down
2 changes: 1 addition & 1 deletion website/posts/getting-started-with-spotube.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
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"
author: Kingkor Roy Tirtho
author_avatar_url: https://avatars.githubusercontent.com/u/61944859?v=4
Expand Down

0 comments on commit 6205501

Please sign in to comment.