Update colors, icons, and fonts
This commit is contained in:
parent
28aed8247f
commit
c81c25bb85
225 changed files with 3080 additions and 4594 deletions
|
@ -36,6 +36,14 @@ exports.getAllDraftAttachments = async userDataPath => {
|
|||
return map(files, file => path.relative(dir, file));
|
||||
};
|
||||
|
||||
exports.getBuiltInImages = async () => {
|
||||
const dir = path.join(__dirname, '../images');
|
||||
const pattern = path.join(dir, '**', '*.svg');
|
||||
|
||||
const files = await pify(glob)(pattern, { nodir: true });
|
||||
return map(files, file => path.relative(dir, file));
|
||||
};
|
||||
|
||||
// getPath :: AbsolutePath -> AbsolutePath
|
||||
exports.getPath = userDataPath => {
|
||||
if (!isString(userDataPath)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue