Skip to content

Instantly share code, notes, and snippets.

@amychurchwell
Last active April 9, 2024 19:06
Show Gist options
  • Select an option

  • Save amychurchwell/e5d347d0d4dcb44745fa3a6c5616511c to your computer and use it in GitHub Desktop.

Select an option

Save amychurchwell/e5d347d0d4dcb44745fa3a6c5616511c to your computer and use it in GitHub Desktop.
{
"id": "MULTISTAGE_SPOTLIGHT_MESSAGE",
"template": "spotlight",
"content": {
"id": "MULTISTAGE_SPOTLIGHT_MESSAGE",
"template": "multistage",
"backdrop": "transparent",
"transitions": true,
"screens": [
{
"id": "AW_CHOOSE_THEME",
"targeting": "localeLanguageCode == 'en'",
"content": {
"title": {
"marginBlock": "75px 0",
"string_id": "newtab-wallpaper-onboarding-title"
},
"subtitle": {
"string_id": "newtab-wallpaper-onboarding-subtitle"
},
"tiles": {
"type": "theme",
"category": {
"type": "wallpaper",
"action": {
"type": "SET_PREF",
"data": {
"pref": {
"name": "browser.newtabpage.activity-stream.newtabWallpapers.wallpaper"
}
}
}
},
"action": {
"theme": "<event>"
},
"data": [
{
"theme": "dark-aurora",
"type": "dark"
},
{
"theme": "dark-city",
"type": "dark"
},
{
"theme": "dark-color",
"type": "dark"
},
{
"theme": "dark-mountain",
"type": "dark"
},
{
"theme": "dark-panda",
"type": "dark"
},
{
"theme": "dark-sky",
"type": "dark"
},
{
"theme": "light-beach",
"type": "light"
},
{
"theme": "light-color",
"type": "light"
},
{
"theme": "light-landscape",
"type": "light"
},
{
"theme": "light-mountain",
"type": "light"
},
{
"theme": "light-redpanda",
"type": "light"
},
{
"theme": "light-sky",
"type": "light"
}
]
},
"primary_button": {
"label": {
"marginBlock": "4px 0",
"raw": "Save theme"
},
"action": {
"navigate": true
}
},
"secondary_button": {
"label": {
"string_id": "mr1-onboarding-theme-secondary-button-label"
},
"action": {
"theme": "automatic",
"navigate": true
},
"has_arrow_icon": true
},
"dismiss_button": {
"action": {
"navigate": true
}
}
}
}
]
},
"frequency": {
"lifetime": 3
},
"trigger": {
"id": "defaultBrowserCheck"
},
"targeting": "true"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment