mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
improved settings design
This commit is contained in:
@@ -2,6 +2,7 @@ import type { LanguageCode } from "iso-639-1";
|
||||
import type { ContentCaption } from "subsrt-ts/dist/types/handler";
|
||||
import { useState } from "react";
|
||||
import { MaterialCommunityIcons, MaterialIcons } from "@expo/vector-icons";
|
||||
import { useToastController } from "@tamagui/toast";
|
||||
import { useMutation } from "@tanstack/react-query";
|
||||
import { parse } from "subsrt-ts";
|
||||
import { Spinner, useTheme, View } from "tamagui";
|
||||
@@ -34,6 +35,7 @@ const parseCaption = async (
|
||||
};
|
||||
|
||||
export const CaptionsSelector = () => {
|
||||
const toast = useToastController();
|
||||
const theme = useTheme();
|
||||
const [open, setOpen] = useState(false);
|
||||
const captions = usePlayerStore(
|
||||
@@ -94,6 +96,13 @@ export const CaptionsSelector = () => {
|
||||
color="$playerSettingsUnactiveText"
|
||||
fontWeight="bold"
|
||||
chromeless
|
||||
onPress={() => {
|
||||
toast.show("Work in progress", {
|
||||
burntOptions: { preset: "none" },
|
||||
native: true,
|
||||
duration: 500,
|
||||
});
|
||||
}}
|
||||
>
|
||||
Customize
|
||||
</MWButton>
|
||||
|
14
apps/expo/src/components/ui/Separator.tsx
Normal file
14
apps/expo/src/components/ui/Separator.tsx
Normal file
@@ -0,0 +1,14 @@
|
||||
import { Separator, styled } from "tamagui";
|
||||
|
||||
export const MWSeparator = styled(Separator, {
|
||||
variants: {
|
||||
type: {
|
||||
settings: {
|
||||
borderColor: "$shade300",
|
||||
},
|
||||
},
|
||||
},
|
||||
defaultVariants: {
|
||||
type: "settings",
|
||||
},
|
||||
});
|
Reference in New Issue
Block a user