Topic on User talk:MusikAnimal

Jump to navigation Jump to search
R4356th (talkcontribs)

Hello, I made a fork of DarkMode and made it usable by logged out users, added mode preferences, added support for toggling dark mode by URL parametres, etc. If I upstreamed the commits, would you be able to review them? Thank you!

MusikAnimal (talkcontribs)

Yes of course! There's one patch already open to add a ?usedarkmode=1 URL parameter, but I'm happy to go with your implementation.

R4356th (talkcontribs)

Great! Should the patches be uploaded separately or in one single patch?

R4356th (talkcontribs)

Please disregard the above message. I have uploaded a patch.

Left-Eye-125 (talkcontribs)

Hi, I don't understand how configuration works. I've tried excluding elements or styling elements inside the skin.css, is this not how it's done? Also can the dark mode toggle be moved up to the account links area, or maybe the sidebar? It's relatively hidden at the very bottom of potentially long pages, at least on vector, idk about other skin. I would really love to use this extension on my main wiki, but I haven't been able to figure out customization or how to move the toggle yet.

MusikAnimal (talkcontribs)

@Left-Eye-125 I just pushed an update that allows you move the dark mode link. See Extension:DarkMode#Configuration for instructions. That same section should also explains what's possible as for styling elements. If you don't want something inverted, give it the .mw-no-invert CSS class. If you find yourself needing to do this a lot in wikitext, you may wish to add a template called say, Template:No-DarkMode, that simply wraps the given content with <div class="mw-no-invert">{{{1}}}</div> . You can also style individual elements. Say you wanted to un-invert an element with the CSS class .my-element. Your CSS could look like .client-dark-mode .my-element { ilter: invert( 1 ) hue-rotate( 180deg ) } which ensure .my-element is never inverted (because it gets re-inverted). Obviously, applying the .mw-no-invert class is easier, if you're able to do that. Hope this helps!

Reply to "Regarding DarkMode"