Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic theme switching support in favorite colours #567

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions favourite-colour/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Favourite Colour

Shows and stores your favourite colour, in storage.sync in the about:addons page for the add-on.
Shows and stores your favourite colour, in storage.sync in the extension's about:addons page.

Demonstrates:

* storing data with storage.sync
* reading data from storage.managed
* creating an options page and opening it with `runtime.openOptionsPage()`
* best practice for supporting automatic theme switching in the options page
rebloor marked this conversation as resolved.
Show resolved Hide resolved

* reading data from storage.managed,
* creating an options page and opening it with `runtime.openOptionsPage()`.

To have Firefox read data from storage.managed, create a file with the following contents:
To have Firefox read data from storage.managed, create a file with this content:

{
"name": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions favourite-colour/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<html>
<head>
<meta charset="utf-8">
<meta name="color-scheme" content="dark light">
</head>

<body>
Expand Down
Loading