From bbb2da52f46da4ff8883e65ad47828ea2c03d649 Mon Sep 17 00:00:00 2001
From: schroda <50052685+schroda@users.noreply.github.com>
Date: Sun, 20 Jul 2025 22:56:08 +0200
Subject: [PATCH] Change scanlator exclusion filter checked icon to "X"
---
.../chapter/components/ChapterExcludeSanlatorsFilter.tsx | 6 ++++++
.../core/components/settings/CheckboxListSetting.tsx | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx
index 1a86c960..8dece8a2 100644
--- a/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx
+++ b/src/modules/chapter/components/ChapterExcludeSanlatorsFilter.tsx
@@ -9,6 +9,7 @@
import { bindTrigger, usePopupState } from 'material-ui-popup-state/hooks';
import { useTranslation } from 'react-i18next';
import PeopleAltOutlinedIcon from '@mui/icons-material/PeopleAltOutlined';
+import DisabledByDefaultRounded from '@mui/icons-material/DisabledByDefaultRounded';
import { CheckboxListSetting } from '@/modules/core/components/settings/CheckboxListSetting.tsx';
import { updateChapterListOptions } from '@/modules/chapter/utils/ChapterList.util.tsx';
import { CheckboxInput } from '@/modules/core/components/inputs/CheckboxInput.tsx';
@@ -51,6 +52,11 @@ export const ChapterExcludeSanlatorsFilter = ({
getId={(scanlator) => scanlator}
getLabel={(scanlator) => scanlator}
isChecked={(scanlator) => excludedScanlators.includes(scanlator)}
+ slotProps={{
+ checkbox: {
+ checkedIcon: ,
+ },
+ }}
/>
>
);
diff --git a/src/modules/core/components/settings/CheckboxListSetting.tsx b/src/modules/core/components/settings/CheckboxListSetting.tsx
index 19f5f403..958ead02 100644
--- a/src/modules/core/components/settings/CheckboxListSetting.tsx
+++ b/src/modules/core/components/settings/CheckboxListSetting.tsx
@@ -15,6 +15,7 @@ import FormGroup from '@mui/material/FormGroup';
import { useTranslation } from 'react-i18next';
import Stack from '@mui/material/Stack';
import { useCallback, useMemo } from 'react';
+import { CheckboxProps } from '@mui/material/Checkbox';
import { CheckboxInput } from '@/modules/core/components/inputs/CheckboxInput.tsx';
import { useSelectableCollection } from '@/modules/collection/hooks/useSelectableCollection.ts';
@@ -27,6 +28,7 @@ export function CheckboxListSetting- ({
isChecked,
open,
onClose,
+ slotProps,
}: {
title: string;
emptyMessage?: string;
@@ -36,6 +38,9 @@ export function CheckboxListSetting
- ({
isChecked: (item: Item) => boolean;
open: boolean;
onClose: (selectedItems?: Item[]) => void;
+ slotProps?: {
+ checkbox?: Omit;
+ };
}) {
const { t } = useTranslation();
@@ -80,6 +85,7 @@ export function CheckboxListSetting
- ({
{items.length === 0 && {emptyMessage}}
{items.map((item) => (
handleSelection(getId(item), checked)}
label={getLabel(item)}