From d3314abcd91b50158f229bc4fa8ad7f02fd84bd1 Mon Sep 17 00:00:00 2001 From: Rafael Dominguez Date: Sat, 7 Jul 2012 22:23:23 -0430 Subject: Set default ThumbnailView fill color the same as the dialogs. Change-Id: Id67d2dc5b626cd63f55088b7cb7950d86244d4b9 --- sfx2/source/control/thumbnailview.cxx | 4 ++-- sfx2/source/doc/templatedlg.cxx | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index 3897f38c136a..b8a962cb56ef 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -52,8 +52,7 @@ enum }; ThumbnailView::ThumbnailView (Window *pParent, WinBits nWinStyle, bool bDisableTransientChildren) - : Control( pParent, nWinStyle ), - maColor( pParent->GetBackground().GetColor() ) + : Control( pParent, nWinStyle ) { ImplInit(); mbIsTransientChildrenDisabled = bDisableTransientChildren; @@ -106,6 +105,7 @@ void ThumbnailView::ImplInit() mbSelectionMode = false; mbActive = true; maFilterFunc = ViewFilterAll(); + maColor = GetSettings().GetStyleSettings().GetDialogColor(); // Create the processor and process the primitives const drawinglayer::geometry::ViewInformation2D aNewViewInfos; diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx index f2c961fd994f..2d1ff049c5e3 100644 --- a/sfx2/source/doc/templatedlg.cxx +++ b/sfx2/source/doc/templatedlg.cxx @@ -176,7 +176,6 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent) mpSearchEdit->EnableUpdateData(); maView->SetStyle(WB_VSCROLL); - maView->SetColor(GetBackground().GetColor()); maView->SetSizePixel(aThumbSize); maView->setItemMaxTextLength(ITEM_MAX_TEXT_LENGTH); -- cgit