Skip to content

Commit

Permalink
chore: ui tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Jan 29, 2024
1 parent 1f10167 commit 8cf0ed6
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 deletions.
3 changes: 2 additions & 1 deletion lib/controller/player_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ class Player {
insertionType?.shuffleOrSortYT(finalVideos);

if (showSnackBar && finalVideos.isEmpty) {
snackyy(title: lang.NOTE, message: emptyTracksMessage ?? lang.NO_TRACKS_FOUND);
snackyy(title: lang.NOTE, message: emptyTracksMessage ?? lang.NO_TRACKS_FOUND, top: false);
return false;
}
await _audioHandler.addToQueue(
Expand All @@ -274,6 +274,7 @@ class Player {
snackyy(
icon: shouldInsertNext ? Broken.redo : Broken.add_circle,
message: '${addins.capitalizeFirst} ${finalVideos.length.displayVideoKeyword}',
top: false,
);
}
return true;
Expand Down
3 changes: 2 additions & 1 deletion lib/ui/pages/folders_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class FoldersPage extends StatelessWidget {
title: Folders.inst.currentFolder.value?.path.formatPath() ?? lang.HOME,
titleStyle: context.textTheme.displaySmall,
onTap: () => Folders.inst.stepOut(),
trailing: Row(
trailingRaw: Row(
mainAxisSize: MainAxisSize.min,
children: [
Obx(
() {
Expand Down
6 changes: 3 additions & 3 deletions lib/ui/widgets/custom_widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ class CustomListTile extends StatelessWidget {
final String title;
final String? subtitle;
final Widget? trailing;
final Widget? trailingRaw;
final String? trailingText;
final IconData? icon;
final Widget? leading;
Expand All @@ -237,7 +238,6 @@ class CustomListTile extends StatelessWidget {
final bool enabled;
final bool largeTitle;
final int maxSubtitleLines;
final Widget? trailingRaw;
final VisualDensity? visualDensity;
final TextStyle? titleStyle;
final double borderR;
Expand All @@ -248,16 +248,16 @@ class CustomListTile extends StatelessWidget {
required this.title,
this.subtitle,
this.trailing,
this.trailingRaw,
this.trailingText,
this.onTap,
this.leading,
this.icon,
this.passedColor,
this.rotateIcon,
this.trailingText,
this.enabled = true,
this.largeTitle = false,
this.maxSubtitleLines = 8,
this.trailingRaw,
this.visualDensity,
this.titleStyle,
this.borderR = 20.0,
Expand Down
1 change: 1 addition & 0 deletions lib/ui/widgets/settings/playback_settings.dart
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ class PlaybackSettings extends SettingSubpageProvider {
},
),
const NamidaContainerDivider(margin: EdgeInsets.symmetric(horizontal: 16.0)),
const SizedBox(height: 6.0),
Obx(
() {
final valInSet = settings.interruptionResumeThresholdMin.value;
Expand Down
11 changes: 6 additions & 5 deletions lib/ui/widgets/video_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -313,16 +313,17 @@ class NamidaVideoControlsState extends State<NamidaVideoControls> with TickerPro
};
const color = Color.fromRGBO(222, 222, 222, 0.8);
const strokeWidth = 1.8;
const strokeColor = Color.fromRGBO(20, 20, 20, 1);
const strokeColor = Color.fromRGBO(20, 20, 20, 0.8);
const shadowBR = 5.0;
const outlineShadow = <Shadow>[
// bottomLeft
Shadow(offset: Offset(-strokeWidth, -strokeWidth), color: strokeColor, blurRadius: 4.0),
Shadow(offset: Offset(-strokeWidth, -strokeWidth), color: strokeColor, blurRadius: shadowBR),
// bottomRight
Shadow(offset: Offset(strokeWidth, -strokeWidth), color: strokeColor, blurRadius: 4.0),
Shadow(offset: Offset(strokeWidth, -strokeWidth), color: strokeColor, blurRadius: shadowBR),
// topRight
Shadow(offset: Offset(strokeWidth, strokeWidth), color: strokeColor, blurRadius: 4.0),
Shadow(offset: Offset(strokeWidth, strokeWidth), color: strokeColor, blurRadius: shadowBR),
// topLeft
Shadow(offset: Offset(-strokeWidth, strokeWidth), color: strokeColor, blurRadius: 4.0),
Shadow(offset: Offset(-strokeWidth, strokeWidth), color: strokeColor, blurRadius: shadowBR),
];
return Positioned(
right: isForward ? finalOffset : null,
Expand Down

0 comments on commit 8cf0ed6

Please sign in to comment.