sfx2/source/dialog/infobar.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 38dc5ea989d78b1f854562ea73a4fc0a604b15ac 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 diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx index d63590e..a88aaf7 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