summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-10-12 18:22:09 +0200
committerAndras Timar <andras.timar@collabora.com>2015-10-17 23:23:25 +0200
commit10d0aeb85a9283f9543f8076b0e335dfbd03cf5c (patch)
tree33cfd9efe7ff69558b5fab4a37224d3dd3e76711 /sfx2/source
parentfc66e557bdb88fcf30e26e9818516f3b49f259fa (diff)
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@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 73b38e45d1c81ee533f8c6a800079486e57e4fcd)
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/dialog/infobar.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/dialog/infobar.cxx b/sfx2/source/dialog/infobar.cxx
index e6b63c83cd33..df7839e05c1f 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()));