Browse Source

P4TB-121 add about tab

1.1.101
francesco 3 years ago
parent
commit
943e01dcbe
3 changed files with 86 additions and 13 deletions
  1. +24
    -0
      chrome/content/options.css
  2. +57
    -9
      chrome/content/options.xul
  3. +5
    -4
      chrome/content/pEp.css

+ 24
- 0
chrome/content/options.css View File

@ -0,0 +1,24 @@
/* see https://pep.foundation/jira/browse/P4TB-116 for the layouts */
#about {
padding: 6ch 2em;
width: 80ch;
}
#about .section {
margin-top: 0.1em;
margin-bottom: 0.1em;
}
#about .section .head {
margin-top: 1em;
margin-bottom: 1em;
}
#about .section .head img {
width: 30%;
}
#about .section .body {
margin-top: 0.1em;
margin-bottom: 0.1em;
}
#about .section .body p {
padding: 0;
margin: 0;
}

+ 57
- 9
chrome/content/options.xul View File

@ -1,19 +1,67 @@
<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="chrome://global/skin/global.css"?>
<?xml-stylesheet type="text/css" href="chrome://messenger/skin/preferences/preferences.css"?>
<dialog id="appPreferences"
<?xml-stylesheet type="text/css" href="chrome://p4t/content/options.css"?>
<?xml-stylesheet type="text/css" href="chrome://p4t/content/pEp.css"?>
<window id="appPreferences"
buttons="accept"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="pEp Preferences">
<script src="chrome://global/content/preferencesBindings.js"
type="application/javascript"/>
<script src="chrome://p4t/content/options.js"
type="application/javascript"/>
<vbox>
<checkbox id="trustedServer"
preference="extensions.p4tb.trustedServer"
label="Trusted server"
tooltiptext="Toggle this setting if you trust the server to keep an unencrypted version of your mails" />
</vbox>
</dialog>
<tabbox>
<tabs>
<tab label="Account" />
<tab label="About" />
</tabs>
<tabpanels>
<tabpanel>
<checkbox id="trustedServer"
preference="extensions.p4tb.trustedServer"
label="Trusted server"
tooltiptext="Toggle this setting if you trust the server to keep an unencrypted version of your mails" />
</tabpanel>
<tabpanel>
<html:div id="about">
<html:div class="section">
<html:div class="head">
<html:img src="chrome://p4t/content/logo.png" alt="pEp logo"/>
</html:div>
<html:div class="body">
<html:p>p≡p for Thunderbird</html:p>
<html:p>Version: 1.0.0-beta2</html:p>
</html:div>
</html:div>
<html:div class="section">
<html:div class="head">Credits:</html:div>
<html:div class="body">
Volker Birk, Simon Witts, Sandro Köchli, Sabrina Schleifer, Robert Goldmann, Rena Tangens, Patricia Bednar, Patrick Meier, padeluun, Nana Karlstetter, Meinhard Starostik, Martin Vojcik, Markus Schaber, Leonard Marquitan, Leon Schumacher, Lars Rohwedder, Krista Grothoff, Kinga Prettenhoffer, Hussein Kasem, Hernâni Marques, Edouard Tisserant, Dolça Moreno, Dirk Zimmermann, Dietz Proepper, Detlev Sieber, Dean, be, Berna Alp, Bart Polot, Andy Weber, Ana Rebollo, Alex Antener
</html:div>
</html:div>
<html:div class="section">
<html:div class="head">Thanks to:</html:div>
<html:div class="body">
<html:table>
<html:tr><html:td>GPG4Win</html:td><html:td>https://www.gpg4win.org/</html:td></html:tr>
<html:tr><html:td>pEpEngine</html:td><html:td>https://cacert.pep.foundation/dev/repos/pEpEngine</html:td></html:tr>
<html:tr><html:td>GPGME</html:td><html:td>https://gnupg.org/related_software/gpgme</html:td></html:tr>
<html:tr><html:td>LibGPG-error</html:td><html:td>https://gnupg.org/related_software/libgpg-error</html:td></html:tr>
<html:tr><html:td>Libcrypt</html:td><html:td>https://directory.fsf.org/wiki/Libgcrypt</html:td></html:tr>
<html:tr><html:td>Libassuan</html:td><html:td>https://gnupg.org/related_software/libassuan</html:td></html:tr>
<html:tr><html:td>Libksba</html:td><html:td>https://gnupg.org/related_software/libksba</html:td></html:tr>
<html:tr><html:td>GNUPG</html:td><html:td>https://gnupg.org</html:td></html:tr>
<html:tr><html:td>Libcurl</html:td><html:td>https://curl.haxx.se/libcurl</html:td></html:tr>
<html:tr><html:td>Libiconv</html:td><html:td>https://www.gnu.org/software/libiconv</html:td></html:tr>
<html:tr><html:td>LibEtPan</html:td><html:td>https://www.etpan.org/libetpan.html</html:td></html:tr>
<html:tr><html:td>MimeKitLite</html:td><html:td>http://www.mimekit.net</html:td></html:tr>
</html:table>
</html:div>
</html:div>
</html:div>
</tabpanel>
</tabpanels>
</tabbox>
</window>

+ 5
- 4
chrome/content/pEp.css View File

@ -1,3 +1,8 @@
tabbox {
padding: 10px; /* the preferences pane is nicer with this */
}
.green {
background: url('chrome://p4t/content/green-shield-white.png') #59b753;
border-color: #468f41;
@ -51,7 +56,3 @@
background-size: 16px;
background-position: center left 10px;
}
dialog {
padding: 20px;
}

Loading…
Cancel
Save