Skip to content

Commit

Permalink
fix: search field ios dark icon , lyrics tabbar ios background color
Browse files Browse the repository at this point in the history
  • Loading branch information
KRTirtho committed Nov 24, 2022
1 parent 39a7794 commit be56ad4
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
16 changes: 13 additions & 3 deletions lib/components/Lyrics/Lyrics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
],
),
)
Expand Down
7 changes: 6 additions & 1 deletion lib/components/Player/PlayerView.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 4 additions & 0 deletions lib/components/Search/Search.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions lib/themes/dark-theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,8 @@ ThemeData darkTheme({
unselectedLabelStyle:
const TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
),
appBarTheme: AppBarTheme(
backgroundColor: backgroundMaterialColor[900],
),
);
}
4 changes: 3 additions & 1 deletion lib/themes/light-theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit be56ad4

Please sign in to comment.