Kaydet (Commit) 73b38e45 authored tarafından Jan Holesovsky's avatar Jan Holesovsky Kaydeden (comit) Tomaž Vajngerl

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/19347Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
üst cb376988
......@@ -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()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment