Commit 76138658 authored by CardBook's avatar CardBook

version 28.6

parent 45a122f3
......@@ -41,9 +41,9 @@ skin cardbook-config classic/1.0 chrome/skin/configuration/
skin cardbook-pref classic/1.0 chrome/skin/osversion/unix/ os=Linux
skin cardbook-pref classic/1.0 chrome/skin/osversion/windows/ os=WINNT
skin cardbook-pref classic/1.0 chrome/skin/osversion/mac/ os=Darwin
skin cardbook-pref classic/1.0 chrome/skin/osversion/unix61/ os=Linux appversion>=60.0
skin cardbook-pref classic/1.0 chrome/skin/osversion/windows61/ os=WINNT appversion>=60.0
skin cardbook-pref classic/1.0 chrome/skin/osversion/mac61/ os=Darwin appversion>=60.0
skin cardbook-pref classic/1.0 chrome/skin/osversion/unix60/ os=Linux appversion>=60.0
skin cardbook-pref classic/1.0 chrome/skin/osversion/windows60/ os=WINNT appversion>=60.0
skin cardbook-pref classic/1.0 chrome/skin/osversion/mac60/ os=Darwin appversion>=60.0
skin cardbook-toolbar classic/1.0 chrome/skin/osversion/unix/ os=Linux
skin cardbook-toolbar classic/1.0 chrome/skin/osversion/windows/ os=WINNT
......
......@@ -267,52 +267,72 @@ if ("undefined" == typeof(wdw_imageEdition)) {
copyImageCard: function () {
try {
// OK copy to image but not on Linux
var imgTools = Components.classes["@mozilla.org/image/tools;1"].getService(Components.interfaces.imgITools);
var myFileURISpec = document.getElementById('photolocalURITextBox').value;
var myExtension = cardbookUtils.getFileNameExtension(myFileURISpec);
var myFileURI = Services.io.newURI(myFileURISpec, null, null);
var imagedata = 'data:image/' + myExtension + ';base64,' + btoa(cardbookSynchronization.getFileBinary(myFileURI));
var io = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var channel = io.newChannel(imagedata, null, null);
var input = channel.open();
var imgTools = Components.classes["@mozilla.org/image/tools;1"].getService(Components.interfaces.imgITools);
var container = {};
// not known on Linux
if (!imgTools.decodeImageData) {
return;
// Thunderbird 52 and Linux
if (imgTools.decodeImageData) {
var myExtension = cardbookUtils.getFileNameExtension(myFileURISpec);
var imagedata = 'data:image/' + myExtension + ';base64,' + btoa(cardbookSynchronization.getFileBinary(myFileURI));
var io = Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService);
var channel = io.newChannel(imagedata, null, null);
var input = channel.open();
var container = {};
imgTools.decodeImageData(input, channel.contentType, container);
var wrapped = Components.classes["@mozilla.org/supports-interface-pointer;1"].createInstance(Components.interfaces.nsISupportsInterfacePointer);
wrapped.data = container.value;
var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
trans.addDataFlavor(channel.contentType);
trans.setTransferData(channel.contentType, wrapped, -1);
var clipid = Components.interfaces.nsIClipboard;
var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
clipboard.setData(trans, null, clipid.kGlobalClipboard);
// Thunderbird 60
} else if (imgTools.decodeImageFromArrayBuffer) {
var myChannel = Services.io.newChannelFromURI2(myFileURI,
null,
Services.scriptSecurityManager.getSystemPrincipal(),
null,
Components.interfaces.nsILoadInfo.SEC_REQUIRE_SAME_ORIGIN_DATA_INHERITS,
Components.interfaces.nsIContentPolicy.TYPE_OTHER);
NetUtil.asyncFetch(myChannel, function (inputStream, status) {
if (!Components.isSuccessCode(status)) {
return;
}
var octetArray = [];
var binaryIS = Components.classes["@mozilla.org/binaryinputstream;1"].createInstance(Components.interfaces.nsIBinaryInputStream);
binaryIS.setInputStream(inputStream);
octetArray = binaryIS.readByteArray(binaryIS.available());
var arrayBuffer = (new Int8Array(octetArray)).buffer;
var container = imgTools.decodeImageFromArrayBuffer(arrayBuffer, myChannel.contentType);
var wrapped = Components.classes["@mozilla.org/supports-interface-pointer;1"].createInstance(Components.interfaces.nsISupportsInterfacePointer);
wrapped.data = container;
var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
trans.addDataFlavor(myChannel.contentType);
trans.setTransferData(myChannel.contentType, wrapped, -1);
var clipid = Components.interfaces.nsIClipboard;
var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
clipboard.setData(trans, null, clipid.kGlobalClipboard);
});
}
imgTools.decodeImageData(input, channel.contentType, container);
var wrapped = Components.classes["@mozilla.org/supports-interface-pointer;1"].createInstance(Components.interfaces.nsISupportsInterfacePointer);
wrapped.data = container.value;
var trans = Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);
trans.addDataFlavor(channel.contentType);
trans.setTransferData(channel.contentType, wrapped, -1);
var clipid = Components.interfaces.nsIClipboard;
var clipboard = Components.classes["@mozilla.org/widget/clipboard;1"].getService(clipid);
clipboard.setData(trans, null, clipid.kGlobalClipboard);
}
catch (e) {
wdw_cardbooklog.updateStatusProgressInformation("wdw_imageEdition.copyImageCard error : " + e, "Error");
}
},
// OK copy to file but not on Linux
/*
copyImageLocationCard: function () {
try {
var myFileURISpec = document.getElementById('photolocalURITextBox').value;
var myExtension = cardbookUtils.getFileNameExtension(myFileURISpec);
var myFileURI = Services.io.newURI(myFileURISpec, null, null);
var myFile = myFileURI.QueryInterface(Components.interfaces.nsIFileURL).file;
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
var clipid = Components.interfaces.nsIClipboard;
var clipboard = Components.classes['@mozilla.org/widget/clipboard;1'].getService(clipid);
if (!clipboard)
return;
trans.addDataFlavor("application/x-moz-file");
trans.setTransferData("application/x-moz-file", myFile, 0);
clipboard.setData(trans, null, clipid.kGlobalClipboard);
*/
cardbookUtils.clipboardSet(myFile.path);
}
catch (e) {
wdw_cardbooklog.updateStatusProgressInformation("wdw_imageEdition.copyImageCard error : " + e, "Error");
wdw_cardbooklog.updateStatusProgressInformation("wdw_imageEdition.copyImageLocationCard error : " + e, "Error");
}
},
......
......@@ -430,10 +430,10 @@ if ("undefined" == typeof(cardbookSynchronization)) {
}
},
getFileBinary: function (afileURI) {
getFileBinary: function (aFileURI) {
var content = "";
var data = "";
var file = afileURI.QueryInterface(Components.interfaces.nsIFileURL).file;
var file = aFileURI.QueryInterface(Components.interfaces.nsIFileURL).file;
if (file.exists() && file.isReadable()) {
var fstream = Components.classes["@mozilla.org/network/file-input-stream;1"].createInstance(Components.interfaces.nsIFileInputStream);
......
......@@ -357,6 +357,7 @@
<menupopup id="imageCardContextMenu">
<menuitem id="saveImageCard" label="&saveImageCardLabel;" oncommand="wdw_imageEdition.saveImageCard();"/>
<menuitem id="copyImageCard" label="&copyImageCardLabel;" oncommand="wdw_imageEdition.copyImageCard();"/>
<menuitem id="copyImageLocationCard" label="&copyImageLocationCardLabel;" oncommand="wdw_imageEdition.copyImageLocationCard();"/>
</menupopup>
<menupopup id="listsContextMenu" onpopupshowing="wdw_cardbook.cardListContextShowing(event);">
......
......@@ -94,7 +94,7 @@ if ("undefined" == typeof(ovl_synchro)) {
prefs.setCharPref("accountsShown", "all");
prefs.setCharPref("accountShown", "");
prefs.setCharPref("uncategorizedCards", "");
prefs.setCharPref("addonVersion", "28.5");
prefs.setCharPref("addonVersion", "28.6");
},
lEventTimerSync : { notify: function(lTimerSync) {
......
<!ENTITY addImageCardFromFileLabel "Přidat obrázek ze souboru">
<!ENTITY pasteImageCardLabel "Vložit obrázek">
<!ENTITY saveImageCardLabel "Uložit obrázek">
<!ENTITY saveImageCardLabel "Uložit obrázek jako…">
<!ENTITY copyImageCardLabel "Kopírovat obrázek">
<!ENTITY copyImageLocationCardLabel "Kopírovat adresu obrázku">
<!ENTITY deleteImageCardLabel "Smazat obrázek">
<!ENTITY addImageCardFromFileLabel "Tilføj billede fra en fil">
<!ENTITY pasteImageCardLabel "Indsæt billede">
<!ENTITY saveImageCardLabel "Gem billede">
<!ENTITY saveImageCardLabel "Gem billede som…">
<!ENTITY copyImageCardLabel "Kopier billede">
<!ENTITY copyImageLocationCardLabel "Kopier billedadresse">
<!ENTITY deleteImageCardLabel "Slet billede">
<!ENTITY addImageCardFromFileLabel "Bild aus Datei hinzufügen">
<!ENTITY pasteImageCardLabel "Bild einfügen">
<!ENTITY saveImageCardLabel "Bild speichern">
<!ENTITY saveImageCardLabel "Bild speichern unter…">
<!ENTITY copyImageCardLabel "Bild kopieren">
<!ENTITY copyImageLocationCardLabel "Bildadresse kopieren">
<!ENTITY deleteImageCardLabel "Bild löschen">
<!ENTITY addImageCardFromFileLabel "Προσθήκη εικόνας από ένα αρχείο">
<!ENTITY pasteImageCardLabel "Επικόλληση εικόνας">
<!ENTITY saveImageCardLabel "Αποθήκευση εικόνας">
<!ENTITY saveImageCardLabel "Αποθήκευση εικόνας ως…">
<!ENTITY copyImageCardLabel "Αντιγραφή εικόνας">
<!ENTITY copyImageLocationCardLabel "Αντιγραφή τοποθεσίας εικόνας">
<!ENTITY deleteImageCardLabel "Διαγράψτε την εικόνα">
<!ENTITY addImageCardFromFileLabel "Add image from a file">
<!ENTITY pasteImageCardLabel "Paste Image">
<!ENTITY saveImageCardLabel "Save Image">
<!ENTITY saveImageCardLabel "Save Image As…">
<!ENTITY copyImageCardLabel "Copy Image">
<!ENTITY copyImageLocationCardLabel "Copy Image Location">
<!ENTITY deleteImageCardLabel "Delete Image">
<!ENTITY addImageCardFromFileLabel "Ajouter une image depuis un fichier">
<!ENTITY pasteImageCardLabel "Coller une image">
<!ENTITY saveImageCardLabel "Sauver l'image">
<!ENTITY saveImageCardLabel "Enregistrer l’image sous…">
<!ENTITY copyImageCardLabel "Copier l’image">
<!ENTITY copyImageLocationCardLabel "Copier l’adresse de l’image">
<!ENTITY deleteImageCardLabel "Supprimer l'image">
<!ENTITY addImageCardFromFileLabel "Dodaj sliku iz dosjea">
<!ENTITY pasteImageCardLabel "Zalijepite sliku">
<!ENTITY saveImageCardLabel "Sašuvaj sliku">
<!ENTITY saveImageCardLabel "Spremi sliku kao…">
<!ENTITY copyImageCardLabel "Kopiraj sliku">
<!ENTITY copyImageLocationCardLabel "Kopiraj lokaciju slike">
<!ENTITY deleteImageCardLabel "Izbriši sliku">
<!ENTITY addImageCardFromFileLabel "Kép hozzáadása fájlból">
<!ENTITY pasteImageCardLabel "Kép beillesztése">
<!ENTITY saveImageCardLabel "Kép mentése">
<!ENTITY saveImageCardLabel "Kép mentése más néven…">
<!ENTITY copyImageCardLabel "Kép másolása">
<!ENTITY copyImageLocationCardLabel "Kép címének másolása">
<!ENTITY deleteImageCardLabel "Kép törlése">
<!ENTITY addImageCardFromFileLabel "Tambahkan gambar dari sebuah file">
<!ENTITY pasteImageCardLabel "Tempel Gambar">
<!ENTITY saveImageCardLabel "Simpan Gambar">
<!ENTITY saveImageCardLabel "Simpan Gambar dengan Nama…">
<!ENTITY copyImageCardLabel "Salin Gambar">
<!ENTITY copyImageLocationCardLabel "Salin Lokasi Gambar">
<!ENTITY deleteImageCardLabel "Hapus Gambar">
<!ENTITY addImageCardFromFileLabel "Aggiungi immagine da file">
<!ENTITY pasteImageCardLabel "Incolla immagine">
<!ENTITY saveImageCardLabel "Salva immagine">
<!ENTITY saveImageCardLabel "Salva con nome…">
<!ENTITY copyImageCardLabel "Copia immagine">
<!ENTITY copyImageLocationCardLabel "Copia indirizzo immagine">
<!ENTITY deleteImageCardLabel "Elimina immagine">
<!ENTITY addImageCardFromFileLabel "ファイルからイメージを追加する">
<!ENTITY pasteImageCardLabel "画像を貼り付け">
<!ENTITY saveImageCardLabel "画像を保存">
<!ENTITY saveImageCardLabel "名前を付けて画像を保存…">
<!ENTITY copyImageCardLabel "画像をコピー">
<!ENTITY copyImageLocationCardLabel "画像の URL をコピー">
<!ENTITY deleteImageCardLabel "画像を削除する">
<!ENTITY addImageCardFromFileLabel "파일머지 연락처에서 이미지 추가">
<!ENTITY pasteImageCardLabel "이미지 붙여 넣기">
<!ENTITY saveImageCardLabel "이미지를 저장">
<!ENTITY saveImageCardLabel "다른 이름으로 이미지 저장…">
<!ENTITY copyImageCardLabel "이미지 복사">
<!ENTITY copyImageLocationCardLabel "이미지 주소 복사">
<!ENTITY deleteImageCardLabel "이미지 삭제">
<!ENTITY addImageCardFromFileLabel "Pridėti nuotrauką iš failo">
<!ENTITY pasteImageCardLabel "Įklijuoti paveikslėlį">
<!ENTITY saveImageCardLabel "Išsaugoti paveikslėlį">
<!ENTITY saveImageCardLabel "Įrašyti paveikslą kaip…">
<!ENTITY copyImageCardLabel "Kopijuoti paveikslą">
<!ENTITY copyImageLocationCardLabel "Kopijuoti paveikslo adresą">
<!ENTITY deleteImageCardLabel "Pašalinti vaizdą">
<!ENTITY addImageCardFromFileLabel "Afbeelding toevoegen uit bestand">
<!ENTITY pasteImageCardLabel "Afbeelding plakken">
<!ENTITY saveImageCardLabel "Afbeelding opslaan">
<!ENTITY saveImageCardLabel "Afbeelding opslaan als…">
<!ENTITY copyImageCardLabel "Afbeelding kopiëren">
<!ENTITY copyImageLocationCardLabel "Afbeeldingslocatie kopiëren">
<!ENTITY deleteImageCardLabel "Afbeelding verwijderen">
<!ENTITY addImageCardFromFileLabel "Dodaj obraz z pliku">
<!ENTITY pasteImageCardLabel "Wklej obraz">
<!ENTITY saveImageCardLabel "Zapisz obraz">
<!ENTITY saveImageCardLabel "Zapisz obraz jako…">
<!ENTITY copyImageCardLabel "Kopiuj obraz">
<!ENTITY copyImageLocationCardLabel "Kopiuj adres obrazu">
<!ENTITY deleteImageCardLabel "Usuń obraz">
<!ENTITY addImageCardFromFileLabel "Adicionar imagem de ficheiro">
<!ENTITY pasteImageCardLabel "Colar a Imagem">
<!ENTITY saveImageCardLabel "Guardar imagem">
<!ENTITY saveImageCardLabel "Guardar imagem como…">
<!ENTITY copyImageCardLabel "Copiar imagem">
<!ENTITY copyImageLocationCardLabel "Copiar ligação da imagem">
<!ENTITY deleteImageCardLabel "Apagar imagem">
<!ENTITY addImageCardFromFileLabel "Adăugați o imagine din fișier">
<!ENTITY pasteImageCardLabel "Lipiți imaginea">
<!ENTITY saveImageCardLabel "Salvează imaginea">
<!ENTITY saveImageCardLabel "Salvează imaginea ca…">
<!ENTITY copyImageCardLabel "Copiază imaginea">
<!ENTITY copyImageLocationCardLabel "Copiază locația imaginii">
<!ENTITY deleteImageCardLabel "Ștergeți imaginea">
<!ENTITY addImageCardFromFileLabel "Добавить изображение из файла">
<!ENTITY pasteImageCardLabel "Вставить изображение">
<!ENTITY saveImageCardLabel "Сохранить изображение">
<!ENTITY saveImageCardLabel "Сохранить изображение как…">
<!ENTITY copyImageCardLabel "Копировать изображение">
<!ENTITY copyImageLocationCardLabel "Копировать ссылку на изображение">
<!ENTITY deleteImageCardLabel "Удалить изображение">
<!ENTITY addImageCardFromFileLabel "Dodaj sliko iz datotke">
<!ENTITY pasteImageCardLabel "Prilepite sliko">
<!ENTITY saveImageCardLabel "Shrani sliko">
<!ENTITY saveImageCardLabel "Shrani sliko kot …">
<!ENTITY copyImageCardLabel "Kopiraj sliko">
<!ENTITY copyImageLocationCardLabel "Kopiraj mesto slike">
<!ENTITY deleteImageCardLabel "Izbriši sliko">
<!ENTITY addImageCardFromFileLabel "Lägg till bild från fil">
<!ENTITY pasteImageCardLabel "Klistra in bild">
<!ENTITY saveImageCardLabel "Spara bild">
<!ENTITY saveImageCardLabel "Spara bild som…">
<!ENTITY copyImageCardLabel "Kopiera bild">
<!ENTITY copyImageLocationCardLabel "Kopiera bildadress">
<!ENTITY deleteImageCardLabel "Ta bort bild">
<!ENTITY addImageCardFromFileLabel "Thêm ảnh từ Tập tin">
<!ENTITY pasteImageCardLabel "Dán Ảnh">
<!ENTITY saveImageCardLabel "Lưu Ảnh">
<!ENTITY saveImageCardLabel "Lưu Ảnh dưới dạng…">
<!ENTITY copyImageCardLabel "Sao chép Ảnh">
<!ENTITY copyImageLocationCardLabel "Sao chép địa chỉ Ảnh">
<!ENTITY deleteImageCardLabel "Xóa Ảnh">
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
</svg>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="m 10,1.4 v 3.7 c 3,1.6 2.4,4.4 0,5.8 L 8,9 v 6 h 5.7 L 12.1,13.4 C 16.6,11 16,2.2 10,1.4 Z M 6.2,5.2 8,7 V 1 H 2.2 L 3.8,2.5 C -1.4,5.7 1.3,13.4 6,14.6 V 11 C 3.1,9.2 3.3,6.3 6.2,5.2 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M14 1a1 1 0 0 0-1 1v1.146A6.948 6.948 0 0 0 1.227 6.307a1 1 0 1 0 1.94.484A4.983 4.983 0 0 1 8 3a4.919 4.919 0 0 1 3.967 2H10a1 1 0 0 0 0 2h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm.046 7.481a1 1 0 0 0-1.213.728A4.983 4.983 0 0 1 8 13a4.919 4.919 0 0 1-3.967-2H6a1 1 0 0 0 0-2H2a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-1.146a6.948 6.948 0 0 0 11.773-3.161 1 1 0 0 0-.727-1.212z"/>
</svg>
.cardbookPrefStarClass {
list-style-image: url("chrome://messenger/skin/starIcons.png");
-moz-image-region: rect(0, 16px, 16px, 0);
}
.cardbookPrefStarClass[haspref="true"] {
-moz-image-region: rect(16px, 16px, 32px, 0);
}
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
</svg>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="m 10,1.4 v 3.7 c 3,1.6 2.4,4.4 0,5.8 L 8,9 v 6 h 5.7 L 12.1,13.4 C 16.6,11 16,2.2 10,1.4 Z M 6.2,5.2 8,7 V 1 H 2.2 L 3.8,2.5 C -1.4,5.7 1.3,13.4 6,14.6 V 11 C 3.1,9.2 3.3,6.3 6.2,5.2 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M14 1a1 1 0 0 0-1 1v1.146A6.948 6.948 0 0 0 1.227 6.307a1 1 0 1 0 1.94.484A4.983 4.983 0 0 1 8 3a4.919 4.919 0 0 1 3.967 2H10a1 1 0 0 0 0 2h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm.046 7.481a1 1 0 0 0-1.213.728A4.983 4.983 0 0 1 8 13a4.919 4.919 0 0 1-3.967-2H6a1 1 0 0 0 0-2H2a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-1.146a6.948 6.948 0 0 0 11.773-3.161 1 1 0 0 0-.727-1.212z"/>
</svg>
.cardbookPrefStarClass {
list-style-image: url("chrome://messenger/skin/icons/star.svg");
-moz-context-properties: fill;
fill: currentColor;
}
.cardbookPrefStarClass[haspref="true"] {
list-style-image: url("chrome://messenger/skin/icons/starred.svg");
fill: var(--toolbarbutton-icon-fill-attention);
}
.cardbookPrefStarClass {
list-style-image: url("chrome://messenger/skin/starContact.png");
-moz-image-region: rect(0px, 16px, 16px, 0px);
}
.cardbookPrefStarClass[haspref="true"] {
list-style-image: url("chrome://messenger/skin/contactStarred.png");
}
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M 3.2,10 1.5,14.5 6,12.8 Z M 6.7,12 14.5,4.3 11.7,1.5 4,9.3 Z"/>
</svg>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<path fill="context-fill" fill-opacity="context-fill-opacity" d="m 10,1.4 v 3.7 c 3,1.6 2.4,4.4 0,5.8 L 8,9 v 6 h 5.7 L 12.1,13.4 C 16.6,11 16,2.2 10,1.4 Z M 6.2,5.2 8,7 V 1 H 2.2 L 3.8,2.5 C -1.4,5.7 1.3,13.4 6,14.6 V 11 C 3.1,9.2 3.3,6.3 6.2,5.2 Z"/>
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="context-fill" fill-opacity="context-fill-opacity">
<path d="M14 1a1 1 0 0 0-1 1v1.146A6.948 6.948 0 0 0 1.227 6.307a1 1 0 1 0 1.94.484A4.983 4.983 0 0 1 8 3a4.919 4.919 0 0 1 3.967 2H10a1 1 0 0 0 0 2h4a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zm.046 7.481a1 1 0 0 0-1.213.728A4.983 4.983 0 0 1 8 13a4.919 4.919 0 0 1-3.967-2H6a1 1 0 0 0 0-2H2a1 1 0 0 0-1 1v4a1 1 0 0 0 2 0v-1.146a6.948 6.948 0 0 0 11.773-3.161 1 1 0 0 0-.727-1.212z"/>
</svg>
.cardbookPrefStarClass {
list-style-image: url("chrome://messenger/skin/icons/star.svg");
-moz-context-properties: fill;
fill: currentColor;
}
.cardbookPrefStarClass[haspref="true"] {
list-style-image: url("chrome://messenger/skin/icons/starred.svg");
fill: var(--toolbarbutton-icon-fill-attention);
}
......@@ -6,7 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>cardbook@vigneau.philippe</em:id>
<em:name>CardBook</em:name>
<em:version>28.5</em:version>
<em:version>28.6</em:version>
<em:type>2</em:type>
<em:description>vCard Address Book</em:description>
<em:creator>Philippe Vigneau</em:creator>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment