feat(note_icon): allow filtering default icons

This commit is contained in:
Elian Doran 2025-12-26 20:49:20 +02:00
parent db4af96040
commit c26357be40
No known key found for this signature in database
2 changed files with 6 additions and 1 deletions

View File

@ -767,7 +767,8 @@
"change_note_icon": "Change note icon",
"search": "Search:",
"reset-default": "Reset to default icon",
"filter-none": "All icons"
"filter-none": "All icons",
"filter-default": "Default icons"
},
"basic_properties": {
"note_type": "Note type",

View File

@ -138,6 +138,10 @@ function NoteIconList({ note }: { note: FNote }) {
checked={filterByPrefix === null}
onClick={() => setFilterByIconPack(null)}
>{t("note_icon.filter-none")}</FormListItem>
<FormListItem
checked={filterByPrefix === "bx"}
onClick={() => setFilterByIconPack("bx")}
>{t("note_icon.filter-default")}</FormListItem>
<FormDropdownDivider />
{glob.iconRegistry.sources.map(({ prefix, name }) => (