SPDX-License-Identifier: AGPL-3.0-or-later
This note describes how icons are wired in the + New menu and in pad sync actions.
img/etherpad-icon-black.svg- Admin settings (dark/monochrome icon)
img/etherpad-icon-color.svg- File list, template creator,
+ Newentries
- File list, template creator,
img/filetypes/etherpad-nextcloud-pad.svg- preferred Nextcloud mimetype icon source for MIME alias
etherpad-nextcloud-pad - kept identical to
img/etherpad-icon-color.svg
- preferred Nextcloud mimetype icon source for MIME alias
- File:
lib/Listeners/RegisterTemplateCreatorListener.php - Icon is set inline via
setIconSvgInline(...). - Source:
img/etherpad-icon-color.svg.
- File:
src/files/public-pad-menu.js - Entry is injected dynamically into the menu.
- Icon reuses the same file type class as
.pad:icon-filetype-etherpad-nextcloud-pad
- Filetype icon rendering is native Nextcloud (
core/img/filetypes/{alias}.svg). - Alias used by this app:
etherpad-nextcloud-pad. - App source icon:
img/filetypes/etherpad-nextcloud-pad.svg. RegisterMimeTyperepair step synchronizes this icon into core filetypes so native sizing/spacing matches other file types (for example.md).
Important after icon changes:
occ app:disable etherpad_nextcloud && occ app:enable etherpad_nextcloudocc maintenance:mimetype:update-jsocc maintenance:mimetype:update-db
- File:
src/viewer-main.js - Registers the native
.padviewer component and handles pad open/sync lifecycle. - Auto-sync runs every two minutes while the viewer is mounted and on
pagehide; there is no UI affordance for manual sync.