From 894d3475dd153fb3f292193dcd04336a8fc220ba Mon Sep 17 00:00:00 2001 From: mic Date: Mon, 30 Mar 2026 23:07:53 +0200 Subject: [PATCH] iconse renamed and translate for context menu added --- README.md | 2 +- images/{ai_translation.png => ai_translate.png} | Bin images/{autotags.png => menu_autotags.png} | Bin images/{spamfilter.png => menu_spamfilter.png} | Bin images/{summarize.png => menu_summarize.png} | Bin images/menu_translate.png | Bin 0 -> 1201 bytes js/mzta-compose-script.js | 6 +++--- js/mzta-utils.js | 8 ++++---- 8 files changed, 8 insertions(+), 8 deletions(-) rename images/{ai_translation.png => ai_translate.png} (100%) rename images/{autotags.png => menu_autotags.png} (100%) rename images/{spamfilter.png => menu_spamfilter.png} (100%) rename images/{summarize.png => menu_summarize.png} (100%) create mode 100644 images/menu_translate.png diff --git a/README.md b/README.md index c252873c..f52bf24a 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ _The language status represents the percentage of translated strings in the late - [Icojam](https://www.iconarchive.com/artist/icojam.html) for the spam filter context menu icon - [Roundicons](https://www.flaticon.com/authors/roundicons) for the summarize context menu icon - [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 icon +- [Hilmy Abiyyu A.](https://www.flaticon.com/authors/hilmy-abiyyu-a) for the ai translate and context menu icons
diff --git a/images/ai_translation.png b/images/ai_translate.png similarity index 100% rename from images/ai_translation.png rename to images/ai_translate.png diff --git a/images/autotags.png b/images/menu_autotags.png similarity index 100% rename from images/autotags.png rename to images/menu_autotags.png diff --git a/images/spamfilter.png b/images/menu_spamfilter.png similarity index 100% rename from images/spamfilter.png rename to images/menu_spamfilter.png diff --git a/images/summarize.png b/images/menu_summarize.png similarity index 100% rename from images/summarize.png rename to images/menu_summarize.png diff --git a/images/menu_translate.png b/images/menu_translate.png new file mode 100644 index 0000000000000000000000000000000000000000..91abf898a457e40b6dea4b751bc447c7be0e2043 GIT binary patch literal 1201 zcmV;i1Wx;jP)o&+$;#U+FH|9GK-4l=2mk#-GKwOdh?DL@3`VL=l(oDNLAy&P+76heq{pk*-zbnd<~Iyxq_p`}H7 zAYuifYN*FqFxawn8-R48rR80#)w(DHvb#@B&&ZJUdOg!t8``9Xa5_CnLI`T!uf}3F z`z6ZF&&Ou7r7T9=+khe~vL|@Y?qFQgusiGkbbi-CozcjFPd@fbq{s?F2-$DK0tW7b zQwS!sNv5q{gTN|UJql?v8ngMWabCb!$k3BuqHZ%|w6-DFG`hV4cZlQ$c z#s=1?sm#hz8XRl5K9? zv<>=x_01U`3cE@nD-}Di1!gy)HmOa{Nxo^ZU@#aceW`3td~AG*xRtJNX$o}xAdk~wS8jW@I43v1KzcMSjd%9$#WFB}@z5b`Hful+M|)s@ z$J|)ihi(HQ&}D?2G~cz}SH2D?2TFmW%fDTvwQdY=M2&-`q9D zhQeexeHr54gXC4vzYiR-;EW93fM0~Gj1ApkrFSeV0oq@Ocmu491z7^^1-LTeGKCYA zVURR%tbrRN*nkmO_!s%YLl+0h&QC;&H@L)fifiUE5g@tGm0p2310;COS{no7X*lr% zGEfCrmY`2Wm`W!>JXklUBea7EQHw}i<%;QK?7*%Wvc)|8=3}k9`CG*>H3Vbf!>nk3 z4Z?Q=un#Z-fBXa8Md2|ugo%x*o>kfUUkT4K5gy8|FqKgt=KnCTjDYwX5EOF;qHdZ6 P00000NkvXXu0mjf5YQ$W literal 0 HcmV?d00001 diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index 58eecbbb..831e7654 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -1207,7 +1207,7 @@ switch (message.command) { translationHeader.style.cssText = 'display: flex; align-items: center; gap: 8px; margin-bottom: 6px;'; const translationIcon = document.createElement('img'); - translationIcon.src = browser.runtime.getURL("/images/ai_translation.png"); + translationIcon.src = browser.runtime.getURL("/images/ai_translate.png"); translationIcon.style.cssText = `height: 16px; width: 16px; flex-shrink: 0;${colors.isDark ? ' filter: invert(1);' : ''}`; const translationTitleSpan = document.createElement('span'); @@ -1324,7 +1324,7 @@ switch (message.command) { genContainer.style.cssText = `background-color: ${colors.translation.bg}; color: ${colors.translation.text}; padding: 0.5rem; border-radius: 4px; border: 1px solid ${colors.translation.border}; font-size: 14px; display: flex; align-items: center; gap: 10px;`; const genIcon = document.createElement('img'); - genIcon.src = browser.runtime.getURL("/images/ai_translation.png"); + genIcon.src = browser.runtime.getURL("/images/ai_translate.png"); genIcon.style.cssText = `height: 16px; width: 16px; flex-shrink: 0;${colors.isDark ? ' filter: invert(1);' : ''}`; const genLoading = document.createElement('img'); @@ -1352,7 +1352,7 @@ switch (message.command) { triggerBtn.style.cssText = `background-color: ${colors.translation.bg}; border: 1px solid ${colors.translation.border}; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 12px; font-style: italic; opacity: 0.7; transition: opacity 0.2s; color: ${colors.translation.text}; display: inline-flex; align-items: center; gap: 6px;`; const triggerIcon = document.createElement('img'); - triggerIcon.src = browser.runtime.getURL("/images/ai_translation.png"); + triggerIcon.src = browser.runtime.getURL("/images/ai_translate.png"); triggerIcon.style.cssText = `height: 14px; width: 14px;${colors.isDark ? ' filter: invert(1);' : ''}`; triggerBtn.appendChild(triggerIcon); diff --git a/js/mzta-utils.js b/js/mzta-utils.js index 74d62eb4..30139131 100644 --- a/js/mzta-utils.js +++ b/js/mzta-utils.js @@ -29,10 +29,10 @@ export const contextMenuID_Spamfilter = 'mzta-spamfilter'; export const contextMenuID_Summarize = 'mzta-summarize'; export const contextMenuID_Translate = 'mzta-translate'; export const contextMenuIconsPath = { - [contextMenuID_AddTags]: 'moz-extension:images/autotags.png', - [contextMenuID_Spamfilter]: 'moz-extension:images/spamfilter.png', - [contextMenuID_Summarize]: 'moz-extension:images/summarize.png', - [contextMenuID_Translate]: 'moz-extension:images/ai_translation.png', + [contextMenuID_AddTags]: 'moz-extension:images/menu_autotags.png', + [contextMenuID_Spamfilter]: 'moz-extension:images/menu_spamfilter.png', + [contextMenuID_Summarize]: 'moz-extension:images/menu_summarize.png', + [contextMenuID_Translate]: 'moz-extension:images/menu_translate.png', }; export function getLanguageDisplayName(languageCode) {