Bug #237603 --> Add a credits page to the Help/About dialog. Thanks to Ben Goodger and David Baron for doing all the hard work, letting

me just copy what they came up with for Firefox :).

Haven't finished putting together the names in the credits page yet.
This commit is contained in:
scott%scott-macgregor.org 2004-03-16 03:51:17 +00:00
Родитель 637b63f5ea
Коммит 62888ddcbd
8 изменённых файлов: 445 добавлений и 22 удалений

Двоичные данные
mail/base/content/about-credits.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 20 KiB

Двоичные данные
mail/base/content/about-footer.png Normal file

Двоичный файл не отображается.

После

Ширина:  |  Высота:  |  Размер: 764 B

Просмотреть файл

@ -0,0 +1,50 @@
#aboutDialog {
padding: 0px 0px 10px 0px;
}
#clientBox {
background-color: #FFFFFF;
background-image: url("chrome://messenger/content/about-thunderbird.png");
background-repeat: no-repeat;
padding-top: 203px;
color: #000000;
}
#brandName {
font-weight: bold; font-size: larger;
}
#detailsBox {
padding: 8px 10px 10px 8px;
}
#versionField {
background-color: #FFFFFF;
-moz-appearance: none;
border: none;
font-weight: bold;
}
#copyrightLink {
text-decoration: underline;
font-weight: bold;
color: #909090;
}
#groove {
margin-top: 0px;
}
#creditsIframe {
cursor: default;
-moz-user-select: none;
}
button[dlgtype="extra2"] {
margin-left: 13px;
}
button[dlgtype="accept"] {
margin-right: 13px;
}

Просмотреть файл

@ -37,7 +37,7 @@
# ***** END LICENSE BLOCK ***** -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/aboutDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/content/aboutDialog.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd" >
@ -49,10 +49,10 @@
<dialog xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="aboutDialog"
buttons="accept"
buttons="accept,extra2"
onload="onLoad();"
title="&aboutDialog.title;"
style="width: 300px; height: 16.3em;">
title="&aboutDialog.title;" creditslabel="&credits;" aboutlabel="&aboutLink;"
style="width: 299px; height: 330px;">
<script type="application/x-javascript">
<![CDATA[
@ -63,6 +63,20 @@
hidversionField.value = brandShortNameEl.firstChild.nodeValue + ' ' + navigator.vendorSub + ' (' + navigator.productSub + ')';
versionField.value = hidversionField.value;
versionField.width = hidversionField.width;
var button = document.documentElement.getButton("extra2");
button.setAttribute("label", document.documentElement.getAttribute("creditslabel"));
gSelectedPage = 0;
button.addEventListener("command", switchPage, false);
}
function uninit(aEvent)
{
if (aEvent.target != document)
return;
var iframe = document.getElementById("creditsIframe");
iframe.setAttribute("src", "");
}
function loadExternalLink() {
@ -75,28 +89,52 @@
// return false, so we don't load the href in the about dialog
return false;
}
function switchPage(aEvent)
{
var button = aEvent.target;
if (button.localName != "button")
return;
var iframe = document.getElementById("creditsIframe");
if (gSelectedPage == 0) {
iframe.setAttribute("src", "chrome://messenger/locale/credits.html");
button.setAttribute("label", document.documentElement.getAttribute("aboutlabel"));
gSelectedPage = 1;
}
else {
iframe.setAttribute("src", "");
button.setAttribute("label", document.documentElement.getAttribute("creditslabel"));
gSelectedPage = 0;
}
var modes = document.getElementById("modes");
modes.setAttribute("selectedIndex", gSelectedPage);
}
]]>
</script>
<vbox flex="1" id="clientBox">
<image src="chrome://messenger/content/about-thunderbird.png"/>
<deck id="modes" flex="1">
<vbox flex="1" id="clientBox">
<vbox id="detailsBox" align="center" flex="1">
<separator class="thin"/>
<vbox id="detailsBox" align="center" flex="1">
<separator class="thin"/>
<hbox>
<vbox>
<label id="hidversionField" style="padding: 0px; visibility: hidden; font-weight: bold;"/>
<textbox id="versionField" readonly="true" class="plain" style="padding-left: 6px !important;" tabindex="2"/>
</vbox>
</hbox>
<hbox>
<vbox>
<label id="hidversionField" style="padding: 0px; visibility: hidden; font-weight: bold;"/>
<textbox id="versionField" readonly="true" class="plain" style="padding-left: 6px !important;" tabindex="2"/>
</vbox>
</hbox>
<separator class="thin"/>
<separator class="thin"/>
<html:a id="copyrightLink" onclick="return loadExternalLink();" href="&copyrightLink;" style="display: block; color: blue; text-decoration: underline;" tabindex="3">&copyright;</html:a>
<html:a id="copyrightLink" onclick="return loadExternalLink();" href="&copyrightLink;" style="display: block;" tabindex="3">&copyrightText;</html:a>
</vbox>
</vbox>
</vbox>
<vbox flex="1" id="creditsBox">
<html:iframe style="border: 0px;" id="creditsIframe" src="chrome://messenger/locale/credits.html" flex="1"/>
</vbox>
</deck>
<separator class="groove" id="groove"/>
<!-- Localizable strings (from .dtd) -->

