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

use browser built-in options_ui #36

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

shinenelson
Copy link

Opening the extension's options_ui in a separate tab is an old
method. Browsers now provide a built-in options_ui within the
Extension's listing page itself.

This changeset changes the options_ui behaviour to open within the
extension's listing context itself.

This can also avoid confusions like issue #35. I myself had the same
confusion on Firefox. On Chrom{e,ium}, at least, there is a default
button on the toolbar which the user can click and find the 'Options'
page. On Firefox, there is none. Finding the 'Preferences' option
within the overflow menu of the extension is too far-fetched to find.
I got to #35 searching for how to change the theme on Firefox.

Resolves #35

since we are already in the context of the extension and the logo and
title of the extension would already be in view.
the logo and header within the `options_ui` would only make it redundant.
we use both `<select>` and `<button>` that require the additional CSS
class `browser-style` to be specified in the element itself for it to
inherit the `browser_style`.

reference : https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/user_interface/Browser_styles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Where can I change the theme ?
1 participant