summaryrefslogtreecommitdiff
path: root/vcl/unx/source/gdi/dtint.cxx
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-10-14 14:48:06 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-10-14 14:48:06 +0000
commit407c4b1a36209d0b95c8ccf7a39c5f205eed99cd (patch)
tree26667f98fff6a6d4e80c2abdb936752da9d654f9 /vcl/unx/source/gdi/dtint.cxx
parentb2f3f72f387e6922795b6437e90f1deaec1b7510 (diff)
#104140# #104057# recognize field color, fixed a loop
Diffstat (limited to 'vcl/unx/source/gdi/dtint.cxx')
-rw-r--r--vcl/unx/source/gdi/dtint.cxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/vcl/unx/source/gdi/dtint.cxx b/vcl/unx/source/gdi/dtint.cxx
index 91526f7f0f6e..f0e8aab52970 100644
--- a/vcl/unx/source/gdi/dtint.cxx
+++ b/vcl/unx/source/gdi/dtint.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: dtint.cxx,v $
*
- * $Revision: 1.12 $
+ * $Revision: 1.13 $
*
- * last change: $Author: pl $ $Date: 2002-08-26 17:05:23 $
+ * last change: $Author: pl $ $Date: 2002-10-14 15:48:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -234,7 +234,7 @@ static Font parseFont( const ByteString& rLine )
}
while( nIndex != STRING_NOTFOUND )
{
- aToken = rLine.GetToken( 0, ',' );
+ aToken = rLine.GetToken( 0, ',', nIndex );
if( aToken.Equals( "bold" ) )
aFont.SetWeight( WEIGHT_BOLD );
else if( aToken.Equals( "light" ) )
@@ -528,6 +528,8 @@ void DtIntegrator::GetSystemLook( const char* pCommand, AllSettings& rSettings )
aStyleSettings.SetGroupTextColor( aTextColor );
aStyleSettings.SetLabelTextColor( aTextColor );
aStyleSettings.SetInfoTextColor( aTextColor );
+ aStyleSettings.SetWindowTextColor( aTextColor );
+ aStyleSettings.SetFieldTextColor( aTextColor );
}
break;
case AllBackColors:
@@ -538,6 +540,8 @@ void DtIntegrator::GetSystemLook( const char* pCommand, AllSettings& rSettings )
aStyleSettings.SetDialogColor( aBack );
aStyleSettings.SetMenuColor( aBack );
aStyleSettings.SetMenuBarColor( aBack );
+ aStyleSettings.SetWindowColor( aBack );
+ aStyleSettings.SetFieldColor( aBack );
if( aBack == COL_LIGHTGRAY )
aStyleSettings.SetCheckedColor( Color( 0xCC, 0xCC, 0xCC ) );
else