diff --git a/src/widgets/calendar/CalendarDay.tsx b/src/widgets/calendar/CalendarDay.tsx index 86887e03a..7124e40e7 100644 --- a/src/widgets/calendar/CalendarDay.tsx +++ b/src/widgets/calendar/CalendarDay.tsx @@ -1,4 +1,4 @@ -import { Box, Indicator, IndicatorProps, Popover } from '@mantine/core'; +import { ActionIcon, Box, Button, Indicator, IndicatorProps, Popover } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { isToday } from '../../tools/shared/time/date.tool'; import { MediaList } from './MediaList'; @@ -70,7 +70,7 @@ const DayIndicator = ({ color, medias, children, position }: DayIndicatorProps) if (medias.length === 0) return children; return ( - + {children} ); diff --git a/src/widgets/calendar/CalendarTile.tsx b/src/widgets/calendar/CalendarTile.tsx index 1d0008f04..e1cac7830 100644 --- a/src/widgets/calendar/CalendarTile.tsx +++ b/src/widgets/calendar/CalendarTile.tsx @@ -9,6 +9,7 @@ import { defineWidget } from '../helper'; import { IWidget } from '../widgets'; import { CalendarDay } from './CalendarDay'; import { MediasType } from './type'; +import { useColorTheme } from '../../tools/color'; const definition = defineWidget({ id: 'calendar', @@ -50,6 +51,7 @@ interface CalendarTileProps { function CalendarTile({ widget }: CalendarTileProps) { const { name: configName } = useConfigContext(); const [month, setMonth] = useState(new Date()); + const { secondaryColor } = useColorTheme(); const { data: medias } = useQuery({ queryKey: ['calendar/medias', { month: month.getMonth(), year: month.getFullYear() }], @@ -65,42 +67,45 @@ function CalendarTile({ widget }: CalendarTileProps) { }); return ( - - ( - - )} - /> - + ( + + )} + /> ); }