Kaydet (Commit) 09cc173d authored tarafından Kshitij Pathania's avatar Kshitij Pathania Kaydeden (comit) Szymon Kłos

tdf#107266 made background continous for menubar and notebookbar

Change-Id: Ieed538741f2a252c8acf1e751bb2ddbe6361b2fa
Reviewed-on: https://gerrit.libreoffice.org/55118Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
Tested-by: 's avatarSzymon Kłos <szymon.klos@collabora.com>
üst abb19edc
...@@ -1781,6 +1781,21 @@ void ImplBorderWindow::Resize() ...@@ -1781,6 +1781,21 @@ void ImplBorderWindow::Resize()
if (mpNotebookBar) if (mpNotebookBar)
{ {
long nNotebookBarHeight = mpNotebookBar->GetSizePixel().Height(); long nNotebookBarHeight = mpNotebookBar->GetSizePixel().Height();
const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
const BitmapEx aPersona = rStyleSettings.GetPersonaHeader();
// since size of notebookbar changes, to make common persona for menubar
// and notebookbar persona should be set again with changed coordinates
if (!aPersona.IsEmpty())
{
Wallpaper aWallpaper(aPersona);
aWallpaper.SetStyle(WallpaperStyle::TopRight);
aWallpaper.SetRect(tools::Rectangle(Point(0, -nTopBorder),
Size(aSize.Width() - nLeftBorder - nRightBorder,
nNotebookBarHeight + nTopBorder)));
mpNotebookBar->SetBackground(aWallpaper);
}
mpNotebookBar->setPosSizePixel( mpNotebookBar->setPosSizePixel(
nLeftBorder, nTopBorder, nLeftBorder, nTopBorder,
aSize.Width() - nLeftBorder - nRightBorder, aSize.Width() - nLeftBorder - nRightBorder,
......
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