Просмотреть файл

@ -29,9 +29,11 @@ messenger.jar:
*+ content/messenger/msgSelectOffline.xul (content/msgSelectOffline.xul)
*+ content/messenger-views/contents.rdf (content/messenger-views.rdf)
content/messenger/about-thunderbird.png (content/about-thunderbird.png)
content/messenger/about-credits.png (content/about-credits.png)
content/messenger/about-footer.png (content/about-footer.png)
content/messenger/aboutDialog.css (content/aboutDialog.css)
classic.jar:
skin/classic/messenger/aboutDialog.css (skin/aboutDialog.css)
+ skin/classic/global/tree.css (skin/tree.css)
+ skin/classic/global/Preview.png (skin/Preview.png)
*+ skin/classic/global/contents.rdf (skin/contents.rdf)
@ -129,6 +131,7 @@ toolkit.jar:
en-US.jar:
+ locale/en-US/messenger/start.html (locale/start.html)
* locale/en-US/messenger/credits.html (locale/credits.html)
locale/en-US/messenger/bird.png (locale/bird.png)
locale/en-US/messenger/h1.png (locale/h1.png)
locale/en-US/messenger/h2.png (locale/h2.png)

Просмотреть файл

@ -1,3 +1,5 @@
<!ENTITY aboutDialog.title "About &brandShortName;">
<!ENTITY copyright "Copyright and contributor information">
<!ENTITY copyrightLink "http://www.mozilla.org/projects/thunderbird/">
<!ENTITY credits "Credits">
<!ENTITY aboutLink "&lt; About &brandShortName;">
<!ENTITY copyrightText "&#169;1998-2004 Contributors. All Rights Reserved.">
<!ENTITY copyrightLink "http://www.mozilla.org/products/thunderbird/">

Просмотреть файл

