diff --git a/image/404/diamond.png b/image/404/diamond.png index a7059800..9d9a87fb 100644 Binary files a/image/404/diamond.png and b/image/404/diamond.png differ diff --git a/image/404/explosion_0.png b/image/404/explosion_0.png index 64735b2e..5ac74dcc 100644 Binary files a/image/404/explosion_0.png and b/image/404/explosion_0.png differ diff --git a/image/404/explosion_1.png b/image/404/explosion_1.png index c997a5b3..a68be3a3 100644 Binary files a/image/404/explosion_1.png and b/image/404/explosion_1.png differ diff --git a/image/404/explosion_10.png b/image/404/explosion_10.png index ea503c19..b9a10706 100644 Binary files a/image/404/explosion_10.png and b/image/404/explosion_10.png differ diff --git a/image/404/explosion_11.png b/image/404/explosion_11.png index 1b01fca6..0aba41f0 100644 Binary files a/image/404/explosion_11.png and b/image/404/explosion_11.png differ diff --git a/image/404/explosion_12.png b/image/404/explosion_12.png index 329ee25c..63251dbe 100644 Binary files a/image/404/explosion_12.png and b/image/404/explosion_12.png differ diff --git a/image/404/explosion_13.png b/image/404/explosion_13.png index 69c14596..0a09cf2e 100644 Binary files a/image/404/explosion_13.png and b/image/404/explosion_13.png differ diff --git a/image/404/explosion_14.png b/image/404/explosion_14.png index c0bff97d..14bb36ba 100644 Binary files a/image/404/explosion_14.png and b/image/404/explosion_14.png differ diff --git a/image/404/explosion_15.png b/image/404/explosion_15.png index a064ba16..22cc09de 100644 Binary files a/image/404/explosion_15.png and b/image/404/explosion_15.png differ diff --git a/image/404/explosion_2.png b/image/404/explosion_2.png index 76580bd0..7f2fa1b3 100644 Binary files a/image/404/explosion_2.png and b/image/404/explosion_2.png differ diff --git a/image/404/explosion_3.png b/image/404/explosion_3.png index 4a26f52e..04e5a3ec 100644 Binary files a/image/404/explosion_3.png and b/image/404/explosion_3.png differ diff --git a/image/404/explosion_4.png b/image/404/explosion_4.png index ee3c800b..86bb964a 100644 Binary files a/image/404/explosion_4.png and b/image/404/explosion_4.png differ diff --git a/image/404/explosion_5.png b/image/404/explosion_5.png index 488059d2..0236ea47 100644 Binary files a/image/404/explosion_5.png and b/image/404/explosion_5.png differ diff --git a/image/404/explosion_6.png b/image/404/explosion_6.png index 7dad74b2..30db803b 100644 Binary files a/image/404/explosion_6.png and b/image/404/explosion_6.png differ diff --git a/image/404/explosion_7.png b/image/404/explosion_7.png index db2a4f1b..10dc4e73 100644 Binary files a/image/404/explosion_7.png and b/image/404/explosion_7.png differ diff --git a/image/404/explosion_8.png b/image/404/explosion_8.png index ad204ec7..77dcc441 100644 Binary files a/image/404/explosion_8.png and b/image/404/explosion_8.png differ diff --git a/image/404/explosion_9.png b/image/404/explosion_9.png index f0726c2a..3f5f4598 100644 Binary files a/image/404/explosion_9.png and b/image/404/explosion_9.png differ diff --git a/image/404/flint_and_steel.png b/image/404/flint_and_steel.png index 27089b33..324c9c53 100644 Binary files a/image/404/flint_and_steel.png and b/image/404/flint_and_steel.png differ diff --git a/image/404/tnt_side.png b/image/404/tnt_side.png index 24beb1a2..1c7051c2 100644 Binary files a/image/404/tnt_side.png and b/image/404/tnt_side.png differ diff --git a/image/background/bg_dark_background.png b/image/background/bg_dark_background.png index ce0e3e3b..02ddb241 100644 Binary files a/image/background/bg_dark_background.png and b/image/background/bg_dark_background.png differ diff --git a/image/background/bg_dark_foreground.png b/image/background/bg_dark_foreground.png index 245bc5a7..392da1bc 100644 Binary files a/image/background/bg_dark_foreground.png and b/image/background/bg_dark_foreground.png differ diff --git a/image/background/bg_light_background.png b/image/background/bg_light_background.png index 27434597..c787c4e7 100644 Binary files a/image/background/bg_light_background.png and b/image/background/bg_light_background.png differ diff --git a/image/background/bg_light_foreground.png b/image/background/bg_light_foreground.png index 69f135eb..deeef546 100644 Binary files a/image/background/bg_light_foreground.png and b/image/background/bg_light_foreground.png differ diff --git a/image/background/snow0.png b/image/background/snow0.png index 332b9b43..a18739ba 100644 Binary files a/image/background/snow0.png and b/image/background/snow0.png differ diff --git a/image/background/snow1.png b/image/background/snow1.png index 3ef627a8..3030c991 100644 Binary files a/image/background/snow1.png and b/image/background/snow1.png differ diff --git a/image/background/snow2.png b/image/background/snow2.png index 51fe6dce..8fd58399 100644 Binary files a/image/background/snow2.png and b/image/background/snow2.png differ diff --git a/image/background/snow3.png b/image/background/snow3.png index 71664f00..d0b2109e 100644 Binary files a/image/background/snow3.png and b/image/background/snow3.png differ diff --git a/image/background/snow_overlay.png b/image/background/snow_overlay.png index 85e5d61e..931a6ba0 100644 Binary files a/image/background/snow_overlay.png and b/image/background/snow_overlay.png differ diff --git a/image/background/snow_overlay_small.png b/image/background/snow_overlay_small.png index 5f310edf..c40a39a2 100644 Binary files a/image/background/snow_overlay_small.png and b/image/background/snow_overlay_small.png differ diff --git a/image/home/16x9.png b/image/home/16x9.png index ba46fd79..6a8ff9a4 100644 Binary files a/image/home/16x9.png and b/image/home/16x9.png differ diff --git a/image/home/addons.png b/image/home/addons.png index 5d95fc2a..f8c23a07 100644 Binary files a/image/home/addons.png and b/image/home/addons.png differ diff --git a/image/home/cf32.png b/image/home/cf32.png index 3608bacd..ee96fa93 100644 Binary files a/image/home/cf32.png and b/image/home/cf32.png differ diff --git a/image/home/cf64.png b/image/home/cf64.png index 9f90846d..ee567bd9 100644 Binary files a/image/home/cf64.png and b/image/home/cf64.png differ diff --git a/image/home/dungeons.png b/image/home/dungeons.png index 44e60692..6be8fd98 100644 Binary files a/image/home/dungeons.png and b/image/home/dungeons.png differ diff --git a/image/home/f32.png b/image/home/f32.png index a1e33390..d7661754 100644 Binary files a/image/home/f32.png and b/image/home/f32.png differ diff --git a/image/home/f64.png b/image/home/f64.png index 7558bb56..9dae4b73 100644 Binary files a/image/home/f64.png and b/image/home/f64.png differ diff --git a/image/home/mods.png b/image/home/mods.png index c3053a75..b95a64e2 100644 Binary files a/image/home/mods.png and b/image/home/mods.png differ diff --git a/image/home/navbar-wordmark.png b/image/home/navbar-wordmark.png index 8d56689d..f35cdc88 100644 Binary files a/image/home/navbar-wordmark.png and b/image/home/navbar-wordmark.png differ diff --git a/image/home/wordmark.png b/image/home/wordmark.png index 8d56689d..f35cdc88 100644 Binary files a/image/home/wordmark.png and b/image/home/wordmark.png differ diff --git a/image/icon/32.png b/image/icon/32.png index c0efa071..9e8ddfbf 100644 Binary files a/image/icon/32.png and b/image/icon/32.png differ diff --git a/image/icon/64.png b/image/icon/64.png index b4e9f383..3adff2c0 100644 Binary files a/image/icon/64.png and b/image/icon/64.png differ diff --git a/image/icon/FaithfulThing.png b/image/icon/FaithfulThing.png index ad56cdea..a1319f0a 100644 Binary files a/image/icon/FaithfulThing.png and b/image/icon/FaithfulThing.png differ diff --git a/image/icon/bedrock.png b/image/icon/bedrock.png index 92ff0491..48aa412c 100644 Binary files a/image/icon/bedrock.png and b/image/icon/bedrock.png differ diff --git a/image/icon/gone-fishin.png b/image/icon/gone-fishin.png index ffe122df..25e937c6 100644 Binary files a/image/icon/gone-fishin.png and b/image/icon/gone-fishin.png differ diff --git a/image/icon/java.png b/image/icon/java.png index c1fad85e..bc73bbf6 100644 Binary files a/image/icon/java.png and b/image/icon/java.png differ diff --git a/image/icon/optifine.png b/image/icon/optifine.png index 42c8fdd3..37a654f4 100644 Binary files a/image/icon/optifine.png and b/image/icon/optifine.png differ diff --git a/image/pwa/app-192x192.png b/image/pwa/app-192x192.png index 7d95d970..1c009f99 100644 Binary files a/image/pwa/app-192x192.png and b/image/pwa/app-192x192.png differ diff --git a/image/pwa/app-512x512.png b/image/pwa/app-512x512.png index ea37e5a1..763768fc 100644 Binary files a/image/pwa/app-512x512.png and b/image/pwa/app-512x512.png differ diff --git a/image/pwa/app-maskable-512x512.png b/image/pwa/app-maskable-512x512.png index 52d56ded..c8c90388 100644 Binary files a/image/pwa/app-maskable-512x512.png and b/image/pwa/app-maskable-512x512.png differ diff --git a/image/pwa/apple-touch-180x180.png b/image/pwa/apple-touch-180x180.png index e6732318..48d62cb1 100644 Binary files a/image/pwa/apple-touch-180x180.png and b/image/pwa/apple-touch-180x180.png differ diff --git a/image/pwa/favicon-16x16.png b/image/pwa/favicon-16x16.png index 96ff8159..543968b8 100644 Binary files a/image/pwa/favicon-16x16.png and b/image/pwa/favicon-16x16.png differ diff --git a/image/pwa/favicon-32x32.png b/image/pwa/favicon-32x32.png index 4fbcf04c..94573f18 100644 Binary files a/image/pwa/favicon-32x32.png and b/image/pwa/favicon-32x32.png differ diff --git a/image/redirect/classicfaithful.png b/image/redirect/classicfaithful.png index 625cadac..8d537909 100644 Binary files a/image/redirect/classicfaithful.png and b/image/redirect/classicfaithful.png differ diff --git a/image/redirect/faithful.png b/image/redirect/faithful.png index c9e94948..895a90ee 100644 Binary files a/image/redirect/faithful.png and b/image/redirect/faithful.png differ diff --git a/js/theme.js b/js/theme.js index 51e47746..ae85b71d 100644 --- a/js/theme.js +++ b/js/theme.js @@ -56,11 +56,11 @@ window.changeMod = (change) => { } // update theme - if (theme.currentTheme === 'dark' || (theme.currentTheme === 'auto' && matchMedia('(prefers-color-scheme: dark)').matches)) { - css.href = '/css/dark.css' - } else { - css.href = '/css/light.css' - } + const isDark = ( + theme.currentTheme === 'dark' || + (theme.currentTheme === 'auto' && matchMedia('(prefers-color-scheme: dark)').matches) + ) + css.href = isDark ? '/css/dark.css' : '/css/light.css' } changeMod(false)