Bug 633613 - Add and localized Spark game graphic to Start page [r=vingtetun]

This commit is contained in:
Mark Finkle 2011-02-12 15:26:51 -05:00
Родитель 687001e43f
Коммит 88f56da001
8 изменённых файлов: 37 добавлений и 3 удалений

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

@ -438,6 +438,7 @@ pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/beta/faq/");
pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/"); pref("app.featuresURL", "http://www.mozilla.com/%LOCALE%/mobile/features/");
pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/"); pref("app.faqURL", "http://www.mozilla.com/%LOCALE%/mobile/faq/");
#endif #endif
pref("app.promo.spark.endDate", "2011-01-01");
// Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror) // Name of alternate about: page for certificate errors (when undefined, defaults to about:neterror)
pref("security.alternate_certificate_error_page", "certerror"); pref("security.alternate_certificate_error_page", "certerror");

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

@ -4,3 +4,4 @@ chrome.jar:
content/branding/logoWordmark.png (logoWordmark.png) content/branding/logoWordmark.png (logoWordmark.png)
content/branding/logo.png (logo.png) content/branding/logo.png (logo.png)
content/branding/favicon32.png (favicon32.png) content/branding/favicon32.png (favicon32.png)
content/branding/spark.png (spark.png)

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

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

После

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

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

@ -4,3 +4,4 @@ chrome.jar:
content/branding/logoWordmark.png (logoWordmark.png) content/branding/logoWordmark.png (logoWordmark.png)
content/branding/logo.png (logo.png) content/branding/logo.png (logo.png)
content/branding/favicon32.png (favicon32.png) content/branding/favicon32.png (favicon32.png)
content/branding/spark.png (spark.png)

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

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

После

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

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

@ -86,6 +86,8 @@
<div id="footer-wrapper"> <div id="footer-wrapper">
<span id="feedback" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.feedbackURL" onclick="openLink(this);" role="button">&aboutHome.giveFeedback;</span><span id="support" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.support.baseURL" onclick="openLink(this);" role="button">&aboutHome.getHelp;</span> <span id="feedback" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.feedbackURL" onclick="openLink(this);" role="button">&aboutHome.giveFeedback;</span><span id="support" style="width: &aboutHome.footerWidth;" class="section-row" pref="app.support.baseURL" onclick="openLink(this);" role="button">&aboutHome.getHelp;</span>
</div> </div>
<div id="promo"><img src="chrome://branding/content/spark.png"/><span>&aboutHome.promoSpark;</span></div>
</div> </div>
<!-- l10n hack --> <!-- l10n hack -->
@ -124,6 +126,7 @@
function init() { function init() {
initTabs(); initTabs();
initAddons(); initAddons();
initPromo();
} }
function uninit() { function uninit() {
@ -350,12 +353,18 @@
} }
function initAddons() { function initAddons() {
getChromeWin().Services.obs.addObserver(updateAddons, "recommended-addons-cache-updated", false); getChromeWin().Services.obs.addObserver(updateAddons, "recommended-addons-cache-updated", false);
updateAddons(); updateAddons();
} }
function uninitAddons() { function uninitAddons() {
getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated"); getChromeWin().Services.obs.removeObserver(updateAddons, "recommended-addons-cache-updated");
}
function initPromo() {
let endDate = new Date(getChromeWin().Services.prefs.getCharPref("app.promo.spark.endDate"));
if (endDate > Date.now())
document.getElementById("promo").style.display = "block";
} }
]]></script> ]]></script>
</body> </body>

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

@ -8,3 +8,6 @@
<!ENTITY aboutHome.openAllTabs "Open all in tabs"> <!ENTITY aboutHome.openAllTabs "Open all in tabs">
<!ENTITY aboutHome.noTabs "No tabs from last time"> <!ENTITY aboutHome.noTabs "No tabs from last time">
<!ENTITY aboutHome.noAddons "No recommended add-ons"> <!ENTITY aboutHome.noAddons "No recommended add-ons">
<!-- LOCALIZATION NOTE: 'Firefox Spark' is the official name of the promotion and should not be translated -->
<!ENTITY aboutHome.promoSpark "Play Firefox Spark">

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

@ -232,3 +232,22 @@ body[dir="rtl"] {
border-left: none; border-left: none;
border-radius: 0 8px 8px 0; border-radius: 0 8px 8px 0;
} }
#promo {
font-weight: bold;
color: rgb(254,210,13);
background-color: black;
border-radius: 6px;
padding: 10px;
margin-top: 24px;
box-shadow: inset rgba(0, 0, 0, 0.2) 0 -3px 0px, rgba(0, 0, 0, 0.1) 0px 2px 0px;
display: none;
}
#promo > img {
vertical-align: middle;
}
#promo > span {
padding-left: 16px;
}