From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- "files/pl/pakowanie_motyw\303\263w/index.html" | 113 +++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 "files/pl/pakowanie_motyw\303\263w/index.html" (limited to 'files/pl/pakowanie_motywów/index.html') diff --git "a/files/pl/pakowanie_motyw\303\263w/index.html" "b/files/pl/pakowanie_motyw\303\263w/index.html" new file mode 100644 index 0000000000..8d91ae7fbc --- /dev/null +++ "b/files/pl/pakowanie_motyw\303\263w/index.html" @@ -0,0 +1,113 @@ +--- +title: Pakowanie motywów +slug: Pakowanie_motywów +tags: + - Dodatki + - Motywy + - Toolkit API + - Wszystkie_kategorie +translation_of: Mozilla/Thunderbird/Thunderbird_extensions/Theme_Packaging +--- +

 

+

Poniższy artykuł opisuje operację pakowania motywów dla Firefoksa oraz Thunderbirda.

+

Założenia

+

Tworzenie motywów dla Firefoksa lub Thunderbirda wymaga znajomości Cascading Stylesheets (CSS), prawdopodobnie XBL oraz projektowania grafiki i wyczucia estetyki (...lub też nie). Poniższy artykuł opisuje jedynie jak pakowane są motywy, aby pokazać je w oknie Motywów Firefoksa.

+

Struktura plików motywu

+

Motywy Firefoksa/Thunderbirda pakowane są do plików JAR o następującej strukturze:

+
motyw.jar:
+  install.rdf
+  contents.rdf
+  preview.png
+  icon.png
+  browser/files
+  global/files
+  mozapps/files
+  communicator/files
+  ...
+
+
+ +

install.rdf

+

Twój manifest install.rdf będzie wyglądał podobnie do poniższego:

+
<?xml version="1.0"?>
+
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+
+  <Description about="urn:mozilla:install-manifest">
+    <em:type>4</em:type>more properties
+  </Description>
+</RDF>
+
+

Wymagane własności install.rdf

+

Plik install.rdf musi posiadać następujące własności. By dowiedzieć się więcej zobacz install.rdf:

+ +

Opcjonalne własności install.rdf

+ +

Uwaga: jeśli twój motyw będzie dostępny na stronie http://addons.mozilla.org nie powinien on zawierać własności updateURL.

+

Przykładowy plik install.rdf

+
<?xml version="1.0"?>
+
+<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+     xmlns:em="http://www.mozilla.org/2004/em-rdf#">
+
+  <Description about="urn:mozilla:install-manifest">
+    <em:id>{18b64b56-d42f-428d-a88c-baa413bc413f}</em:id>
+    <em:version>1.0</em:version>
+    <em:type>4</em:type>
+
+    <!-- Target Application this extension can install into,
+         with minimum and maximum supported versions. -->
+    <em:targetApplication>
+      <Description>
+        <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
+        <em:minVersion>0.8</em:minVersion>
+        <em:maxVersion>0.9</em:maxVersion>
+      </Description>
+    </em:targetApplication>
+
+    <!-- Front End MetaData -->
+    <em:name>New Theme 1</em:name>
+    <em:description>A test theme for Firefox</em:description>
+    <em:creator>Ben Goodger</em:creator>
+    <em:contributor>John Doe</em:contributor>
+    <em:homepageURL>http://www.bengoodger.com/</em:homepageURL>
+
+    <!-- Front End Integration Hooks (used by Theme Manager)-->
+    <em:internalName>newtheme1</em:internalName>
+  </Description>
+</RDF>
+
+

Poniższe GUID przykładowych aplikacji docelowych można użyć w swoich własnościach targetApplication:

+
Firefox      {ec8030f7-c20a-464f-9b0e-13a3a9e97384}
+Thunderbird  {3550f703-e582-4d05-9a08-453d09bdfdc6}
+Sunbird      {718e30fb-e89b-41dd-9da7-e25a45638b28}
+
+

Oficjalne dokumentacje dla Toolkit API

+

+

-- cgit v1.2.3-54-g00ecf