iconse renamed and translate for context menu added
|
|
@ -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
|
- [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
|
- [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
|
- [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
|
||||||
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 740 B After Width: | Height: | Size: 740 B |
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
BIN
images/menu_translate.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
|
|
@ -1207,7 +1207,7 @@ switch (message.command) {
|
||||||
translationHeader.style.cssText = 'display: flex; align-items: center; gap: 8px; margin-bottom: 6px;';
|
translationHeader.style.cssText = 'display: flex; align-items: center; gap: 8px; margin-bottom: 6px;';
|
||||||
|
|
||||||
const translationIcon = document.createElement('img');
|
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);' : ''}`;
|
translationIcon.style.cssText = `height: 16px; width: 16px; flex-shrink: 0;${colors.isDark ? ' filter: invert(1);' : ''}`;
|
||||||
|
|
||||||
const translationTitleSpan = document.createElement('span');
|
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;`;
|
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');
|
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);' : ''}`;
|
genIcon.style.cssText = `height: 16px; width: 16px; flex-shrink: 0;${colors.isDark ? ' filter: invert(1);' : ''}`;
|
||||||
|
|
||||||
const genLoading = document.createElement('img');
|
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;`;
|
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');
|
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);' : ''}`;
|
triggerIcon.style.cssText = `height: 14px; width: 14px;${colors.isDark ? ' filter: invert(1);' : ''}`;
|
||||||
triggerBtn.appendChild(triggerIcon);
|
triggerBtn.appendChild(triggerIcon);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,10 +29,10 @@ export const contextMenuID_Spamfilter = 'mzta-spamfilter';
|
||||||
export const contextMenuID_Summarize = 'mzta-summarize';
|
export const contextMenuID_Summarize = 'mzta-summarize';
|
||||||
export const contextMenuID_Translate = 'mzta-translate';
|
export const contextMenuID_Translate = 'mzta-translate';
|
||||||
export const contextMenuIconsPath = {
|
export const contextMenuIconsPath = {
|
||||||
[contextMenuID_AddTags]: 'moz-extension:images/autotags.png',
|
[contextMenuID_AddTags]: 'moz-extension:images/menu_autotags.png',
|
||||||
[contextMenuID_Spamfilter]: 'moz-extension:images/spamfilter.png',
|
[contextMenuID_Spamfilter]: 'moz-extension:images/menu_spamfilter.png',
|
||||||
[contextMenuID_Summarize]: 'moz-extension:images/summarize.png',
|
[contextMenuID_Summarize]: 'moz-extension:images/menu_summarize.png',
|
||||||
[contextMenuID_Translate]: 'moz-extension:images/ai_translation.png',
|
[contextMenuID_Translate]: 'moz-extension:images/menu_translate.png',
|
||||||
};
|
};
|
||||||
|
|
||||||
export function getLanguageDisplayName(languageCode) {
|
export function getLanguageDisplayName(languageCode) {
|
||||||
|
|
|
||||||