fix(mobile): remove mini player color separator
This commit is contained in:
1 file changed
+1
-15
@@ -1,7 +1,4 @@
|
|||||||
import {
|
import { useAndroidTabPalette } from "@/contexts/android-tab-theme"
|
||||||
useAndroidTabPalette,
|
|
||||||
useAndroidTabHasArtworkPalette,
|
|
||||||
} from "@/contexts/android-tab-theme"
|
|
||||||
import { Ionicons } from "@expo/vector-icons"
|
import { Ionicons } from "@expo/vector-icons"
|
||||||
import { NativeTabs } from "expo-router/native-tabs"
|
import { NativeTabs } from "expo-router/native-tabs"
|
||||||
import { useRouter } from "expo-router"
|
import { useRouter } from "expo-router"
|
||||||
@@ -166,20 +163,10 @@ function MiniPlayerContent({
|
|||||||
|
|
||||||
function MiniPlayerChrome({ children }: { children: React.ReactNode }) {
|
function MiniPlayerChrome({ children }: { children: React.ReactNode }) {
|
||||||
const palette = useAndroidTabPalette()
|
const palette = useAndroidTabPalette()
|
||||||
const hasArtworkPalette = useAndroidTabHasArtworkPalette()
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[styles.androidBar, { backgroundColor: palette.background }]}>
|
<View style={[styles.androidBar, { backgroundColor: palette.background }]}>
|
||||||
{children}
|
{children}
|
||||||
{hasArtworkPalette ? (
|
|
||||||
<View
|
|
||||||
style={[
|
|
||||||
styles.separator,
|
|
||||||
styles.topBorder,
|
|
||||||
{ backgroundColor: palette.secondaryForeground },
|
|
||||||
]}
|
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
<View
|
<View
|
||||||
style={[
|
style={[
|
||||||
styles.separator,
|
styles.separator,
|
||||||
@@ -267,7 +254,6 @@ const styles = StyleSheet.create({
|
|||||||
height: 1,
|
height: 1,
|
||||||
zIndex: 1,
|
zIndex: 1,
|
||||||
},
|
},
|
||||||
topBorder: { top: 0 },
|
|
||||||
bottomBorder: { bottom: 0 },
|
bottomBorder: { bottom: 0 },
|
||||||
content: {
|
content: {
|
||||||
flexDirection: "row",
|
flexDirection: "row",
|
||||||
|
|||||||
Reference in new issue
Block a user