summaryrefslogtreecommitdiff
path: root/sfx2/source/dialog
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2015-10-12 18:22:09 +0200
committerJan Holesovsky <kendy@collabora.com>2015-10-12 18:33:10 +0200
commit38dc5ea989d78b1f854562ea73a4fc0a604b15ac (patch)
treef88b4072dd377147fd92069d27dbd1377885d654 /sfx2/source/dialog
parentf3b6107f4cc9544e58df76cb9d9e17c599040d49 (diff)
tdf#92217: The infobar text should have a transparent background...
...instead of setting background at various places. Change-Id: Idfa6a36bcb2aefbb33a7647725098f4eea0f93c4
Diffstat (limited to 'sfx2/source/dialog')
-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 d63590ef171e..a88aaf774255 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()));