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.
This commit is contained in:
parent
c078ebcef7
commit
ce26db3495
4 changed files with 89 additions and 1 deletions
52
chrome/chromeFiles/content/scholar/about.xul
Normal file
52
chrome/chromeFiles/content/scholar/about.xul
Normal file
|
@ -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>
|
|
@ -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()"/>
|
||||
|
|
35
chrome/chromeFiles/skin/default/scholar/about.css
Normal file
35
chrome/chromeFiles/skin/default/scholar/about.css
Normal file
|
@ -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;
|
||||
}
|
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Reference in a new issue