From 0ea8c02202f6bb71abc03033a1f74ab3e8dec11a Mon Sep 17 00:00:00 2001 From: mic Date: Tue, 24 Mar 2026 23:22:53 +0100 Subject: [PATCH] summary branding added. see #580 --- _locales/en/messages.json | 4 ++++ js/mzta-compose-script.js | 11 ++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/_locales/en/messages.json b/_locales/en/messages.json index 82119473..51bb7091 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -2008,6 +2008,10 @@ "message": "Antispam by", "description": "" }, + "summary_by": { + "message": "Summary by", + "description": "" + }, "prefs_THStats_1": { "message": "Do you want beautiful statistics about your emails?", "description": "" diff --git a/js/mzta-compose-script.js b/js/mzta-compose-script.js index 7ef594d0..1295148f 100644 --- a/js/mzta-compose-script.js +++ b/js/mzta-compose-script.js @@ -878,8 +878,17 @@ switch (message.command) { } ], { bg: bgColorSummary, border: borderColorSummary, text: textColorSummary }); + const summaryBranding = document.createElement('span'); + summaryBranding.textContent = browser.i18n.getMessage("summary_by") + " ThunderAI"; + summaryBranding.style.cssText = 'font-style: italic; font-size: 10px; opacity: 0.5;'; + + const summaryRightGroup = document.createElement('span'); + summaryRightGroup.style.cssText = 'display: flex; align-items: center; gap: 5px;'; + summaryRightGroup.appendChild(summaryBranding); + summaryRightGroup.appendChild(summaryMenu); + summaryHeader.appendChild(summaryTitle); - summaryHeader.appendChild(summaryMenu); + summaryHeader.appendChild(summaryRightGroup); summaryContainer.appendChild(summaryHeader); const summaryText = document.createElement('div');