haxeui / haxeui-heaps

MIT License
31 stars 12 forks source link

Index color png causes crash in Dark theme #19

Closed hoseyjoe closed 3 years ago

hoseyjoe commented 3 years ago

Index color png causes crash in Dark theme. Looks to be caused by
sizer_gripper_horizontal.png, sizer_gripper_vertical.png, down_arrow_square.png, down_arrow_square.png uses index color (unsupported)
probably more of an issue on heaps than HaxeUI.

Unsupported png format 1()

Called from hxd.res.Image.getInfo (hxd/res/Image.hx line 114)
Called from haxe.ui.backend.AssetsImpl.imageFromBytes (haxe/ui/backend/AssetsImpl.hx line 56)
Called from haxe.ui.backend.AssetsImpl.getImageFromHaxeResource (haxe/ui/backend/AssetsImpl.hx line 42)
Called from haxe.ui.ToolkitAssets.~getImage.2 (haxe/ui/ToolkitAssets.hx line 92)
Called from haxe.ui.backend.AssetsImpl.getImageInternal (haxe/ui/backend/AssetsImpl.hx line 36)
Called from haxe.ui.ToolkitAssets.getImage (haxe/ui/ToolkitAssets.hx line 86)
Called from haxe.ui.util.ImageLoader.load (haxe/ui/util/ImageLoader.hx line 23)
Called from haxe.ui.components._Image.ResourceBehaviour.validateData (haxe/ui/components/Image.hx line 176)
Called from haxe.ui.behaviours.DataBehaviour.validate (haxe/ui/behaviours/DataBehaviour.hx line 21)
Called from haxe.ui.behaviours.Behaviours.validateData (haxe/ui/behaviours/Behaviours.hx line 90)
Called from haxe.ui.core.ComponentValidation.validateComponentData (haxe/ui/core/ComponentValidation.hx line 273)
Called from haxe.ui.core.ComponentValidation.validateComponentInternal (haxe/ui/core/ComponentValidation.hx line 232)
Called from haxe.ui.core.ComponentValidation.validateComponent (haxe/ui/core/ComponentValidation.hx line 171)
Called from haxe.ui.validation.ValidationManager.process (haxe/ui/validation/ValidationManager.hx line 128)
Called from haxe.ui.util.$Timer.~delay.1 (haxe/ui/util/Timer.hx line 10)
Called from haxe.ui.backend.$TimerImpl.update (haxe/ui/backend/TimerImpl.hx line 13)
Called from haxe.ui.backend.$BackendImpl.update (haxe/ui/backend/BackendImpl.hx line 7)
Called from haxe.ui.backend.AppImpl.onHeapsUpdate (haxe/ui/backend/AppImpl.hx line 47)
Called from haxe.ui.backend._AppImpl.HeapsApp.update (haxe/ui/backend/AppImpl.hx line 18)
Called from hxd.App.mainLoop (hxd/App.hx line 187)
Called from hxd.App.~setup.2 (hxd/App.hx line 144)
Called from hxd.App.loadAssets (hxd/App.hx line 170)
Called from hxd.App.setup (hxd/App.hx line 140)
Called from h3d.Engine.onCreate (h3d/Engine.hx line 247)
Called from h3d.impl.GlDriver.~init.0 (h3d/impl/GlDriver.hx line 1645)
Called from haxe.$Timer.~delay.0 (C:\SDKs\Haxe\haxe\std/haxe/Timer.hx line 144)
Called from haxe.$Timer.~__constructor__.0 (C:\SDKs\Haxe\haxe\std/haxe/Timer.hx line 76)
Called from sys.thread.EventLoop.progress (C:\SDKs\Haxe\haxe\std/sys/thread/EventLoop.hx line 114)
Called from hxd.$System.runMainLoop (hxd/System.hl.hx line 152)
Called from hxd.$System.runMainLoop (hxd/System.hl.hx line 142)
Called from haxe.$Timer.~delay.0 (C:\SDKs\Haxe\haxe\std/haxe/Timer.hx line 144)
Called from haxe.$Timer.~__constructor__.0 (C:\SDKs\Haxe\haxe\std/haxe/Timer.hx line 76)
Called from sys.thread.EventLoop.loop (C:\SDKs\Haxe\haxe\std/sys/thread/EventLoop.hx line 150)
Called from sys.thread._Thread.$Thread_Impl_.processEvents (C:\SDKs\Haxe\haxe\std/hl/_std/sys/thread/Thread.hx line 62)

Attached rgb converted found here haxe\ui_module\styles\default

down_arrow_square
right_arrow_square
sizer_gripper_horizontal
sizer_gripper_vertical
up_arrow_white
down_arrow_white

Attached rgb converted found here haxe\ui_module\styles\dark down_arrow_white up_arrow_white

hoseyjoe commented 3 years ago

This no longer appears to be issue. Someone resolved it somewhere

ianharrigan commented 3 years ago

Sorry, yeah, forgot to update the issue, fixed this (and other pngs) a few days ago... just re-exported them using irfranview rather than gimp, seemed to do the trick

Cheers, Ian