Skip to content

Commit

Permalink
feat(mini_player): remove window shadow
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Apr 15, 2023
1 parent 471812d commit 6259014
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pages/lyrics/mini_lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import 'package:spotube/pages/lyrics/plain_lyrics.dart';
import 'package:spotube/pages/lyrics/synced_lyrics.dart';
import 'package:spotube/provider/authentication_provider.dart';
import 'package:spotube/provider/playlist_queue_provider.dart';
import 'package:spotube/utils/platform.dart';

class MiniLyricsPage extends HookConsumerWidget {
const MiniLyricsPage({Key? key}) : super(key: key);
Expand All @@ -32,6 +33,7 @@ class MiniLyricsPage extends HookConsumerWidget {
prevSize.value = await DesktopTools.window.getSize();
await DesktopTools.window.setMinimumSize(const Size(300, 300));
await DesktopTools.window.setAlwaysOnTop(true);
if (!kIsLinux) await DesktopTools.window.setHasShadow(false);
await DesktopTools.window.setSize(const Size(400, 500));
});
return null;
Expand Down Expand Up @@ -106,6 +108,9 @@ class MiniLyricsPage extends HookConsumerWidget {
await DesktopTools.window.setAlwaysOnTop(false);
await DesktopTools.window.setSize(prevSize.value!);
await DesktopTools.window.setAlignment(Alignment.center);
if (!kIsLinux) {
await DesktopTools.window.setHasShadow(true);
}
} finally {
if (context.mounted) GoRouter.of(context).go('/');
}
Expand Down

0 comments on commit 6259014

Please sign in to comment.