Skip to content

Instantly share code, notes, and snippets.

@punamdahiya
Created March 20, 2024 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save punamdahiya/531a8acc153a00508f38f7740d29e810 to your computer and use it in GitHub Desktop.
Save punamdahiya/531a8acc153a00508f38f7740d29e810 to your computer and use it in GitHub Desktop.
Theme with wallpaper Category
{
id: "AW_CHOOSE_THEME",
targeting: "localeLanguageCode == 'en'",
content: {
position: "split",
split_narrow_bkg_position: "-58px",
background:
"url('chrome://activity-stream/content/data/content/assets/mr-amo-collection.svg') var(--mr-secondary-position) no-repeat var(--mr-screen-background-color)",
progress_bar: true,
logo: {},
title: {
string_id: "mr1-onboarding-theme-header",
},
subtitle: {
string_id: "mr1-onboarding-theme-subtitle",
},
tiles: {
type: "theme",
category: {
type: "wallpaper",
action: {
type: "SET_PREF",
data: {
pref: {
name: "browser.firefox-view.feature-tour",
},
},
},
},
action: {
theme: "<event>",
},
data: [
{
theme: "automatic",
label: "A1",
},
{
theme: "light",
label: "A2",
},
{
theme: "dark",
label: "A3",
},
{
theme: "alpenglow",
label: "A4",
},
],
},
primary_button: {
label: {
marginBlock: "4px 0",
raw: "Save theme",
},
action: {
navigate: true,
},
},
additional_button: {
label: "Explore more themes",
style: "link",
flow: "column",
action: {
type: "OPEN_URL",
data: {
args: "https://addons.mozilla.org/firefox/themes/",
where: "tab",
},
navigate: true,
},
},
secondary_button: {
label: {
string_id: "mr1-onboarding-theme-secondary-button-label",
},
action: {
theme: "automatic",
navigate: true,
},
has_arrow_icon: true,
},
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment