diff --git a/src/components/AppShelf/AppShelfItem.tsx b/src/components/AppShelf/AppShelfItem.tsx index 6d1b83742..8ad389a19 100644 --- a/src/components/AppShelf/AppShelfItem.tsx +++ b/src/components/AppShelf/AppShelfItem.tsx @@ -1,4 +1,13 @@ -import { Text, Card, Anchor, AspectRatio, Image, Center, createStyles } from '@mantine/core'; +import { + Text, + Card, + Anchor, + AspectRatio, + Image, + Center, + createStyles, + useMantineColorScheme, +} from '@mantine/core'; import { motion } from 'framer-motion'; import { useState } from 'react'; import { useSortable } from '@dnd-kit/sortable'; @@ -26,10 +35,8 @@ export function SortableAppShelfItem(props: any) { const { attributes, listeners, setNodeRef, transform, transition } = useSortable({ id: props.id, }); - const { config } = useConfig(); const style = { - opacity: `${config.settings.appOpacity || 100}%`, transform: CSS.Transform.toString(transform), transition, }; @@ -44,6 +51,8 @@ export function SortableAppShelfItem(props: any) { export function AppShelfItem(props: any) { const { service }: { service: serviceItem } = props; const [hovering, setHovering] = useState(false); + const { config } = useConfig(); + const { colorScheme } = useMantineColorScheme(); const { classes } = useStyles(); return ( - +