sfx2/source/dialog/infobar.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 73b38e45d1c81ee533f8c6a800079486e57e4fcd
Author: Jan Holesovsky <ke...@collabora.com>
Date:   Mon Oct 12 18:22:09 2015 +0200

    tdf#92217: The infobar text should have a transparent background...
    
    ...instead of setting background at various places.
    
    Change-Id: Idfa6a36bcb2aefbb33a7647725098f4eea0f93c4
    Reviewed-on: https://gerrit.libreoffice.org/19347
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <qui...@gmail.com>

diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index e6b63c8..df7839e 100644
--- a/sfx2/source/dialog/infobar.cxx
+++ b/sfx2/source/dialog/infobar.cxx
@@ -127,12 +127,13 @@ SfxInfoBarWindow::SfxInfoBarWindow(vcl::Window* pParent, 
const OUString& sId,
     SetPosSizePixel(Point(0, 0), Size(nWidth, INFO_BAR_BASE_HEIGHT * 
nScaleFactor));
 
     m_pMessage->SetText(sMessage);
-    m_pMessage->SetBackground(Wallpaper(Color(constLightColor)));
     m_pMessage->Show();
 
     m_pCloseBtn->SetClickHdl(LINK(this, SfxInfoBarWindow, CloseHandler));
     m_pCloseBtn->Show();
 
+    EnableChildTransparentMode();
+
     Resize();
 }
 
@@ -173,9 +174,6 @@ void SfxInfoBarWindow::Paint(vcl::RenderContext& 
rRenderContext, const Rectangle
     BColor aDarkColor;
     lclDetermineLightDarkColor(aLightColor, aDarkColor);
 
-    // Update the label background color
-    m_pMessage->SetBackground(Wallpaper(Color(aLightColor)));
-
     // Light background
     B2DPolygon aPolygon;
     aPolygon.append(B2DPoint(aRect.Left(), aRect.Top()));
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to