Bug 1357029 - Should add the Default Browser tour in the onBoarding overlay;r=Fischer,mossop,rexboy

MozReview-Commit-ID: FYUHqd3g64Y

--HG--
extra : rebase_source : 74e3823540aadb6056831fd7598f299e84742c9c
This commit is contained in:
gasolin 2017-06-12 12:14:42 +08:00
parent 2450d9ca72
commit 4dcf34792f
6 changed files with 40 additions and 0 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 10 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.8 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 5.8 KiB

View File

@ -243,3 +243,12 @@
#onboarding-tour-customize:hover {
background-image: url("img/icons_customize-colored.svg");
}
#onboarding-tour-default-browser {
background-image: url("img/icons_default.svg");
}
#onboarding-tour-default-browser.onboarding-active,
#onboarding-tour-default-browser:hover {
background-image: url("img/icons_default-colored.svg");
}

View File

@ -116,6 +116,23 @@ var onboardingTours = [
return div;
},
},
{
id: "onboarding-tour-default-browser",
tourNameId: "onboarding.tour-default-browser",
getPage(win) {
let div = win.document.createElement("div");
div.innerHTML = `
<section class="onboarding-tour-description">
<h1 data-l10n-id="onboarding.tour-default-browser.title"></h1>
<p data-l10n-id="onboarding.tour-default-browser.description"></p>
</section>
<section class="onboarding-tour-content">
<img src="resource://onboarding/img/figure_default.svg" />
</section>
`;
return div;
},
},
];
/**

View File

@ -32,3 +32,14 @@ onboarding.tour-customize.title=Do things your way.
# LOCALIZATION NOTE(onboarding.tour-customize.description): This string will be used in the customize tour description. %S is brandShortName
onboarding.tour-customize.description=Drag, drop, and reorder %Ss toolbar and menu to fit your needs. You can even select a compact theme to give websites more room.
onboarding.tour-customize.button=Show Customize in Menu
onboarding.tour-default-browser=Default Browser
onboarding.tour-default-browser.title=Were there for you.
# LOCALIZATION NOTE(onboarding.tour-default-browser.description): This string will be used in the default browser tour description. %1$S is brandShortName
onboarding.tour-default-browser.description=Love %1$S? Set it as your default browser. Then when you open a link from another application, %1$S has you covered.
# LOCALIZATION NOTE(onboarding.tour-default-browser.button): Label for a button to open the OS default browser settings where it's not possible to set the default browser directly. (OSX, Linux, Windows 8 and higher)
onboarding.tour-default-browser.button=Open Default Browser Settings
# LOCALIZATION NOTE(onboarding.tour-default-browser.win7.button): Label for a button to directly set the default browser (Windows 7). %S is brandShortName
onboarding.tour-default-browser.win7.button=Make %S Your Default Browser