Skip to content

Commit 7f470bd

Browse files
IONOS(frontend): add custom MDI icon mappings
Maps upstream icon names used in external-share to IONOS custom SVG variants from custom-npms/nc-mdi-svg, including a legacy "image-viewer" mapping. Backports: 261aa20 d35db04
1 parent e8edc44 commit 7f470bd

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

core/src/icons.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,26 @@ const icons = {
128128
'view-previous': path.join(__dirname, '../img', 'actions', 'arrow-left.svg'),
129129
}
130130

131+
const customIconPath = '../../custom-npms/nc-mdi-svg/dist/svg/'
132+
133+
icons.add = path.join(__dirname, customIconPath, 'plus.svg')
134+
icons.confirm = path.join(__dirname, customIconPath, 'arrow-right.svg')
135+
icons.rename = path.join(__dirname, customIconPath, 'pencil.svg')
136+
icons.external = path.join(__dirname, customIconPath, 'folder-move.svg')
137+
icons.download = path.join(__dirname, customIconPath, 'download.svg')
138+
icons.upload = path.join(__dirname, customIconPath, 'upload.svg')
139+
icons.delete = path.join(__dirname, customIconPath, 'trash-can.svg')
140+
icons.more = path.join(__dirname, customIconPath, 'dots-horizontal.svg')
141+
icons.public = path.join(__dirname, customIconPath, 'link.svg')
142+
icons.comment = path.join(__dirname, customIconPath, 'comment.svg')
143+
icons.home = path.join(__dirname, customIconPath, 'home.svg')
144+
icons.viewer = path.join(__dirname, customIconPath, 'eye.svg')
145+
icons['triangle-s'] = path.join(__dirname, customIconPath, 'chevron-down.svg')
146+
icons['triangle-n'] = path.join(__dirname, customIconPath, 'chevron-up.svg')
147+
icons['triangle-e'] = path.join(__dirname, customIconPath, 'chevron-right.svg')
148+
icons['toggle-pictures'] = path.join(__dirname, customIconPath, 'view-grid.svg')
149+
icons['toggle-filelist'] = path.join(__dirname, customIconPath, 'format-list-bulleted-square.svg')
150+
131151
const iconsColor = {
132152
'add-folder-description': {
133153
path: path.join(__dirname, '../img', 'actions', 'add-folder-description.svg'),
@@ -154,7 +174,7 @@ const iconsColor = {
154174
color: 'grey',
155175
},
156176
'delete-color': {
157-
path: path.join(__dirname, '../img', 'actions', 'delete.svg'),
177+
path: icons.delete,
158178
color: 'red',
159179
},
160180
'file': {

0 commit comments

Comments
 (0)