fix(files): new folder icon color

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
pull/54039/head
skjnldsv 2025-07-17 09:50:40 +07:00 committed by backportbot[bot]
parent 99405662da
commit 2320432aeb
1 changed files with 4 additions and 1 deletions

@ -43,8 +43,11 @@ export const entry = {
id: 'newFolder',
displayName: t('files', 'New folder'),
enabled: (context: Folder) => Boolean(context.permissions & Permission.CREATE) && Boolean(context.permissions & Permission.READ),
iconSvgInline: FolderPlusSvg,
// Make the svg icon color match the primary element color
iconSvgInline: FolderPlusSvg.replace(/viewBox/gi, 'style="color: var(--color-primary-element)" viewBox'),
order: 0,
async handler(context: Folder, content: Node[]) {
const name = await newNodeName(t('files', 'New folder'), content)
if (name === null) {