[Libreoffice-commits] core.git: Branch 'libreoffice-5-0' - sfx2/source

Jan Holesovsky kendy at collabora.com
Tue Oct 13 04:48:08 PDT 2015


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

New commits:
commit 73b38e45d1c81ee533f8c6a800079486e57e4fcd
Author: Jan Holesovsky <kendy at 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 <ci at libreoffice.org>
    Reviewed-by: Tomaž Vajngerl <quikee at 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()));


More information about the Libreoffice-commits mailing list