From 40d9e412b9adcb8e4a6de7f5f3ab2994a891d32f Mon Sep 17 00:00:00 2001 From: Edouard Oger Date: Tue, 4 Aug 2015 11:46:00 +0200 Subject: [PATCH 01/56] Bug 1149721 - Restyle the Sync preferences page. r=jaws --- .../components/preferences/in-content/sync.js | 12 +- .../preferences/in-content/sync.xul | 235 ++++++++++-------- .../en-US/chrome/browser/preferences/sync.dtd | 14 ++ browser/themes/linux/jar.mn | 9 +- browser/themes/osx/jar.mn | 9 +- .../themes/osx/preferences/preferences.css | 4 - .../customizableui/panelUIOverlay.inc.css | 6 +- browser/themes/shared/fxa/android.png | Bin 0 -> 15286 bytes browser/themes/shared/fxa/android@2x.png | Bin 0 -> 736 bytes browser/themes/shared/fxa/default-avatar.png | Bin 0 -> 1562 bytes .../themes/shared/fxa/default-avatar@2x.png | Bin 0 -> 2560 bytes .../shared/fxa/default-profile-image.svg | 9 - browser/themes/shared/fxa/logo.png | Bin 0 -> 17703 bytes browser/themes/shared/fxa/logo@2x.png | Bin 0 -> 4517 bytes .../themes/shared/fxa/sync-illustration.png | Bin 0 -> 18697 bytes .../shared/fxa/sync-illustration@2x.png | Bin 0 -> 8682 bytes .../shared/incontentprefs/preferences.inc.css | 172 ++++++++++--- browser/themes/windows/jar.mn | 9 +- 18 files changed, 325 insertions(+), 154 deletions(-) create mode 100644 browser/themes/shared/fxa/android.png create mode 100644 browser/themes/shared/fxa/android@2x.png create mode 100644 browser/themes/shared/fxa/default-avatar.png create mode 100644 browser/themes/shared/fxa/default-avatar@2x.png delete mode 100644 browser/themes/shared/fxa/default-profile-image.svg create mode 100644 browser/themes/shared/fxa/logo.png create mode 100644 browser/themes/shared/fxa/logo@2x.png create mode 100644 browser/themes/shared/fxa/sync-illustration.png create mode 100644 browser/themes/shared/fxa/sync-illustration@2x.png diff --git a/browser/components/preferences/in-content/sync.js b/browser/components/preferences/in-content/sync.js index c4b4993f5c8d..c4a8e4da073d 100644 --- a/browser/components/preferences/in-content/sync.js +++ b/browser/components/preferences/in-content/sync.js @@ -240,18 +240,14 @@ let gSyncPane = { gSyncPane.startOver(true); return false; }); - setEventListener("noFxaSignUp", "click", function () { + setEventListener("noFxaSignUp", "command", function () { gSyncPane.signUp(); return false; }); - setEventListener("noFxaSignIn", "click", function () { + setEventListener("noFxaSignIn", "command", function () { gSyncPane.signIn(); return false; }); - setEventListener("noFxaUseOldSync", "click", function () { - gSyncPane.openOldSyncSupportPage(); - return false; - }); setEventListener("verifiedManage", "command", gSyncPane.manageFirefoxAccount); setEventListener("fxaUnlinkButton", "click", function () { @@ -259,13 +255,13 @@ let gSyncPane = { }); setEventListener("verifyFxaAccount", "command", gSyncPane.verifyFirefoxAccount); - setEventListener("unverifiedUnlinkFxaAccount", "click", function () { + setEventListener("unverifiedUnlinkFxaAccount", "command", function () { /* no warning as account can't have previously synced */ gSyncPane.unlinkFirefoxAccount(false); }); setEventListener("rejectReSignIn", "command", gSyncPane.reSignIn); - setEventListener("rejectUnlinkFxaAccount", "click", function () { + setEventListener("rejectUnlinkFxaAccount", "command", function () { gSyncPane.unlinkFirefoxAccount(true); }); setEventListener("tosPP-small-ToS", "click", gSyncPane.openToS); diff --git a/browser/components/preferences/in-content/sync.xul b/browser/components/preferences/in-content/sync.xul index 1f4b364d0fa9..9bfaf028690a 100644 --- a/browser/components/preferences/in-content/sync.xul +++ b/browser/components/preferences/in-content/sync.xul @@ -200,112 +200,133 @@ - - - - - - + + + + + + &signedOut.description; + + + + + +