Bug 514464: style about:firefox, r=mfinkle

This commit is contained in:
Gavin Sharp 2009-09-23 19:44:08 -04:00
Родитель 791522626d
Коммит f8b15c685c
15 изменённых файлов: 249 добавлений и 65 удалений

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

@ -42,6 +42,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk include $(DEPTH)/config/autoconf.mk
DIRS = \ DIRS = \
content \
locales \ locales \
$(NULL) $(NULL)

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

@ -0,0 +1,11 @@
# Branding Makefile
# - jars chrome artwork
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk

Двоичные данные
mobile/branding/nightly/content/about.png Normal file

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

После

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

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

@ -0,0 +1,3 @@
chrome.jar:
% content branding %content/branding/
content/branding/about.png (about.png)

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

@ -42,6 +42,7 @@ VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk include $(DEPTH)/config/autoconf.mk
DIRS = \ DIRS = \
content \
locales \ locales \
$(NULL) $(NULL)

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

@ -0,0 +1,11 @@
# Branding Makefile
# - jars chrome artwork
DEPTH = ../../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
include $(topsrcdir)/config/rules.mk

Двоичные данные
mobile/branding/official/content/about.png Normal file

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

После

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

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

@ -0,0 +1,3 @@
chrome.jar:
% content branding %content/branding/
content/branding/about.png (about.png)

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

@ -57,74 +57,57 @@
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>&aboutPage.title;</title> <title>&aboutPage.title;</title>
<link rel="stylesheet" href="chrome://global/skin/about.css" type="text/css"/> <link rel="stylesheet" href="chrome://browser/skin/aboutPage.css" type="text/css"/>
<style>
/* XXX clean up styling */
#aboutLogoContainer {
float: left;
}
#aboutDetails {
}
#aboutLinks {
clear: both;
}
#aboutLinks > a {
display: block;
margin: 5px;
border: 1px solid black;
-moz-border-radius: 5px;
padding: 5px;
}
</style>
</head> </head>
<body dir="&locale.dir;"> <body dir="&locale.dir;">
<div id="aboutLogoContainer"> <div id="wrapper">
<img src="about:logo" alt="&brandShortName;"/> <div id="aboutLogoContainer">
<img src="about:logo" alt="&brandShortName;"/>
#expand <p id="version">&about.version; __MOZ_APP_VERSION__</p> #expand <p id="version">&about.version; __MOZ_APP_VERSION__</p>
</div>
<ul id="aboutLinks">
<li><a id="faqURL">&aboutPage.faq.label;</a></li>
<li><a id="supportURL">&aboutPage.support.label;</a></li>
<li><a id="privacyURL">&aboutPage.privacyPolicy.label;</a></li>
<li><a href="about:rights">&aboutPage.rights.label;</a></li>
<li><a id="releaseNotesURL">&aboutPage.relNotes.label;</a></li>
<li><a id="creditsURL">&aboutPage.credits.label;</a></li>
</ul>
<div id="aboutDetails">
<p id="copyright">&aboutPage.copyrightInfo1;<a href="about:license">&aboutPage.licenseLink;</a>&aboutPage.copyrightInfo2; &logoCopyright;</p>
<p id="aboutUA"/>
</div>
<script type="application/javascript;version=1.8"><![CDATA[
// get URLs from prefs
try {
let formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
.getService(Components.interfaces.nsIURLFormatter);
let links = [
{id: "releaseNotesURL", pref: "app.releaseNotesURL"},
{id: "supportURL", pref: "app.support.baseURL"},
{id: "faqURL", pref: "app.faqURL"},
{id: "privacyURL", pref: "app.privacyURL"},
{id: "creditsURL", pref: "app.creditsURL"},
];
links.forEach(function (link) {
let url = formatter.formatURLPref(link.pref);
let element = document.getElementById(link.id);
element.setAttribute("href", url);
});
} catch (ex) {}
let ua = navigator.userAgent;
if (ua) {
let uaP = document.getElementById("aboutUA");
uaP.appendChild(document.createTextNode(ua));
}
]]></script>
</div> </div>
<div id="aboutLinks">
<a id="faqURL">&aboutPage.faq.label;</a>
<a id="supportURL">&aboutPage.support.label;</a>
<a id="privacyURL">&aboutPage.privacyPolicy.label;</a>
<a href="about:rights">&aboutPage.rights.label;</a>
<a id="releaseNotesURL">&aboutPage.relNotes.label;</a>
<a id="creditsURL">&aboutPage.credits.label;</a>
</div>
<div id="aboutDetails">
<p id="copyright">&aboutPage.copyrightInfo1;<a href="about:license">&aboutPage.licenseLink;</a>&aboutPage.copyrightInfo2; &logoCopyright;</p>
<p id="aboutUA"/>
</div>
<script type="application/javascript;version=1.8"><![CDATA[
// get URLs from prefs
try {
let formatter = Components.classes["@mozilla.org/toolkit/URLFormatterService;1"]
.getService(Components.interfaces.nsIURLFormatter);
let links = [
{id: "releaseNotesURL", pref: "app.releaseNotesURL"},
{id: "supportURL", pref: "app.support.baseURL"},
{id: "faqURL", pref: "app.faqURL"},
{id: "privacyURL", pref: "app.privacyURL"},
{id: "creditsURL", pref: "app.creditsURL"},
];
links.forEach(function (link) {
let url = formatter.formatURLPref(link.pref);
let element = document.getElementById(link.id);
element.setAttribute("href", url);
});
} catch (ex) {}
let ua = navigator.userAgent;
if (ua) {
let uaP = document.getElementById("aboutUA");
uaP.appendChild(document.createTextNode(ua));
}
]]></script>
</body> </body>
</html> </html>

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