@ -0,0 +1,330 @@
# -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
# ***** BEGIN LICENSE BLOCK *****
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is Thunderbird Credits.
#
# The Initial Developer of the Original Code is Ben Goodger.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@mozilla.org>
# David Baron <dbaron@mozilla.org>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
<html>
<head>
<title>Mozilla Thunderbird Credits</title>
<style>
<!--
* {
cursor: default;
-moz-user-select: none;
}
#titleBox {
position: fixed;
left: 0px;
top: 0px;
right: 0px;
bottom: auto;
z-index: 999;
}
#footerBox {
position: fixed;
left: 0px;
top: auto;
right: 0px;
bottom: 0px;
z-index: 999;
}
#creditsBox {
position: absolute;
left: 0px;
top: 0px;
overflow: hidden;
z-index: 1;
height: 275px;
width: 280px;
margin-left: 10px;
margin-right: 10px;
font-family: Arial, sans-serif;
font-size: small;
}
h3 {
font-weight: bold;
font-size: small;
text-align: center;
margin: 15px 0px 5px 0px;
}
.creditsGroup {
margin-bottom: 1px;
}
.credit {
text-align: center;
}
.footnote {
font-size: x-small;
text-align: justify;
}
h2.title {
margin-bottom: 2px;
}
.motto {
font-style: italic;
padding-left: 10px;
}
a {
color: blue;
text-decoration: underline;
}
-->
</style>
<script type="application/x-javascript" src="chrome://global/content/globalOverlay.js"></script>
<script type="application/x-javascript">
<!--
var gCreditsInterval = -1;
function uninit()
{
if (gCreditsInterval > -1)
clearInterval(gCreditsInterval);
}
function init()
{
var cb = document.getElementById("creditsBox");
cb.scrollTop = 0;
setTimeout("runCredits()", 3000);
}
function runCredits()
{
gCreditsInterval = setInterval("creditsCallback()", 25);
}
function creditsCallback()
{
var cb = document.getElementById("creditsBox");
var newtop = cb.scrollTop + 1;
cb.scrollTop = newtop;
if (cb.scrollTop != newtop) {
// we're at the bottom
clearInterval(gCreditsInterval);
setTimeout(function() { cb.scrollTop = 0 }, 3000);
}
}
//-->
</script>
</head>
<body onload="init();" onunload="uninit();">
<div id="titleBox">
<img src="chrome://messenger/content/about-credits.png">
</div>
<div id="creditsBox">
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div align="center">
<h2 class="title">Mozilla Thunderbird&trade;</h2>
<span class="motto">&nbsp;&nbsp;&nbsp;&nbsp;Thunderbirds Are Go!</span>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div class="creditsGroup">
<h3>Engineering Leads</h3>
<div class="credit">David Bienvenu</div>
<div class="credit">Scott MacGregor</div>
<h3>Special Thanks To</h3>
<div class="credit">
Don Crandall<br>
Brendan Eich<br>
Darin Fisher<br>
Ben Goodger<br>
Jason Kersey<br>
Myk Melez<br>
Brian Ryner</br>
Jungshik Shin<br>
Seth Spitzer<br>
Stephen Walker<br>
</div>
</div>
<div class="creditsGroup">
<h3>Visual Design Coordinator</h3>
<div class="credit">Steven Garrity</div>
<h3>Theme Design</h3>
<div class="credit">
Arvid Axelsson<br>
Kevin Gerich<br>
Stephen Horlander<br>
</div>
<h3>Brand Identity</h3>
<div class="credit">
Daniel Burka<br>
Stephen Desroches<br>
Jasper Hauser<br>
Jon Hicks<br>
</div>
<h3>Web Design</h3>
<div class="credit">Dave Shea</div>
</div>
<div class="creditsGroup">
<h3>Quality Assurance</h3>
<div class="credit">
MozillaZine Community<br>
</div>
<h3>Special Thanks To</h3>
<div class="credit">
André Dahlqvist<br>
Christian Eyrich<br>
silverorange<br>
Johnny Stenback<br>
</div>
<h3>Build and Release</h3>
<div class="credit">
Don Crandall<br>
Leaf Nunes<br>
Brian Ryner<br>
</div>
<h3>Infrastructure Support</h3>
<div class="credit">Myk Melez</div>
<h3>Support Resources</h3>
<div class="credit">
Jason Kersey<br>
David Tenser<br>
</div>
<h3>Special Thanks To</h3>
<div class="credit">
MozillaZine Community<br>
MozillaZine<br>
MozDev<br>
</div>
</div>
<div class="creditsGroup">
<h3>Project Management</h3>
<div class="credit">
David Bienvenu<br>
Chris Hofmann<br>
Scott MacGregor<br>
</div>
<h3>Marketing Lead</h3>
<div class="credit">Bart Decrem</div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<p align="center">Powered by Gecko&trade;
<br>
<br>
<br>
<br>
<br>
<br>
<p class="footnote">
Mozilla Thunderbird&trade; is Copyright &copy;1998-2004 by its
contributors,
according to terms set out in the Mozilla Public License and Netscape
Public License. All Rights Reserved.</p>
<p class="footnote">
Portions of this software are Copyright &copy;1994 The Regents of the
University of California. All Rights Reserved.</p>
<p class="footnote">
This software may contain portions that are Copyright &copy;1998-2004
SupportSoft, Inc. All Rights Reserved.</p>
<p class="footnote">
Mozilla Thunderbird&trade; and the Thunderbird logo are trademarks of the Mozilla
Foundation. You are not granted rights or licenses to the trademarks
of the Mozilla Foundation or any party, including without limitation the
Thunderbird name or logo.</p>
<p class="footnote">
<small>U.S. GOVERNMENT END USERS. The Software is a "commercial item,"
as that term is defined in 48 C.F.R. 2.101 (Oct. 1995), consisting of
"commercial computer software" and "commercial computer software
documentation," as such terms are used in 48 C.F.R. 12.212 (Sept. 1995).
Consistent with 48 C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through
227.7202-4 (June 1995), all U.S. Government End Users acquire the
Software with only those rights set forth herein.</small></p>
</div>
<div id="footerBox">
<img src="chrome://messenger/content/about-footer.png">
</div>
</body>
</html>

Просмотреть файл