commit ce26db3495519f0901c8ff3cd9a403e19744bbf5
parent c078ebcef71396b8173e68a697f42acbedb5f7ff
Author: David Norton <david@nortoncrew.com>
Date: Thu, 6 Jul 2006 20:43:32 +0000
Closes #12, credits panel.
This custom credits panel gives us more flexibility. Also, there is an About link which is certainly easier to find than right-clicking on the extension in the Add-ons window.
Diffstat:
4 files changed, 91 insertions(+), 1 deletion(-)
diff --git a/chrome/chromeFiles/content/scholar/about.xul b/chrome/chromeFiles/content/scholar/about.xul
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<?xml-stylesheet href="chrome://scholar/skin/scholar.css" type="text/css"?>
+<?xml-stylesheet href="chrome://scholar/skin/about.css" type="text/css"?>
+
+<dialog
+ id="scholar-about"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ orient="vertical"
+ buttons="accept"
+ onload="onLoad();"
+ ondialogaccept="return true;">
+
+ <script>
+ <![CDATA[
+ function onLoad()
+ {
+ var labels = document.getElementsByTagName('label');
+
+ for(var i = 0; i<labels.length; i++)
+ labels[i].setAttribute('crop','end');
+ }
+ ]]>
+ </script>
+
+ <vbox id="aboutcontent">
+ <label id="name" value="Scholar for Firefox"/>
+ <label id="version" value="version 1.0a1"/>
+
+ <label class="subhead" value="Created by:"/>
+ <vbox class="subcontent">
+ <label class="text-link" href="http://chnm.gmu.edu" value="Center for History and New Media"/>
+ </vbox>
+ <label class="subhead" value="Directors:"/>
+ <vbox class="subcontent">
+ <label value="Dan Cohen"/>
+ <label value="Josh Greenberg"/>
+ </vbox>
+ <label class="subhead" value="Developers:"/>
+ <vbox class="subcontent">
+ <label value="Dan Stillman"/>
+ <label value="David Norton"/>
+ <label value="Simon Kornblith"/>
+ </vbox>
+ <label class="subhead" value="Special Thanks:"/>
+ <vbox class="subcontent">
+ <label class="text-link" href="http://www.imls.gov/" value="Institute of Museum and Library Services"/>
+ <label class="text-link" href="http://www.mozilla.org/" value="Mozilla Foundation"/>
+ <label class="text-link" href="http://www.famfamfam.com/lab/icons/silk/" value="famfamfam (icons)"/>
+ </vbox>
+ </vbox>
+</dialog>
+\ No newline at end of file
diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul
@@ -39,6 +39,7 @@
<toolbar align="end">
<label value="Scholar" id="scholar-toolbar-name"/>
<label value="1.0 Alpha"/>
+ <label class="text-link" value="About..." onclick="window.openDialog('chrome://scholar/content/about.xul','about','chrome,modal');"/>
<spacer flex="1"/>
<toolbarbutton id="tb-fullscreen" tooltiptext="Toggle Fullscreen" oncommand="ScholarPane.fullScreen();"/>
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/>
diff --git a/chrome/chromeFiles/skin/default/scholar/about.css b/chrome/chromeFiles/skin/default/scholar/about.css
@@ -0,0 +1,35 @@
+dialog
+{
+ padding-top: 0px;
+ padding-left: 0px;
+ padding-right: 0px;
+}
+
+#aboutcontent
+{
+ background: white;
+ padding: 10px;
+}
+
+#name
+{
+ font-size: large;
+ font-weight: bold;
+}
+
+#version
+{
+ color: gray;
+ margin-bottom: 5px;
+}
+
+.subhead
+{
+ margin-top: 5px;
+ font-weight: bold;
+}
+
+.subcontent
+{
+ margin-left: 10px;
+}
+\ No newline at end of file
diff --git a/install.rdf b/install.rdf
@@ -16,7 +16,7 @@
<em:developer>Dan Stillman</em:developer>
<em:homepageURL>http://chnm.gmu.edu/tools/firefoxscholar/</em:homepageURL>
<em:optionsURL>chrome://scholar/content/preferences.xul</em:optionsURL>
- <!--<em:aboutURL>chrome://scholar/content/about.xul</em:aboutURL>-->
+ <em:aboutURL>chrome://scholar/content/about.xul</em:aboutURL>
<!--<em:iconURL>chrome://scholar/skin/mainicon.png</em:iconURL>-->
<em:updateURL>http://chnm.gmu.edu/firefoxscholar/download/update-svn.rdf</em:updateURL>
<em:type>2</em:type> <!-- type=extension -->