From be56ad44773ebcd14777d80b61e26875698dc18a Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 24 Nov 2022 10:53:35 +0600 Subject: [PATCH] fix: search field ios dark icon , lyrics tabbar ios background color --- lib/components/Lyrics/Lyrics.dart | 16 +++++++++++++--- lib/components/Player/PlayerView.dart | 7 ++++++- lib/components/Search/Search.dart | 4 ++++ lib/themes/dark-theme.dart | 3 +++ lib/themes/light-theme.dart | 4 +++- 5 files changed, 29 insertions(+), 5 deletions(-) diff --git a/lib/components/Lyrics/Lyrics.dart b/lib/components/Lyrics/Lyrics.dart index 99b1509a0..0a344a98d 100644 --- a/lib/components/Lyrics/Lyrics.dart +++ b/lib/components/Lyrics/Lyrics.dart @@ -46,16 +46,26 @@ class Lyrics extends HookConsumerWidget { extendBodyBehindAppBar: true, appBar: !kIsMacOS ? PageWindowTitleBar( - backgroundColor: Colors.transparent, toolbarOpacity: 0, + backgroundColor: Colors.transparent, center: PlatformTabBar( isNavigational: PlatformProperty.only(linux: true, other: false), selectedIndex: index.value, onSelectedIndexChanged: (value) => index.value = value, + backgroundColor: + PlatformTheme.of(context).scaffoldBackgroundColor, tabs: [ - PlatformTab(label: "Synced", icon: const SizedBox.shrink()), - PlatformTab(label: "Genius", icon: const SizedBox.shrink()), + PlatformTab( + label: "Synced", + icon: const SizedBox.shrink(), + color: PlatformTextTheme.of(context).caption?.color, + ), + PlatformTab( + label: "Genius", + icon: const SizedBox.shrink(), + color: PlatformTextTheme.of(context).caption?.color, + ), ], ), ) diff --git a/lib/components/Player/PlayerView.dart b/lib/components/Player/PlayerView.dart index 624296eab..6075f8f7b 100644 --- a/lib/components/Player/PlayerView.dart +++ b/lib/components/Player/PlayerView.dart @@ -63,7 +63,12 @@ class PlayerView extends HookConsumerWidget { backgroundColor: Colors.transparent, foregroundColor: paletteColor.titleTextColor, toolbarOpacity: 0, - automaticallyImplyLeading: true, + leading: PlatformBackButton( + color: PlatformProperty.only( + macos: Colors.transparent, + other: paletteColor.titleTextColor, + ).resolve(platform!), + ), ), extendBodyBehindAppBar: true, body: Container( diff --git a/lib/components/Search/Search.dart b/lib/components/Search/Search.dart index 81be822b6..e5e12db27 100644 --- a/lib/components/Search/Search.dart +++ b/lib/components/Search/Search.dart @@ -89,6 +89,10 @@ class Search extends HookConsumerWidget { ref.read(searchTermStateProvider.notifier).state = value; }, prefixIcon: Icons.search_rounded, + prefixIconColor: PlatformProperty.only( + ios: PlatformTheme.of(context).textTheme?.caption?.color, + other: null, + ).resolve(platform!), placeholder: "Search...", onSubmitted: (value) { onSearch(); diff --git a/lib/themes/dark-theme.dart b/lib/themes/dark-theme.dart index c47abeac5..42acc42e1 100644 --- a/lib/themes/dark-theme.dart +++ b/lib/themes/dark-theme.dart @@ -89,5 +89,8 @@ ThemeData darkTheme({ unselectedLabelStyle: const TextStyle(fontWeight: FontWeight.w600, fontSize: 16), ), + appBarTheme: AppBarTheme( + backgroundColor: backgroundMaterialColor[900], + ), ); } diff --git a/lib/themes/light-theme.dart b/lib/themes/light-theme.dart index 8d19881e8..5503d5b4e 100644 --- a/lib/themes/light-theme.dart +++ b/lib/themes/light-theme.dart @@ -149,7 +149,9 @@ final macosDarkTheme = MacosThemeData.dark().copyWith( typography: MacosTypography(color: MacosColors.textColor), ); const iosTheme = CupertinoThemeData(brightness: Brightness.light); -const iosDarkTheme = CupertinoThemeData(brightness: Brightness.dark); +const iosDarkTheme = CupertinoThemeData( + brightness: Brightness.dark, +); final linuxTheme = AdwaitaThemeData.light().copyWith( listTileTheme: ListTileThemeData(