CottonMC / LibGui

Buttons & Co
MIT License
288 stars 48 forks source link

Background Is Darker Than Expected #226

Closed Phoupraw closed 10 months ago

Phoupraw commented 10 months ago

Describe the bug Background of CottonInventoryScreen is darker than vanilla screen's.

To Reproduce Steps to reproduce the behavior:

  1. Create a CottonInventoryScreen.
  2. Open it.
  3. You can see the background is darker.

Expected behavior Optional It should be as dark as vanilla.

Screenshots Optional Vanilla screen: 2023-11-18_22 44 55 CottonInventoryScreen: 2023-11-18_22 44 57

Version of the mods:

Additional context Optional Both CottonInventoryScreen#paint and Screen#render call Screen#renderBackground. The method is called twice in total, so CottonInventoryScreen is darker.