Bug 11639 - asset problems with new backspace button for keyboard
: asset problems with new backspace button for keyboard
Status: RESOLVED FIXED
Product: SB Touch
Classification: Unclassified
Component: UI
: unspecified
: PC Other
: -- major (vote)
: MP
Assigned To: ndijulio
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-04-03 15:22 UTC by Ben Klaas
Modified: 2009-09-08 09:19 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments
Test assets for _tr, _r, _br (transparent) (1.07 KB, application/octet-stream)
2009-04-04 13:11 UTC, ndijulio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2009-04-03 15:22:35 UTC
I'm not sure I have a clear path for a solution yet, but I do understand the problem pretty well, and we are going to need tweaked assets to make this work with the new reference for this window.

The textinput bar is actually a group of two widgets, the textinput bar and the backspace button. These two widgets are held in a group widget (think of it like a container for the two items).

At the skin/UI level, the background asset for this group is done at the group level. That is, the 9-tiled textinput background from these images:

Text_Entry/Keyboard_Touch/text_entry_titlebar_box.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_tl.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_t.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_tr.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_r.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_br.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_b.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_bl.png
Text_Entry/Keyboard_Touch/text_entry_titlebar_box_l.png

and those 9 images serve as the backdrop for _both_ textinput and backspace button.

Problematic are the _tr, _r, and _br tiles. They contain elements that look like the textinput bar as well as titlebar background going to the edge of the window (this is how we make the "fake" titlebar work in this area).

So one path to a solution might be to change the areas of the _tr, _r, and _br that look like the textinput and make them fully transparent. That way that part of the full textinput bar will actually be delivered by the backspace button and not the background tiles from the group.
Comment 1 ndijulio 2009-04-03 19:52:46 UTC
Can this be tested with transparent dummy assets?  Feel free to give me a call to resolve this issue...
Comment 2 Blackketter Dean 2009-04-03 21:03:34 UTC
maybe I'm being dense, but why isn't this just two or three assets:

one for the field
one for the button down
one for the button up
Comment 3 Ben Klaas 2009-04-04 07:14:05 UTC
Noah, sure this can be tested with dummy assets. Post them here and I'll give it a shot? Will try to give you a call sometime today (Saturday) to iron this out.

Dean, we're employing a bunch of tricks to accomplish one goal, to make it appear like the titlebar actually descends below the textinput bar. At the code level, the textinput bar isn't actually part of the titlebar (and can't be). This makes the asset delivery for this area more complicated than is typical. I had this nailed down for the previous reference of the backspace button appearing as if it was inside the textinput bar, but the new reference has the button taking up all the space at that end. I like the look-and-feel better with this change, but will require some extra work to make it appear correct.

The crux is that there are assets at the group widget level as well as the button level. I'll work through this with Noah.
Comment 4 ndijulio 2009-04-04 13:11:32 UTC
Created attachment 5044 [details]
Test assets for _tr, _r, _br (transparent)
Comment 5 Ben Klaas 2009-04-05 06:08:30 UTC
Noah and I worked through this on Saturday, and I was able to fix it with some creative skin parameter tweaking. Noah added an update to the asset to make it line up a bit better. I think we're done on this front...

r5174,r5175