mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-07-09 03:04:20 -04:00
Fix scrubber popup theme
This commit is contained in:
parent
0cc6274894
commit
90498eb117
@ -178,7 +178,7 @@ export const ContrastArea = ({
|
||||
contrastText,
|
||||
}: {
|
||||
children: ReactNode | YoshikiFunc<ReactNode>;
|
||||
mode?: "light" | "dark" | "user";
|
||||
mode?: "light" | "dark" | "user" | "alternate";
|
||||
contrastText?: boolean;
|
||||
}) => {
|
||||
const oldTheme = useTheme();
|
||||
|
@ -19,6 +19,9 @@
|
||||
*/
|
||||
|
||||
import { Theme } from "yoshiki/native";
|
||||
import { Tooltip as RTooltip } from "react-tooltip";
|
||||
import { forwardRef } from "react";
|
||||
import { ContrastArea } from "./themes";
|
||||
|
||||
export const tooltip = (tooltip: string, up?: boolean) => ({
|
||||
dataSet: {
|
||||
@ -43,4 +46,10 @@ export const WebTooltip = ({ theme }: { theme: Theme }) => {
|
||||
);
|
||||
};
|
||||
|
||||
export { Tooltip } from "react-tooltip";
|
||||
export const Tooltip = forwardRef(function Tooltip(props, ref) {
|
||||
return (
|
||||
<ContrastArea mode="alternate">
|
||||
<RTooltip {...props} ref={ref} />
|
||||
</ContrastArea>
|
||||
);
|
||||
}) as typeof RTooltip;
|
||||
|
Loading…
x
Reference in New Issue
Block a user