[Libreoffice-commits] .: sw/source tools/inc

Michael Meeks michael at kemper.freedesktop.org
Mon Feb 27 08:47:02 PST 2012


 sw/source/ui/envelp/labfmt.cxx |    2 +-
 tools/inc/tools/color.hxx      |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit a3b0be108677c60653eb79187a45bbd447d5e21b
Author: Winfried Donkers <osc at dci-electronics.nl>
Date:   Mon Feb 27 16:21:33 2012 +0100

    fdo44516 cleanup of direct use of color in code

diff --git a/sw/source/ui/envelp/labfmt.cxx b/sw/source/ui/envelp/labfmt.cxx
index 6ec2a79..d5208dd 100644
--- a/sw/source/ui/envelp/labfmt.cxx
+++ b/sw/source/ui/envelp/labfmt.cxx
@@ -173,7 +173,7 @@ void SwLabPreview::Paint(const Rectangle &)
 
     // Labels
     SetClipRegion (Rectangle(Point(lX0, lY0), Size(lOutlineW, lOutlineH)));
-    SetFillColor( Color( 0xE0, 0xE0, 0xFF ) );
+    SetFillColor( COL_LIGHTGRAYBLUE );
     for (sal_uInt16 nRow = 0; nRow < Min((sal_uInt16) 2, (sal_uInt16) aItem.nRows); nRow++)
         for (sal_uInt16 nCol = 0; nCol < Min((sal_uInt16) 2, (sal_uInt16) aItem.nCols); nCol++)
             DrawRect(Rectangle(
diff --git a/tools/inc/tools/color.hxx b/tools/inc/tools/color.hxx
index a9fe589..4594de6 100644
--- a/tools/inc/tools/color.hxx
+++ b/tools/inc/tools/color.hxx
@@ -74,6 +74,7 @@ typedef sal_uInt32 ColorData;
 #define COL_LIGHTCYAN               RGB_COLORDATA( 0x00, 0xFF, 0xFF )
 #define COL_LIGHTRED                RGB_COLORDATA( 0xFF, 0x00, 0x00 )
 #define COL_LIGHTMAGENTA            RGB_COLORDATA( 0xFF, 0x00, 0xFF )
+#define COL_LIGHTGRAYBLUE           RGB_COLORDATA( 0xE0, 0xE0, 0xFF )
 #define COL_YELLOW                  RGB_COLORDATA( 0xFF, 0xFF, 0x00 )
 #define COL_WHITE                   RGB_COLORDATA( 0xFF, 0xFF, 0xFF )
 #define COL_TRANSPARENT             TRGB_COLORDATA( 0xFF, 0xFF, 0xFF, 0xFF )


More information about the Libreoffice-commits mailing list