improved settings design

This commit is contained in:
Jorrin
2024-04-02 17:25:24 +02:00
parent 9dc973dd38
commit 925b28019f
5 changed files with 173 additions and 33 deletions

View File

@@ -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>

View File

@@ -0,0 +1,14 @@
import { Separator, styled } from "tamagui";
export const MWSeparator = styled(Separator, {
variants: {
type: {
settings: {
borderColor: "$shade300",
},
},
},
defaultVariants: {
type: "settings",
},
});