Ticket #3723: 0001-Revert-the-thumbnail-fill-color-to-COLOR_PANEL_GREY-.patch

File 0001-Revert-the-thumbnail-fill-color-to-COLOR_PANEL_GREY-.patch, 1.4 KB (added by manuq, 12 years ago)

This patch for Get Books reverts the background color to COLOR_PANEL_GREY

  • GetIABooksActivity.py

    From c250751f8087f7ea64d64b2a77c16e94179b28a8 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Sat, 23 Jun 2012 01:16:24 -0300
    Subject: [PATCH Get Books] Revert the thumbnail fill color to
     COLOR_PANEL_GREY SL #3723
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This should be fixed in the theme.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     GetIABooksActivity.py |    7 +------
     1 file changed, 1 insertion(+), 6 deletions(-)
    
    diff --git a/GetIABooksActivity.py b/GetIABooksActivity.py
    index b340798..ed91546 100644
    a b class GetIABooksActivity(activity.Activity): 
    732732                pixbuf.get_has_alpha(), pixbuf.get_bits_per_sample(),
    733733                image_width, image_height)
    734734
    735         # FIXME: I used this darker color instead of
    736         # style.COLOR_PANEL_GREY because there is a big difference on
    737         # the image. We should find the way to use the same color on
    738         # the .png loaded than in the rest of the square and remove
    739         # the 1px border
    740         pixbuf2.fill(style.COLOR_BUTTON_GREY.get_int())
     735        pixbuf2.fill(style.COLOR_PANEL_GREY.get_int())
    741736
    742737        margin_x = int((image_width - (width * scale)) / 2)
    743738        margin_y = int((image_height - (height * scale)) / 2)