From e7222246757182db47b7bdebe65d7133b7d37b41 Mon Sep 17 00:00:00 2001 From: Xavier Carron <33637571+xav-car@users.noreply.github.com> Date: Thu, 10 Oct 2024 09:05:06 +0200 Subject: [PATCH] chore(icons): add calendar icons --- addon/helpers/icons.js | 1 + public/svg/pix-sprite.svg | 2 +- svgs/icons/today_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24.svg | 1 + svgs/icons/today_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24.svg | 1 + svgs/rename-icon-id-in-sprite.sh | 1 - svgs/svgo.config.js | 6 ++++++ 6 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 svgs/icons/today_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24.svg create mode 100644 svgs/icons/today_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24.svg diff --git a/addon/helpers/icons.js b/addon/helpers/icons.js index a7fc5de07..aef52e9d2 100644 --- a/addon/helpers/icons.js +++ b/addon/helpers/icons.js @@ -10,6 +10,7 @@ export const ICONS = { book: { default: 'menu_book', plainIcon: 'menu_book_plainIcon' }, bookmark: { default: 'bookmark', plainIcon: 'bookmark_plainIcon' }, buildings: { default: 'location_city' }, + calendar: { default: 'today', plainIcon: 'today_plainIcon'}, campaign: { default: 'campaign', plainIcon: 'campaign_plainIcon' }, cancel: { default: 'cancel', plainIcon: 'cancel_plainIcon' }, check: { default: 'check' }, diff --git a/public/svg/pix-sprite.svg b/public/svg/pix-sprite.svg index 76f4376aa..4c871467f 100644 --- a/public/svg/pix-sprite.svg +++ b/public/svg/pix-sprite.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/svgs/icons/today_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24.svg b/svgs/icons/today_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24.svg new file mode 100644 index 000000000..92d95e7f5 --- /dev/null +++ b/svgs/icons/today_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/svgs/icons/today_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24.svg b/svgs/icons/today_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24.svg new file mode 100644 index 000000000..a77e87be8 --- /dev/null +++ b/svgs/icons/today_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/svgs/rename-icon-id-in-sprite.sh b/svgs/rename-icon-id-in-sprite.sh index d6b97a727..278116a7c 100644 --- a/svgs/rename-icon-id-in-sprite.sh +++ b/svgs/rename-icon-id-in-sprite.sh @@ -5,5 +5,4 @@ do echo "parsing file" $f sed -i '' -e 's/_24dp_E8EAED_FILL0_wght500_GRAD0_opsz24//g' "$f" sed -i '' -e 's/_24dp_E8EAED_FILL1_wght500_GRAD0_opsz24/_plainIcon/g' "$f" - sed -i '' -e 's/ fill="#e8eaed"//g' "$f" done diff --git a/svgs/svgo.config.js b/svgs/svgo.config.js index 7a68b2d98..66699ea28 100644 --- a/svgs/svgo.config.js +++ b/svgs/svgo.config.js @@ -13,5 +13,11 @@ module.exports = { }, }, }, + { + name: "removeAttrs", + params: { + attrs: "fill" + } + } ], };