Refactor color scheme handling to use a fixed 'dark' theme and implement SourceSelectionModal for source management in the player

This commit is contained in:
zimplexing
2025-07-08 20:57:38 +08:00
parent b238ffe3ba
commit 5043b33222
13 changed files with 224 additions and 94 deletions

View File

@@ -3,7 +3,7 @@ import { useFonts } from "expo-font";
import { Stack } from "expo-router";
import * as SplashScreen from "expo-splash-screen";
import { useEffect } from "react";
import { Platform, useColorScheme } from "react-native";
import { Platform } from "react-native";
import { useSettingsStore } from "@/stores/settingsStore";
@@ -11,7 +11,7 @@ import { useSettingsStore } from "@/stores/settingsStore";
SplashScreen.preventAutoHideAsync();
export default function RootLayout() {
const colorScheme = useColorScheme() ?? "dark";
const colorScheme = "dark";
const [loaded, error] = useFonts({
SpaceMono: require("../assets/fonts/SpaceMono-Regular.ttf"),
});