From fba8047a474333d9b3a005c26071b673f167db1e Mon Sep 17 00:00:00 2001 From: BaalEvan Date: Tue, 7 Jan 2025 16:41:41 +0100 Subject: [PATCH 1/2] Excluded UI from DarkMode Everything - Hunger Bar, - Health Bar - Armor Bar - Fluids on Jade - Nature Aura Overlay - Iron Spells Overlay - Effects icons - Cosmetic Armor - Ars Nouveau --- config/darkmodeeverywhere-client.toml | 47 ++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/config/darkmodeeverywhere-client.toml b/config/darkmodeeverywhere-client.toml index 186a1d6b..7129155c 100644 --- a/config/darkmodeeverywhere-client.toml +++ b/config/darkmodeeverywhere-client.toml @@ -1,7 +1,52 @@ #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. #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_"] +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_", + # Overlay + # Apple skin hunger bar + "squeek.appleskin.client.HUDOverlayHandler:drawExhaustionOverlay", + "squeek.appleskin.client.HUDOverlayHandler:drawSaturationOverlay", + # Hearts Bar + "terrails.colorfulhearts.api.heart.drawing.SpriteHeartDrawing:draw", + # Armor Bar + "tfar.overloadedarmorbar.overlay.OverlayRenderer:renderArmorBar", + # Jade Fluid preview + "snownee.jade.overlay.DisplayHelper:drawTiledSprite", + # Nature Aura overlay + "de.ellpeck.naturesaura.events.ClientEvents:onOverlayRender", + # Iron spells Overlay - dark mode removes saturation from icons + "io.redspace.ironsspellbooks.gui.overlays.SpellBarOverlay:render", + # Inventory + # Inventory Effects Icons + "net.minecraft.client.gui.screens.inventory.EffectRenderingInventoryScreen:renderIcons", + # Cosmetic Armor Buttons in Inventory + "lain.mods.cos.impl.client.gui.GuiCosArmorToggleButton:renderWidget", + "lain.mods.cos.impl.client.gui.GuiCosArmorButton:renderWidget", + # Ars Nouveau - Dark mode looks bad on all Ars UIs, and because Spellbook looks more natural without Dark Mode everything is excluded + "com.hollingsworth.arsnouveau.client" +] #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' #Use this feature to help find the render method strings of GUIs you would like to blacklist. From c522e57b8ea48e4309e08cfadf07a14d65ef8758 Mon Sep 17 00:00:00 2001 From: BaalEvan Date: Wed, 8 Jan 2025 04:11:47 +0100 Subject: [PATCH 2/2] Added Industrial Foregoing Tank UI exclusion --- config/darkmodeeverywhere-client.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/darkmodeeverywhere-client.toml b/config/darkmodeeverywhere-client.toml index 7129155c..5d43984d 100644 --- a/config/darkmodeeverywhere-client.toml +++ b/config/darkmodeeverywhere-client.toml @@ -44,6 +44,9 @@ METHOD_SHADER_BLACKLIST = [ # Cosmetic Armor Buttons in Inventory "lain.mods.cos.impl.client.gui.GuiCosArmorToggleButton:renderWidget", "lain.mods.cos.impl.client.gui.GuiCosArmorButton:renderWidget", + # Industrial Foregoing Tank UI + "com.hrznstudio.titanium.client.screen.addon.TankScreenAddon:drawBackgroundLayer", + # Ars Nouveau - Dark mode looks bad on all Ars UIs, and because Spellbook looks more natural without Dark Mode everything is excluded "com.hollingsworth.arsnouveau.client" ]