diff --git a/src/modules/reader/components/ReaderRGBAFilter.tsx b/src/modules/reader/components/ReaderRGBAFilter.tsx new file mode 100644 index 00000000..4c33b2f4 --- /dev/null +++ b/src/modules/reader/components/ReaderRGBAFilter.tsx @@ -0,0 +1,41 @@ +/* + * Copyright (C) Contributors to the Suwayomi project + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + */ + +import Box from '@mui/material/Box'; +import { ReaderService } from '@/modules/reader/services/ReaderService.ts'; +import { useNavBarContext } from '@/modules/navigation-bar/contexts/NavbarContext.tsx'; + +export const ReaderRGBAFilter = () => { + const { readerNavBarWidth } = useNavBarContext(); + const { + customFilter: { + rgba: { + value: { red, green, blue, alpha }, + enabled, + }, + }, + } = ReaderService.useSettings(); + + if (!enabled) { + return null; + } + + return ( + + ); +};