mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-27 14:24:45 +08:00
Refactor color scheme handling to use a fixed 'dark' theme and implement SourceSelectionModal for source management in the player
This commit is contained in:
@@ -1,14 +1,5 @@
|
||||
import React from "react";
|
||||
import {
|
||||
Animated,
|
||||
Pressable,
|
||||
StyleSheet,
|
||||
StyleProp,
|
||||
ViewStyle,
|
||||
PressableProps,
|
||||
TextStyle,
|
||||
useColorScheme,
|
||||
} from "react-native";
|
||||
import { Animated, Pressable, StyleSheet, StyleProp, ViewStyle, PressableProps, TextStyle } from "react-native";
|
||||
import { ThemedText } from "./ThemedText";
|
||||
import { Colors } from "@/constants/Colors";
|
||||
import { useButtonAnimation } from "@/hooks/useButtonAnimation";
|
||||
@@ -31,7 +22,7 @@ export const StyledButton: React.FC<StyledButtonProps> = ({
|
||||
textStyle,
|
||||
...rest
|
||||
}) => {
|
||||
const colorScheme = useColorScheme() ?? "dark";
|
||||
const colorScheme = "dark";
|
||||
const colors = Colors[colorScheme];
|
||||
const [isFocused, setIsFocused] = React.useState(false);
|
||||
const animationStyle = useButtonAnimation(isFocused);
|
||||
|
||||
Reference in New Issue
Block a user