Implement dark background, adjust spacing, remove skia scaling for performance during zoom.

This commit is contained in:
Jason Sams
2009-09-20 17:24:16 -07:00
parent 86c87ed0a8
commit fd22dac33e
5 changed files with 125 additions and 111 deletions

View File

@@ -93,7 +93,7 @@ final class Utilities {
* @param context The application's context.
*
* @return A thumbnail for the specified icon or the icon itself if the
* thumbnail could not be created.
* thumbnail could not be created.
*/
static Drawable createIconThumbnail(Drawable icon, Context context) {
synchronized (sCanvas) { // we share the statics :-(
@@ -411,11 +411,11 @@ final class Utilities {
if (lineCount > MAX_LINES) {
lineCount = MAX_LINES;
}
if (!TEXT_BURN && lineCount > 0) {
RectF bubbleRect = mBubbleRect;
bubbleRect.bottom = height(lineCount);
c.drawRoundRect(bubbleRect, mCornerRadius, mCornerRadius, mRectPaint);
}
//if (!TEXT_BURN && lineCount > 0) {
//RectF bubbleRect = mBubbleRect;
//bubbleRect.bottom = height(lineCount);
//c.drawRoundRect(bubbleRect, mCornerRadius, mCornerRadius, mRectPaint);
//}
for (int i=0; i<lineCount; i++) {
int x = (int)((mBubbleRect.width() - layout.getLineMax(i)) / 2.0f);
int y = mFirstLineY + (i * mLineHeight);