| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
Switch to using the class methods +saveGraphicsState/+restoreGraphicsState.
R=mmentovai
APPROVED=dmaclach
|
|
|
|
|
|
|
|
|
|
|
| |
Tweak fade effect for GTMFadeTruncatingTextFieldCell
This change tweaks how we fade the beginning of the text in GTMFadeTruncatingTextFieldCell. Previously we would start drawing the string at the desired position. This meant that the first character was not legible because of the fade effect. With this change we now start drawing a few pixels before the desired position.
I also fixed a bug in how we draw the background of the cell. Previously we clipped to the text rect before drawing the background. When the text field had a border this meant that we weren't drawing all of the background because the text rect is slightly smaller than the background rect. With this change we now draw the background rect before setting the text rect clip.
R=thomasvl,dmaclach
APPROVED=dmaclach
DELTA=81 (51 added, 2 deleted, 28 changed)
|
|
|
|
|
|
|
|
|
|
|
| |
Currently GTMFadeTruncatingTextFieldCell only supports truncating the tail of a string.
It should also allow the head of a string to be truncated.
I'd like to use this in Chromium. See http://crbug.com/69304
R=thomasvl
APPROVED=thomasvl
DELTA=238 (197 added, 17 deleted, 24 changed)
|
|
|
|
|
|
|
|
|
| |
Nicer drawing of text by not using the gradient where it isn't needed,
helps where light text is drawn on a dark background.
Patch from thakis - http://codereview.appspot.com/159060/show
R=thakis,dmaclach
DELTA=79 (54 added, 7 deleted, 18 changed)
|
|
Add fading text field cell
R=dmaclach,thomasvl
DELTA=161 (161 added, 0 deleted, 0 changed)
|