Skip to content

Commit

Permalink
chore: ui thingys
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Jan 24, 2024
1 parent 2061080 commit 889061c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
36 changes: 14 additions & 22 deletions lib/packages/miniplayer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1495,29 +1495,21 @@ class _NamidaMiniPlayerState extends State<NamidaMiniPlayer> {
required QueueInsertionType insertionType,
required void Function(QueueInsertionType insertionType) onTap,
}) {
return Stack(
alignment: Alignment.centerRight,
children: [
Padding(
padding: const EdgeInsets.only(right: 24.0),
child: CustomListTile(
title: title,
subtitle: subtitle,
icon: icon,
maxSubtitleLines: 22,
onTap: () => onTap(insertionType),
),
),
Obx(
() => NamidaIconButton(
icon: Broken.setting_4,
onPressed: () => openQueueInsertionConfigure(insertionType, title),
).animateEntrance(
showWhen: shouldShowConfigureIcon.value,
durationMS: 200,
),
return CustomListTile(
title: title,
subtitle: subtitle,
icon: icon,
maxSubtitleLines: 22,
onTap: () => onTap(insertionType),
trailingRaw: Obx(
() => NamidaIconButton(
icon: Broken.setting_4,
onPressed: () => openQueueInsertionConfigure(insertionType, title),
).animateEntrance(
showWhen: shouldShowConfigureIcon.value,
durationMS: 200,
),
],
),
);
}

Expand Down
1 change: 1 addition & 0 deletions lib/ui/pages/tracks_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class _TracksPageState extends State<TracksPage> with TickerProviderStateMixin {
),
builder: (context, circleAvatar) {
final p = animation.value;
if (!animation2.isAnimating && p == 0) return const SizedBox();
const multiplier = 4.5;
const minus = multiplier / 3;
return Padding(
Expand Down
3 changes: 2 additions & 1 deletion lib/youtube/pages/yt_playlist_download_subpage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ class _YTPlaylistDownloadPageState extends State<YTPlaylistDownloadPage> {
title: widget.playlistName,
subtitle: "${_selectedList.length.formatDecimal()}/${widget.ids.length.formatDecimal()}",
visualDensity: VisualDensity.compact,
trailing: Row(
trailingRaw: Row(
mainAxisSize: MainAxisSize.min,
children: [
NamidaIconButton(
tooltip: lang.INVERT_SELECTION,
Expand Down

0 comments on commit 889061c

Please sign in to comment.