diff --git a/Sources/justMUSIC/lib/components/historic_component.dart b/Sources/justMUSIC/lib/components/historic_component.dart index 3f99346..a5d7146 100644 --- a/Sources/justMUSIC/lib/components/historic_component.dart +++ b/Sources/justMUSIC/lib/components/historic_component.dart @@ -65,13 +65,19 @@ class _HistoricComponentState extends State { ); } if (checkCapsule != null) { - return Container( + return Tooltip( + message: "${checkCapsule.item2.artists.first.name} - ${checkCapsule.item2.title}".length < 30? "${checkCapsule.item2.artists.first.name} - ${checkCapsule.item2.title}": "${checkCapsule.item2.artists.first.name} - ${checkCapsule.item2.title}".substring(0,30)+"...", + decoration: const BoxDecoration( + border: Border.fromBorderSide(BorderSide(color: Color(0xFF3A3A3A), width: 1)), + color: tooltipBackground, borderRadius: BorderRadius.all(Radius.circular(20)) + ), + child: Container( decoration: BoxDecoration( image: DecorationImage(image: NetworkImage((checkCapsule.item2.cover)!)), borderRadius: BorderRadius.circular(5)), height: 60, width: 60, - ); + )); } else { return Container( color: bgColor, diff --git a/Sources/justMUSIC/lib/values/constants.dart b/Sources/justMUSIC/lib/values/constants.dart index af24e9d..68a68b1 100644 --- a/Sources/justMUSIC/lib/values/constants.dart +++ b/Sources/justMUSIC/lib/values/constants.dart @@ -24,6 +24,7 @@ const searchBarColor = Color(0xFF161616); const postbutton = Color(0xFF1B1B1B); const fillButton = Color(0xFF633AF4); const selectedButton = Color(0xFF1F1B2E); +const tooltipBackground = Color(0xFF2D2D2D); // All constants important too us const defaultPadding = 30.0; diff --git a/Sources/justMUSIC/lib/view_model/MusicViewModel.dart b/Sources/justMUSIC/lib/view_model/MusicViewModel.dart index c3a1618..2d9db58 100644 --- a/Sources/justMUSIC/lib/view_model/MusicViewModel.dart +++ b/Sources/justMUSIC/lib/view_model/MusicViewModel.dart @@ -242,7 +242,6 @@ class MusicViewModel { for (var capsule in capsulesData) { var music = musics.firstWhere((music) => music.id == capsule.item2); - print(capsule.item1); capsules.add(Tuple2(capsule.item1, music)); } return capsules;