summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-07 22:23:23 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-08 08:54:27 -0430
commitd3314abcd91b50158f229bc4fa8ad7f02fd84bd1 (patch)
tree165820f5799ea0698511fe1b55e287aa40322357
parente719baa35f58a32a21c6ddc9189aa086606faf03 (diff)
Set default ThumbnailView fill color the same as the dialogs.
Change-Id: Id67d2dc5b626cd63f55088b7cb7950d86244d4b9
-rw-r--r--sfx2/source/control/thumbnailview.cxx4
-rw-r--r--sfx2/source/doc/templatedlg.cxx1
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);