diff --git a/README.md b/README.md index dea7963d..ba125488 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ _The language status represents the percentage of translated strings in the late - [HideMau](https://www.flaticon.com/authors/hidemaru) for the ai summarize icon - [Hilmy Abiyyu A.](https://www.flaticon.com/authors/hilmy-abiyyu-a) for the ai translate and context menu icons - [bearicons](https://www.flaticon.com/authors/bearicons) for the empty context menu icon +- [meaicon](https://www.flaticon.com/authors/meaicon) for the add task context menu icon
diff --git a/images/context_menu/custom/apple.png b/images/context_menu/custom/apple.png deleted file mode 100644 index ec168226..00000000 Binary files a/images/context_menu/custom/apple.png and /dev/null differ diff --git a/images/context_menu/custom/coffee.png b/images/context_menu/custom/coffee.png deleted file mode 100644 index 3f1c2978..00000000 Binary files a/images/context_menu/custom/coffee.png and /dev/null differ diff --git a/images/context_menu/custom/idea.png b/images/context_menu/custom/idea.png new file mode 100644 index 00000000..84a43e13 Binary files /dev/null and b/images/context_menu/custom/idea.png differ diff --git a/images/context_menu/custom/profit.png b/images/context_menu/custom/profit.png new file mode 100644 index 00000000..e82ad7ba Binary files /dev/null and b/images/context_menu/custom/profit.png differ diff --git a/images/context_menu/custom/science.png b/images/context_menu/custom/science.png new file mode 100644 index 00000000..0a4c4b76 Binary files /dev/null and b/images/context_menu/custom/science.png differ diff --git a/images/context_menu/custom/send.png b/images/context_menu/custom/send.png deleted file mode 100644 index d6aefcd8..00000000 Binary files a/images/context_menu/custom/send.png and /dev/null differ diff --git a/images/context_menu/custom/start-up.png b/images/context_menu/custom/start-up.png new file mode 100644 index 00000000..4a86d4f4 Binary files /dev/null and b/images/context_menu/custom/start-up.png differ diff --git a/images/context_menu/custom/statistics.png b/images/context_menu/custom/statistics.png deleted file mode 100644 index 7e3f1c3f..00000000 Binary files a/images/context_menu/custom/statistics.png and /dev/null differ diff --git a/images/context_menu/getcalendarevent.png b/images/context_menu/getcalendarevent.png new file mode 100644 index 00000000..e29dd993 Binary files /dev/null and b/images/context_menu/getcalendarevent.png differ diff --git a/images/context_menu/getcalendareventfromclipboard.png b/images/context_menu/getcalendareventfromclipboard.png new file mode 100644 index 00000000..f5f73283 Binary files /dev/null and b/images/context_menu/getcalendareventfromclipboard.png differ diff --git a/images/context_menu/gettask.png b/images/context_menu/gettask.png new file mode 100644 index 00000000..0905dd77 Binary files /dev/null and b/images/context_menu/gettask.png differ diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 403a475f..261e5d06 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -30,11 +30,17 @@ const MICZ_IT_LOCALIZED_LANGS = ['es', 'de', 'fr', 'it']; export const getMenuContextCompose = () => 'compose_action_menu'; export const getMenuContextDisplay = () => 'message_display_action_menu'; +export const contextMenuID_GetCalendarEvent = 'mzta-get-calendar-event'; +export const contextMenuID_GetCalendarEventFromClipboard = 'mzta-get-calendar-event-from-clipboard'; +export const contextMenuID_GetTask = 'mzta-get-task'; export const contextMenuID_AddTags = 'mzta-add-tags'; export const contextMenuID_Spamfilter = 'mzta-spamfilter'; export const contextMenuID_Summarize = 'mzta-summarize'; export const contextMenuID_Translate = 'mzta-translate'; export const contextMenuIconsPath = { + [contextMenuID_GetCalendarEvent]: 'moz-extension:images/context_menu/getcalendarevent.png', + [contextMenuID_GetCalendarEventFromClipboard]: 'moz-extension:images/context_menu/getcalendareventfromclipboard.png', + [contextMenuID_GetTask]: 'moz-extension:images/context_menu/gettask.png', [contextMenuID_AddTags]: 'moz-extension:images/context_menu/autotags.png', [contextMenuID_Spamfilter]: 'moz-extension:images/context_menu/spamfilter.png', [contextMenuID_Summarize]: 'moz-extension:images/context_menu/summarize.png', @@ -43,6 +49,9 @@ export const contextMenuIconsPath = { // Map from special prompt IDs to context menu IDs export const specialPromptToContextMenuID = { + 'prompt_get_calendar_event': contextMenuID_GetCalendarEvent, + 'prompt_get_calendar_event_from_clipboard': contextMenuID_GetCalendarEventFromClipboard, + 'prompt_get_task': contextMenuID_GetTask, 'prompt_add_tags': contextMenuID_AddTags, 'prompt_spamfilter': contextMenuID_Spamfilter, 'prompt_summarize': contextMenuID_Summarize, diff --git a/pages/menu_order/mzta-custom-menu-icons.js b/pages/menu_order/mzta-custom-menu-icons.js index a161203d..58020141 100644 --- a/pages/menu_order/mzta-custom-menu-icons.js +++ b/pages/menu_order/mzta-custom-menu-icons.js @@ -22,12 +22,10 @@ export const customMenuIcons = [ 'adventure-game.png', 'airport.png', 'alert-sign.png', - 'apple.png', 'calendar.png', 'cash.png', 'clapboard.png', 'clock.png', - 'coffee.png', 'coins.png', 'copywriting.png', 'customer-service.png', @@ -39,6 +37,7 @@ export const customMenuIcons = [ 'express-delivery.png', 'flammable.png', 'home.png', + 'idea.png', 'info.png', 'invoice.png', 'justice-scale.png', @@ -46,14 +45,15 @@ export const customMenuIcons = [ 'love-letter.png', 'policeman.png', 'printer.png', + 'profit.png', 'puzzle-game.png', 'radiation-hazard.png', 'receipt.png', 'recycle-sign.png', + 'science.png', 'scissors.png', - 'send.png', 'star.png', - 'statistics.png', + 'start-up.png', 'sticky-notes.png', 'target.png', 'thermometer.png',