Dark mode everywhere blacklist

Dark mode everywhere blacklist for:
* HUD (hearts, hunger, xp, slots) (immediatelyfast)
* Appleskin
* Fonts (unfortunately darkens most GUI fonts, but without this tetra font dropshadows match their main font colour)
This commit is contained in:
Sergeant Acoustic 2025-08-24 01:41:17 +01:00
parent 4e74b75836
commit 4336732c50

View file

@ -1,7 +1,45 @@
#A list of class:method strings (render methods) that the dark shader will not be applied to. #A list of class:method strings (render methods) that the dark shader will not be applied to.
#Each string consists of the class and the method (or any substring) to block the dark shader. #Each string consists of the class and the method (or any substring) to block the dark shader.
#For example, 'renderHunger' is sufficient to block 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood' (either will work). #For example, 'renderHunger' is sufficient to block 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood' (either will work).
METHOD_SHADER_BLACKLIST = ["mezz.jei.common.render.FluidTankRenderer:drawTextureWithMasking", "mezz.jei.library.render.FluidTankRenderer:drawTextureWithMasking", "renderCrosshair", "m_93080_", "renderSky", "m_202423_", "renderHotbar", "m_93009_", "m_193837_", "setupOverlayRenderState", "net.minecraftforge.client.gui.overlay.ForgeGui", "renderFood", "renderExperienceBar", "m_93071_", "renderLogo", "m_280037_", "m_280118_", "net.minecraft.client.gui.Gui", "net.minecraft.src.C_3431_", "renderDirtBackground", "m_280039_", "m_280039_", "configured.client.screen.ListMenuScreen", "OnlineServerEntry:drawIcon", "OnlineServerEntry:m_99889_", "WorldSelectionList$WorldListEntry:render", "WorldSelectionList$WorldListEntry:m_6311_", "CubeMap:render", "CubeMap:m_108849_", "squeek.appleskin.client.HUDOverlayHandler", "shadows.packmenu.ExtendedMenuScreen"] METHOD_SHADER_BLACKLIST = [
"mezz.jei.common.render.FluidTankRenderer:drawTextureWithMasking",
"mezz.jei.library.render.FluidTankRenderer:drawTextureWithMasking",
"renderCrosshair",
"m_93080_",
"renderSky",
"m_202423_",
"renderHotbar",
"m_93009_",
"m_193837_",
"setupOverlayRenderState",
"net.minecraftforge.client.gui.overlay.ForgeGui",
"renderFood",
"renderExperienceBar",
"m_93071_",
"renderLogo",
"m_280037_",
"m_280118_",
"net.minecraft.client.gui.Gui",
"net.minecraft.src.C_3431_",
"renderDirtBackground",
"m_280039_",
"m_280039_",
"configured.client.screen.ListMenuScreen",
"OnlineServerEntry:drawIcon",
"OnlineServerEntry:m_99889_",
"WorldSelectionList$WorldListEntry:render",
"WorldSelectionList$WorldListEntry:m_6311_",
"CubeMap:render",
"CubeMap:m_108849_",
"squeek.appleskin.client.HUDOverlayHandler",
"shadows.packmenu.ExtendedMenuScreen",
"drawExhaustionOverlay",
"drawSaturationOverlay",
"renderHeartRow",
"net.minecraft.client.gui.Font:handler",
"net.raphimc.immediatelyfast.feature.",
".book."
]
#Enabling this config will (every 5 seconds) dump which methods were used to render GUIs that the dark shader was applied to #Enabling this config will (every 5 seconds) dump which methods were used to render GUIs that the dark shader was applied to
#The dump will consist of a list of class:method strings, e.g. 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood' #The dump will consist of a list of class:method strings, e.g. 'net.minecraftforge.client.gui.overlay.ForgeGui:renderFood'
#Use this feature to help find the render method strings of GUIs you would like to blacklist. #Use this feature to help find the render method strings of GUIs you would like to blacklist.