diff options
author | gt <gt@openoffice.org> | 2002-09-03 09:26:21 +0000 |
---|---|---|
committer | gt <gt@openoffice.org> | 2002-09-03 09:26:21 +0000 |
commit | c858dc373eb58a37fa5e22876d3d140c582e5889 (patch) | |
tree | 3ac26ef5f0ea2aee416c9a21e11d50f46364f6c0 /svx/source/gallery2/galbrws2.cxx | |
parent | 54526bf8dc788380880606d37c498ea09dd432d1 (diff) |
#99281# HC images and handling for GalleryBrowser2
Diffstat (limited to 'svx/source/gallery2/galbrws2.cxx')
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 155a854378cb..311fadab0322 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: galbrws2.cxx,v $ * - * $Revision: 1.35 $ + * $Revision: 1.36 $ * - * last change: $Author: ka $ $Date: 2002-08-01 10:29:39 $ + * last change: $Author: gt $ $Date: 2002-09-03 10:26:21 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -388,16 +388,11 @@ GalleryBrowser2::~GalleryBrowser2() void GalleryBrowser2::InitSettings() { - Image aIconImage( GAL_RESID( RID_SVXIMG_GALLERY_VIEW_ICON ) ); - Image aListImage( GAL_RESID( RID_SVXIMG_GALLERY_VIEW_LIST ) ); + BOOL bHC = GALLERY_DLG_COLOR.IsDark(); + Image aIconImage( GAL_RESID( bHC? RID_SVXIMG_GALLERY_VIEW_ICON_HC : RID_SVXIMG_GALLERY_VIEW_ICON ) ); + Image aListImage( GAL_RESID( bHC? RID_SVXIMG_GALLERY_VIEW_LIST_HC : RID_SVXIMG_GALLERY_VIEW_LIST ) ); Font aInfoFont( maInfoBar.GetControlFont() ); - if( Application::GetSettings().GetStyleSettings().GetHighContrastMode() ) - { - aIconImage = aIconImage.GetColorTransformedImage( IMAGECOLORTRANSFORM_HIGHCONTRAST ); - aListImage = aListImage.GetColorTransformedImage( IMAGECOLORTRANSFORM_HIGHCONTRAST ); - } - maViewBox.SetItemImage( TBX_ID_ICON, aIconImage ); maViewBox.SetItemImage( TBX_ID_LIST, aListImage ); |