Skip to content

Commit

Permalink
Improve: Use heart icon instead of star icon
Browse files Browse the repository at this point in the history
  • Loading branch information
gokadzev committed May 31, 2024
1 parent 9bd12e0 commit 680180a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions lib/screens/now_playing_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -488,8 +488,8 @@ class NowPlayingPage extends StatelessWidget {
return IconButton.filledTonal(
icon: Icon(
value
? FluentIcons.star_24_filled
: FluentIcons.star_24_regular,
? FluentIcons.heart_24_filled
: FluentIcons.heart_24_regular,
color: _primaryColor,
),
iconSize: iconSize,
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/playlist_cube.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ class PlaylistCube extends StatelessWidget {
final bool? isAlbum;

final likeStatusToIconMapper = {
true: FluentIcons.star_24_filled,
false: FluentIcons.star_24_regular,
true: FluentIcons.heart_24_filled,
false: FluentIcons.heart_24_regular,
};

late final playlistLikeStatus =
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/song_bar.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ class SongBar extends StatelessWidget {
final bool showMusicDuration;

static const likeStatusToIconMapper = {
true: FluentIcons.star_24_filled,
false: FluentIcons.star_24_regular,
true: FluentIcons.heart_24_filled,
false: FluentIcons.heart_24_regular,
};

@override
Expand Down
4 changes: 2 additions & 2 deletions lib/widgets/song_cube.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class SongCube extends StatelessWidget {
final double size;

static const likeStatusToIconMapper = {
true: FluentIcons.star_24_filled,
false: FluentIcons.star_24_regular,
true: FluentIcons.heart_24_filled,
false: FluentIcons.heart_24_regular,
};

late final songLikeStatus =
Expand Down

0 comments on commit 680180a

Please sign in to comment.