From 09c3d1d4c6cc035acec7578eeb0ba0bae228fcb0 Mon Sep 17 00:00:00 2001 From: "gtm.daemon" Date: Mon, 28 Mar 2011 19:00:23 +0000 Subject: [Author: sail] 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) --- .../TestData/GTMFadeTruncatingTextFieldCellTest5.tiff | Bin 2188 -> 2136 bytes .../TestData/GTMFadeTruncatingTextFieldCellTest6.tiff | Bin 2068 -> 2048 bytes .../TestData/GTMFadeTruncatingTextFieldCellTest8.tiff | Bin 0 -> 2896 bytes 3 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 AppKit/TestData/GTMFadeTruncatingTextFieldCellTest8.tiff (limited to 'AppKit/TestData') diff --git a/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest5.tiff b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest5.tiff index f360479..4d4635f 100644 Binary files a/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest5.tiff and b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest5.tiff differ diff --git a/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest6.tiff b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest6.tiff index d704a81..c8b435d 100644 Binary files a/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest6.tiff and b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest6.tiff differ diff --git a/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest8.tiff b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest8.tiff new file mode 100644 index 0000000..47d70bd Binary files /dev/null and b/AppKit/TestData/GTMFadeTruncatingTextFieldCellTest8.tiff differ -- cgit v1.2.3