aboutsummaryrefslogtreecommitdiffstats
path: root/core/src/icons.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/icons.js')
-rw-r--r--core/src/icons.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/icons.js b/core/src/icons.js
index 28a30a63c73..5845b01fea1 100644
--- a/core/src/icons.js
+++ b/core/src/icons.js
@@ -179,6 +179,10 @@ const iconsColor = {
path: path.join(__dirname, '../img', 'filetypes', 'text.svg'),
color: 'grey',
},
+ 'file-text': {
+ path: path.join(__dirname, '../img', 'filetypes', 'text.svg'),
+ color: 'black',
+ },
}
// use this to define aliases to existing icons
@@ -233,7 +237,7 @@ const colorSvg = function(svg = '', color = '000') {
}
// add fill (fill is not present on black elements)
- const fillRe = /<((circle|rect|path)((?!fill)[a-z0-9 =".\-#():;,])+)\/>/gmi
+ const fillRe = /<((circle|rect|path)((?!fill=)[a-z0-9 =".\-#():;,])+)\/>/gmi
svg = svg.replace(fillRe, '<$1 fill="#' + color + '"/>')
// replace any fill or stroke colors