kubuzetto / behind

behind! addon source code repository
https://addons.mozilla.org/en-US/firefox/addon/behind/
Mozilla Public License 2.0
90 stars 3 forks source link

Dark theme #5

Closed TeardropOmen closed 4 years ago

TeardropOmen commented 4 years ago

The background should be a dark color when the browser is set to a dark theme.

kubuzetto commented 4 years ago

I'll look into this. I don't yet know if the browser exposes this information to addons (AFAIK you can sometimes get the system preference for dark themes, but it could have been disabled by the user to prevent fingerprinting).

As a fallback, would a checkbox in the Options page (that you would have to manually enable) do the job?

TeardropOmen commented 4 years ago

I think it could be done using the prefers-color-scheme CSS media feature.

An additional manual override in the options for users with anti-fingerprinting would be a good idea, giving users the choice between automatic, light or dark theme.

bengisubatmaz commented 4 years ago

this feature is now available in v0.2.6

kubuzetto commented 4 years ago

Thank you @shesharp1011 for the contribution :) closing the issue