nt1m / vivaldi-fox

An add-on that aims to add Vivaldi style toolbar colouring to the Firefox UI
https://addons.mozilla.org/en-US/firefox/addon/vivaldifox/
201 stars 21 forks source link

Option to change mode based on dusk/dawn? #128

Open ColonelGerdauf opened 1 year ago

ColonelGerdauf commented 1 year ago

Setting the theme to change from light to dark and back based on defined times can make it awkward for where one's day-night cycle changes significantly throughout the year (from summer to winter).

I wonder then if it is feasible for the extension to determine what the actual sun rise and sun sets are, for each user.

nt1m commented 1 year ago

There are online APIs that give you the sun rise/sets times, but I'd prefer to avoid making the add-on rely on external APIs.

If you have a system dark theme that is set according to dusk/dawn already, potentially an option could be added to sync with the times the system theme switches, instead of using pre-defined times?

ColonelGerdauf commented 1 year ago

Hmm... since it is a system theme, therefore non-removable via normal means, is it possible to retrieve values from it even when it is not active; AKA not the theme in use? There is some amount of delay between the cold start of Firefox, where the theme is loaded already, and the VivaldiFox extension loading up the customization.

Or maybe a VivaldiFox theme which preloads the extension settings for the 1st mode?

Kindanoob1664 commented 1 month ago

@nt1m past a year old at this point, but I'd like your suggestion to be implemented (if you're still active). I use an app to change my system theme based on sunrise/sunset, so having a setting to toggle dark mode based on system theme would be very useful.