mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
fix: search field ios dark icon , lyrics tabbar ios background color
This commit is contained in:
parent
39a77945d1
commit
be56ad4477
@ -46,16 +46,26 @@ class Lyrics extends HookConsumerWidget {
|
|||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
appBar: !kIsMacOS
|
appBar: !kIsMacOS
|
||||||
? PageWindowTitleBar(
|
? PageWindowTitleBar(
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
toolbarOpacity: 0,
|
toolbarOpacity: 0,
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
center: PlatformTabBar(
|
center: PlatformTabBar(
|
||||||
isNavigational:
|
isNavigational:
|
||||||
PlatformProperty.only(linux: true, other: false),
|
PlatformProperty.only(linux: true, other: false),
|
||||||
selectedIndex: index.value,
|
selectedIndex: index.value,
|
||||||
onSelectedIndexChanged: (value) => index.value = value,
|
onSelectedIndexChanged: (value) => index.value = value,
|
||||||
|
backgroundColor:
|
||||||
|
PlatformTheme.of(context).scaffoldBackgroundColor,
|
||||||
tabs: [
|
tabs: [
|
||||||
PlatformTab(label: "Synced", icon: const SizedBox.shrink()),
|
PlatformTab(
|
||||||
PlatformTab(label: "Genius", icon: const SizedBox.shrink()),
|
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,
|
||||||
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -63,7 +63,12 @@ class PlayerView extends HookConsumerWidget {
|
|||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
foregroundColor: paletteColor.titleTextColor,
|
foregroundColor: paletteColor.titleTextColor,
|
||||||
toolbarOpacity: 0,
|
toolbarOpacity: 0,
|
||||||
automaticallyImplyLeading: true,
|
leading: PlatformBackButton(
|
||||||
|
color: PlatformProperty.only(
|
||||||
|
macos: Colors.transparent,
|
||||||
|
other: paletteColor.titleTextColor,
|
||||||
|
).resolve(platform!),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
extendBodyBehindAppBar: true,
|
extendBodyBehindAppBar: true,
|
||||||
body: Container(
|
body: Container(
|
||||||
|
@ -89,6 +89,10 @@ class Search extends HookConsumerWidget {
|
|||||||
ref.read(searchTermStateProvider.notifier).state = value;
|
ref.read(searchTermStateProvider.notifier).state = value;
|
||||||
},
|
},
|
||||||
prefixIcon: Icons.search_rounded,
|
prefixIcon: Icons.search_rounded,
|
||||||
|
prefixIconColor: PlatformProperty.only(
|
||||||
|
ios: PlatformTheme.of(context).textTheme?.caption?.color,
|
||||||
|
other: null,
|
||||||
|
).resolve(platform!),
|
||||||
placeholder: "Search...",
|
placeholder: "Search...",
|
||||||
onSubmitted: (value) {
|
onSubmitted: (value) {
|
||||||
onSearch();
|
onSearch();
|
||||||
|
@ -89,5 +89,8 @@ ThemeData darkTheme({
|
|||||||
unselectedLabelStyle:
|
unselectedLabelStyle:
|
||||||
const TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
|
const TextStyle(fontWeight: FontWeight.w600, fontSize: 16),
|
||||||
),
|
),
|
||||||
|
appBarTheme: AppBarTheme(
|
||||||
|
backgroundColor: backgroundMaterialColor[900],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,9 @@ final macosDarkTheme = MacosThemeData.dark().copyWith(
|
|||||||
typography: MacosTypography(color: MacosColors.textColor),
|
typography: MacosTypography(color: MacosColors.textColor),
|
||||||
);
|
);
|
||||||
const iosTheme = CupertinoThemeData(brightness: Brightness.light);
|
const iosTheme = CupertinoThemeData(brightness: Brightness.light);
|
||||||
const iosDarkTheme = CupertinoThemeData(brightness: Brightness.dark);
|
const iosDarkTheme = CupertinoThemeData(
|
||||||
|
brightness: Brightness.dark,
|
||||||
|
);
|
||||||
|
|
||||||
final linuxTheme = AdwaitaThemeData.light().copyWith(
|
final linuxTheme = AdwaitaThemeData.light().copyWith(
|
||||||
listTileTheme: ListTileThemeData(
|
listTileTheme: ListTileThemeData(
|
||||||
|
Loading…
Reference in New Issue
Block a user