MenuPane in Ace on master?

9 views
Skip to first unread message

Dave Porter

unread,
Aug 13, 2013, 5:42:34 PM8/13/13
to sproutc...@googlegroups.com
Is anyone using MenuPane on master? For me it's showing up madly striped with the pink of death.

Dave Porter

unread,
Aug 15, 2013, 1:39:10 PM8/15/13
to sproutc...@googlegroups.com
Looks like this is an issue with @2x (retina). The background of MenuPane in Ace is a 1x1 image (why?! its color is #F7F7F7, is it being auto-extracted from a resource somewhere upstream?). In the gem abbot, that is working fine, but in latest master it's upscaled @2x to a 1x2 image, where the top pixel is the correct color and the bottom pixel is the horrible pink color. Something's gone wrong here, I assume it's in Abbot (or in one of its dependencies), and it may impact other areas.

My fix is going to be to override Ace and define the menu's background as a color. Just a color. No 1x1 pixels. But does anyone know what's up with Abbot's apparent behavior change?

Cheers,
Dave

Topher Fangio

unread,
Aug 15, 2013, 2:00:14 PM8/15/13
to sproutc...@googlegroups.com
Just taking a wild stab in the dark, but is it possible that the bottom pixel is "transparent" and part of the build process is adding the pink because of that?


--
Topher Fangio

System Architect
Pharos Resources

office: 325.216.2908
mobile: 325.660.7141


--
You received this message because you are subscribed to the Google Groups "SproutCore Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sproutcore-de...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Dave Porter

unread,
Aug 15, 2013, 2:10:19 PM8/15/13
to sproutc...@googlegroups.com
That's exactly right – when spriting (or @2xing I guess?) in dev mode, Abbot (Compass?) turns areas outside of sprites pink. The problem is with upscaling the 1x1 pixel – instead of outputting a 1x2 or 2x2 image that's all the same color, it retains the one pixel of color and makes the other one transparent/pink.

The thing shouldn't be being backed by a 1x1 pixel image anyway, but since it is and there's a problem, I bet it's a problem elsewhere too.
Reply all
Reply to author
Forward
0 new messages