Kaydet (Commit) 55f8bba8 authored tarafından Christian Lippka's avatar Christian Lippka

#101018# added high contrast bitmaps

üst ffd0c8b3
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: imapdlg.cxx,v $ * $RCSfile: imapdlg.cxx,v $
* *
* $Revision: 1.19 $ * $Revision: 1.20 $
* *
* last change: $Author: ka $ $Date: 2002-07-05 14:55:35 $ * last change: $Author: cl $ $Date: 2002-07-11 10:48:06 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -255,10 +255,14 @@ SvxIMapDlg::SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW, ...@@ -255,10 +255,14 @@ SvxIMapDlg::SvxIMapDlg( SfxBindings *pBindings, SfxChildWindow *pCW,
aFtText ( this, SVX_RES( FT_TEXT ) ), aFtText ( this, SVX_RES( FT_TEXT ) ),
aEdtText ( this, SVX_RES( EDT_TEXT ) ), aEdtText ( this, SVX_RES( EDT_TEXT ) ),
maFtTarget ( this, SVX_RES( RID_SVXCTL_FT_TARGET ) ), maFtTarget ( this, SVX_RES( RID_SVXCTL_FT_TARGET ) ),
maCbbTarget ( this, SVX_RES( RID_SVXCTL_CBB_TARGET ) ) maCbbTarget ( this, SVX_RES( RID_SVXCTL_CBB_TARGET ) ),
maImageList ( SVX_RES( IL_IMAPDLG ) ),
maImageListH ( SVX_RES( ILH_IMAPDLG ) )
{ {
pIMapWnd = new IMapWindow( this, SVX_RES( RID_SVXCTL_IMAP ) ); pIMapWnd = new IMapWindow( this, SVX_RES( RID_SVXCTL_IMAP ) );
ApplyImageList();
FreeResource(); FreeResource();
pOwnData = new IMapOwnData( this ); pOwnData = new IMapOwnData( this );
...@@ -1078,3 +1082,20 @@ IMPL_LINK( SvxIMapDlg, MiscHdl, void*, p ) ...@@ -1078,3 +1082,20 @@ IMPL_LINK( SvxIMapDlg, MiscHdl, void*, p )
return 0L; return 0L;
} }
void SvxIMapDlg::ApplyImageList()
{
bool bHighContrast = GetDisplayBackground().GetColor().IsDark() != 0;
ImageList& rImgLst = bHighContrast ? maImageListH : maImageList;
aTbxIMapDlg1.SetImageList( rImgLst );
}
void SvxIMapDlg::DataChanged( const DataChangedEvent& rDCEvt )
{
SfxModelessDialog::DataChanged( rDCEvt );
if ( (rDCEvt.GetType() == DATACHANGED_SETTINGS) && (rDCEvt.GetFlags() & SETTINGS_STYLE) )
ApplyImageList();
}
\ No newline at end of file
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: imapdlg.hrc,v $ * $RCSfile: imapdlg.hrc,v $
* *
* $Revision: 1.2 $ * $Revision: 1.3 $
* *
* last change: $Author: dr $ $Date: 2001-06-14 16:14:55 $ * last change: $Author: cl $ $Date: 2002-07-11 10:48:06 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -104,6 +104,8 @@ ...@@ -104,6 +104,8 @@
#define STB_STATUS 1 #define STB_STATUS 1
#define IL_IMAPDLG 1
#define ILH_IMAPDLG 2
/******************************************************************************/ /******************************************************************************/
......
This diff is collapsed.
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