From b378375b19620138f37be7e45d98380a253add34 Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Fri, 4 Feb 2022 09:40:53 +0600 Subject: [PATCH] Macos global appmenu APP_NAME replaced with Spotube better placement guess for macos titlebar leading --- lib/components/Shared/PageWindowTitleBar.dart | 4 ++-- macos/Runner/Base.lproj/MainMenu.xib | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/components/Shared/PageWindowTitleBar.dart b/lib/components/Shared/PageWindowTitleBar.dart index b299da40..d4a35e28 100644 --- a/lib/components/Shared/PageWindowTitleBar.dart +++ b/lib/components/Shared/PageWindowTitleBar.dart @@ -60,8 +60,8 @@ class PageWindowTitleBar extends StatelessWidget child: Row( children: [ if (Platform.isMacOS) - const SizedBox( - width: 150, + SizedBox( + width: MediaQuery.of(context).size.width * 0.07, ), if (leading != null) leading!, Expanded(child: MoveWindow(child: Center(child: center))), diff --git a/macos/Runner/Base.lproj/MainMenu.xib b/macos/Runner/Base.lproj/MainMenu.xib index 537341ab..edf65f76 100644 --- a/macos/Runner/Base.lproj/MainMenu.xib +++ b/macos/Runner/Base.lproj/MainMenu.xib @@ -22,11 +22,11 @@ - + - + - + @@ -40,7 +40,7 @@ - + @@ -58,7 +58,7 @@ - + @@ -326,7 +326,7 @@ - +