Topic on Extension talk:DarkMode

Bottom corners remain white

3
Summary by SyncmasterN

Fixed

SyncmasterN (talkcontribs)

Hi, I was using the DarkMode extension recently and I am not really sure why the two bottom corners always remain white.

(for more context: if a page is longer and you have to scroll, the left and right sides cut from dark to white at some point)

I searched everywhere but didn't find anything documenting this.

Installed software

Product Version
MediaWiki 1.39.0
PHP 8.1.8 (fpm-fcgi)
MariaDB 10.7.7-MariaDB
ICU 67.1
Lua 5.1.5
Pygments 2.11.2
Extension Version License Description Authors
DarkMode 0.2.0 (2c6c85b) 21:21, 5 December 2022 MIT A toggleable dark mode for the MediaWiki user interface MusikAnimal and R4356th

I can see the same behaviour on example wiki at https://meta.miraheze.org/wiki/Miraheze when toggling on dark mode.


Thanks

Lomeno 24 (talkcontribs)

Sorry to bring this up but I am also having this same problem on my wiki and I have not found a solution to the problem, I am still having this problem.

SyncmasterN (talkcontribs)

It wasn't obvious at first but nl6720 posted the fix here

You have to add the following code here to your MediaWiki:Common.css

/* Work around a bug in Extension:DarkMode where it sets the background color to
 * black and then inverts it.
 */
@media screen {
	html.client-darkmode {
		/* body-background-color from https://github.com/archlinux/archwiki/blob/master/extensions/ArchLinux/modules/arch_definitions.less */
		background-color: #f6f9fc;
	}
}