This commit is contained in:
the-djmaze
2024-03-17 15:49:36 +01:00
parent b99c405202
commit 2d1a760df3
41 changed files with 51 additions and 0 deletions

View File

@@ -420,6 +420,11 @@ export class MessageModel extends AbstractModel {
return this.viewBody(false);
}
swapColors() {
const cl = this.body?.classList;
cl && cl.toggle('swapColors');
}
/**
* @param {boolean=} print = false
*/

View File

@@ -331,6 +331,11 @@
padding: 10px;
position: relative;
&.swapColors {
background-color: var(--main-color, currentcolor);
color: var(--main-bg-color);
}
* {
box-sizing: unset;
/* unicode-bidi: plaintext;*/

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "إظهار المصدر",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": ".eml التنزيل كملف",
"MENU_FILTER_SIMILAR": "تصفية رسائل مثل هذه",
"MENU_PRINT": "طباعة",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Покажи източника",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Изтегли като .eml файл",
"MENU_FILTER_SIMILAR": "Филтрирай съобщения като това",
"MENU_PRINT": "Принтирай",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Zobrazit zdroj",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Stáhnout jako soubor .eml",
"MENU_FILTER_SIMILAR": "Filtrovat zprávy jako tato",
"MENU_PRINT": "Tisknout",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Vis kilder",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Hent som .eml fil",
"MENU_FILTER_SIMILAR": "Find lignende meddelelser",
"MENU_PRINT": "Udskriv",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Original anzeigen",
"HTML_VIEW": "Zeige Nachricht als HTML",
"PLAIN_VIEW": "Zeige Nachricht im Klartext",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Als .eml-Datei herunterladen",
"MENU_FILTER_SIMILAR": "Ähnliche Nachrichten",
"MENU_PRINT": "Drucken",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Εμφάνιση πηγαίου μηνύματος",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Μεταφόρτωση σαν αρχείο .eml",
"MENU_FILTER_SIMILAR": "Φιλτράρισμα μηνυμάτων όπως αυτό",
"MENU_PRINT": "Εκτύπωση",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Show Source",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Download as .eml file",
"MENU_FILTER_SIMILAR": "Filter messages like this",
"MENU_PRINT": "Print",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Show Source",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Download as .eml file",
"MENU_FILTER_SIMILAR": "Filter messages like this",
"MENU_PRINT": "Print",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Mostrar original",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Descargar como archivo .eml",
"MENU_FILTER_SIMILAR": "Filtrar mensajes como este",
"MENU_PRINT": "Imprimir",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Näita lähteteksti",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Laadi alla .eml failina",
"MENU_FILTER_SIMILAR": "Filtreeri sarnased kirjad",
"MENU_PRINT": "Prindi",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Erakutsi jatorrizkoa",
"HTML_VIEW": "Ikusi HTML mezua",
"PLAIN_VIEW": "Ikusi testu soil mezua",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Deskargatu .eml fitxategi bezala",
"MENU_FILTER_SIMILAR": "Iragazi hau bezalako mezuak",
"MENU_PRINT": "Inprimatu",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "نمایش منبع",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "دریافت با پسوند eml.",
"MENU_FILTER_SIMILAR": " فیلتر کردن پیام‌های مشابه",
"MENU_PRINT": "چاپ",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Näytä lähdekoodi",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Lataa .eml tiedostona",
"MENU_FILTER_SIMILAR": "Suodata samankaltaiset",
"MENU_PRINT": "Tulosta",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Voir la source",
"HTML_VIEW": "Afficher le message HTML",
"PLAIN_VIEW": "Afficher le message en texte brut",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Télécharger comme fichier .eml",
"MENU_FILTER_SIMILAR": "Filtrer les messages similaires",
"MENU_PRINT": "Imprimer",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Eredeti megjelenítése",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": ".eml fájl letöltés",
"MENU_FILTER_SIMILAR": "Hasonló üzenetek szűrése",
"MENU_PRINT": "Nyomtatás",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Tampilkan kode sumber",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Unduh sebagai berkas .eml",
"MENU_FILTER_SIMILAR": "Saring pesan seperti ini",
"MENU_PRINT": "Cetak",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Sýna upprunalegt",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Sækja sem .eml skrá",
"MENU_FILTER_SIMILAR": "Sía skilaboð eins og þessi",
"MENU_PRINT": "Prenta",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Visualizza sorgente",
"HTML_VIEW": "Visualizza messaggio in HTML",
"PLAIN_VIEW": "Visualizza in formato Testo",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Scarica come file .eml",
"MENU_FILTER_SIMILAR": "Mostra messaggi come questo",
"MENU_PRINT": "Stampa",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "メールのソースを表示",
"HTML_VIEW": "メッセージをHTMLで表示",
"PLAIN_VIEW": "メッセージをプレーンテキストで表示",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": ".emlファイルでダウンロード",
"MENU_FILTER_SIMILAR": "このようなメッセージをフィルタ",
"MENU_PRINT": "印刷",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "원본 보기",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": ".eml 파일로 다운로드",
"MENU_FILTER_SIMILAR": "이런 유형의 메시지에 필터 적용",
"MENU_PRINT": "인쇄",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Rodyti šaltinį",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Atsisiųsti .eml failą",
"MENU_FILTER_SIMILAR": "Filtruoti laiškus, kaip šis",
"MENU_PRINT": "Spausdinti",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Rādīt orģinālu",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Lejuplādēt kā .eml failu",
"MENU_FILTER_SIMILAR": "Atfiltrēt šādus ziņojumus",
"MENU_PRINT": "Printēt",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Vis original",
"HTML_VIEW": "Vis HTML-melding",
"PLAIN_VIEW": "Vis ren tekst",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Last ned som .eml-fil",
"MENU_FILTER_SIMILAR": "Filtrer slike meldinger",
"MENU_PRINT": "Skriv ut",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Toon origineel",
"HTML_VIEW": "Bekijk HTML bericht",
"PLAIN_VIEW": "Bekijk platte tekst bericht",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Download als .eml bestand",
"MENU_FILTER_SIMILAR": "Filter gelijksoortige berichten",
"MENU_PRINT": "Afdrukken",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Pokaż źródło",
"HTML_VIEW": "Wyświetl jako HTML",
"PLAIN_VIEW": "Wyświetl jako czysty tekst",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Pobierz jako plik .eml",
"MENU_FILTER_SIMILAR": "Filtruj podobne wiadomości",
"MENU_PRINT": "Drukuj",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Mostrar original",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Baixar como arquivo .eml",
"MENU_FILTER_SIMILAR": "Filtrar mensagens como esta",
"MENU_PRINT": "Imprimir",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Mostrar original",
"HTML_VIEW": "Ver mensagem em HTML",
"PLAIN_VIEW": "Ver mensagem em texto simples",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Transferir como ficheiro .eml",
"MENU_FILTER_SIMILAR": "Filtrar mensagens semelhantes a esta",
"MENU_PRINT": "Imprimir",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Mostrar original",
"HTML_VIEW": "Ver mensagem em HTML",
"PLAIN_VIEW": "Ver mensagem em texto simples",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Transferir como ficheiro .eml",
"MENU_FILTER_SIMILAR": "Filtrar mensagens semelhantes a esta",
"MENU_PRINT": "Imprimir",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Vezi originalul",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Descărcați ca fișier eml",
"MENU_FILTER_SIMILAR": "Filtrează similarele",
"MENU_PRINT": "Printează",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Просмотреть оригинал",
"HTML_VIEW": "Просмотр сообщения в HTML",
"PLAIN_VIEW": "Просмотр простого текстового сообщения",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Скачать как .eml файл",
"MENU_FILTER_SIMILAR": "Фильтровать похожие",
"MENU_PRINT": "Распечатать",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Zobraziť zdroj",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Prevziať ako súbor .eml",
"MENU_FILTER_SIMILAR": "Filtrovať správy ako táto",
"MENU_PRINT": "Tlačiť",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Pokaži izvorno",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Prenesi kot .eml datoteko",
"MENU_FILTER_SIMILAR": "Filtriraj sporočila, kot je to",
"MENU_PRINT": "Natisni",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Visa källa",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Ladda ner som .eml fil",
"MENU_FILTER_SIMILAR": "Filtrera meddelanden som detta",
"MENU_PRINT": "Skriv ut",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Kaynağı görüntüle",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": ".eml dosyası olarak indir",
"MENU_FILTER_SIMILAR": "Bunun gibi iletileri filtrele",
"MENU_PRINT": "yazdır",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Подивитися оригінал",
"HTML_VIEW": "View HTML message",
"PLAIN_VIEW": "View plain text message",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Завантажити як .eml файл",
"MENU_FILTER_SIMILAR": "Фільтрувати схожі",
"MENU_PRINT": "Надрукувати",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "Hiển thị nguồn",
"HTML_VIEW": "Xem thư dạng HTML",
"PLAIN_VIEW": "Xem thư dạng văn bản thuần",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "Tải xuống dưới dạng tập tin .eml",
"MENU_FILTER_SIMILAR": "Lọc ra những thư dạng này",
"MENU_PRINT": "In",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "显示原始内容",
"HTML_VIEW": "显示 HTML 消息",
"PLAIN_VIEW": "显示纯文本消息",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "下载为 .eml 文件",
"MENU_FILTER_SIMILAR": "筛选类似邮件",
"MENU_PRINT": "打印邮件",

View File

@@ -139,6 +139,7 @@
"MENU_VIEW_ORIGINAL": "顯示原始內容",
"HTML_VIEW": "檢視 HTML 郵件",
"PLAIN_VIEW": "檢視純文字郵件",
"SWAP_COLORS": "Swap default (background)-color",
"MENU_DOWNLOAD_ORIGINAL": "下載為 .eml 檔案",
"MENU_FILTER_SIMILAR": "篩選這類郵件",
"MENU_PRINT": "列印郵件",

View File

@@ -108,6 +108,9 @@
<li role="presentation" data-bind="visible: isHtml()">
<a href="#" tabindex="-1" data-bind="click: viewPlain" data-icon="👁" data-i18n="MESSAGE/PLAIN_VIEW"></a>
</li>
<li role="presentation">
<a href="#" tabindex="-1" data-bind="click: swapColors" data-icon="🎨" data-i18n="MESSAGE/SWAP_COLORS"></a>
</li>
<li class="dividerbar" role="presentation">
<a target="_blank" href="#" tabindex="-1" data-bind="attr: { href: viewRaw() }">
<i class="icon-file-code"></i>