diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-10-12 18:22:09 +0200 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2015-10-13 11:47:47 +0000 |
commit | 73b38e45d1c81ee533f8c6a800079486e57e4fcd (patch) | |
tree | 4a037aee5bf8bbe3dfd3c32d3602c608402d0745 /sfx2 | |
parent | cb37698884c6f7af97c5fa9a0404a5893aa73c9d (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>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/dialog/infobar.cxx | 6 |
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())); |