@ -0,0 +1,83 @@
/* ***** 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 Mozilla Mobile Browser.
*
* The Initial Developer of the Original Code is
* Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gavin Sharp <gavin@gavinsharp.com>
*
* 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 ***** */
body {
font: 15px/1.231 helvetic,arial,clean,sans-serif;
color: #69645c;
background: white url("images/aboutBackground.jpg") top center repeat-x;
}
#wrapper {
max-width: 600px;
margin: 0 auto;
}
#aboutLogoContainer {
width: 300px;
}
#version {
font-weight: bold;
color: #909090;
margin: -24px 20px 0 118px;
}
#aboutLinks {
padding: 5px;
border: 2px solid #e6e5e3;
font-size: 15px;
}
#aboutLinks li {
clear: both;
padding: 5px 10px;
border-bottom: 2px solid #e6e5e3;
list-style: none;
}
#aboutLinks li:last-child {
border-bottom: 0;
}
#aboutLinks li a {
display: block;
color: #3a3834;
background: url("images/arrowright-16.png") right center no-repeat;
padding: 10px 40px 10px 5px;
}
#aboutDetails {
margin-top: 15px;
font-size: x-small;
}

Двоичные данные
mobile/themes/hildon/images/aboutBackground.jpg Normal file

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

После

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

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

@ -10,9 +10,12 @@ chrome.jar:
chrome.jar: chrome.jar:
% skin browser classic/1.0 % % skin browser classic/1.0 %
aboutCertError.css (aboutCertError.css) aboutCertError.css (aboutCertError.css)
aboutPage.css (aboutPage.css)
platform.css (platform.css) platform.css (platform.css)
browser.css (browser.css) browser.css (browser.css)
notification.css (notification.css) notification.css (notification.css)
images/aboutBackground.jpg (images/aboutBackground.jpg)
images/arrowright-16.png (images/arrowright-16.png) images/arrowright-16.png (images/arrowright-16.png)
images/arrowup-16.png (images/arrowup-16.png) images/arrowup-16.png (images/arrowup-16.png)
images/ratings-18.png (images/ratings-18.png) images/ratings-18.png (images/ratings-18.png)

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

@ -0,0 +1,83 @@
/* ***** 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 Mozilla Mobile Browser.
*
* The Initial Developer of the Original Code is
* Mozilla Corporation.
* Portions created by the Initial Developer are Copyright (C) 2008
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
* Gavin Sharp <gavin@gavinsharp.com>
*
* 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 ***** */
body {
font: 15px/1.231 helvetic,arial,clean,sans-serif;
color: #69645c;
background: white url("images/aboutBackground.jpg") top center repeat-x;
}
#wrapper {
max-width: 600px;
margin: 0 auto;
}
#aboutLogoContainer {
width: 300px;
}
#version {
font-weight: bold;
color: #909090;
margin: -24px 20px 0 118px;
}
#aboutLinks {
padding: 5px;
border: 2px solid #e6e5e3;
font-size: 15px;
}
#aboutLinks li {
clear: both;
padding: 5px 10px;
border-bottom: 2px solid #e6e5e3;
list-style: none;
}
#aboutLinks li:last-child {
border-bottom: 0;
}
#aboutLinks li a {
display: block;
color: #3a3834;
background: url("images/arrowright-16.png") right center no-repeat;
padding: 10px 40px 10px 5px;
}
#aboutDetails {
margin-top: 15px;
font-size: x-small;
}

Двоичные данные
mobile/themes/wince/images/aboutBackground.jpg Normal file

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

После

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

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

@ -10,15 +10,17 @@ chrome.jar:
chrome.jar: chrome.jar:
% skin browser classic/1.0 % % skin browser classic/1.0 %
aboutCertError.css (aboutCertError.css) aboutCertError.css (aboutCertError.css)
aboutPage.css (aboutPage.css)
platform.css (platform.css) platform.css (platform.css)
browser.css (browser.css) browser.css (browser.css)
browser-high.css (browser-high.css) browser-high.css (browser-high.css)
browser-low.css (browser-low.css) browser-low.css (browser-low.css)
notification.css (notification.css) notification.css (notification.css)
images/aboutBackground.jpg (images/aboutBackground.jpg)
images/arrowright-16.png (images/arrowright-16.png) images/arrowright-16.png (images/arrowright-16.png)
images/arrowup-16.png (images/arrowup-16.png) images/arrowup-16.png (images/arrowup-16.png)
images/ratings-18.png (images/ratings-18.png) images/ratings-18.png (images/ratings-18.png)
images/favicon-default-30.png (images/favicon-default-30.png) images/favicon-default-30.png (images/favicon-default-30.png)
images/starred-64.png (images/starred-64.png) images/starred-64.png (images/starred-64.png)
images/throbber.png (images/throbber.png) images/throbber.png (images/throbber.png)