Page MenuHomePhabricator

Give a configuration variable for the DarkMode extension to move the dark mode toggle to a better place
Closed, ResolvedPublicFeature

Description

At the moment, the dark mode toggle is in the footer. While I understand that some people may prefer this, I would like the option to put the toggle somewhere around the top of the screen, probably in the personal URLs. This is because I find that it is inconvenient for people to try to find the toggle when it's placed in the footer, since on long enough pages, you would have to scroll down to see it. Being able to have it in the personal URLs would mean that people wouldn't have to scroll to find the toggle.

I think that a good way to do this is by having a config variable, named something like $wgDarkModeTogglePosition, that would configure whether the toggle is placed in the personal URLs or the footer.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 716851 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/DarkMode@master] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/716851

Change 716851 merged by jenkins-bot:

[mediawiki/extensions/DarkMode@master] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/716851

Change 717405 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/DarkMode@REL1_35] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/717405

Change 717446 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/DarkMode@REL1_36] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/717446

Change 717405 merged by jenkins-bot:

[mediawiki/extensions/DarkMode@REL1_35] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/717405

Change 717446 merged by jenkins-bot:

[mediawiki/extensions/DarkMode@REL1_36] Add config var for placement of toggle link

https://gerrit.wikimedia.org/r/717446