Kaydet (Commit) f420e745 authored tarafından Oliver Specht's avatar Oliver Specht

#99725# paragraph preview high contrast aware

üst 717bded2
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: paraprev.cxx,v $ * $RCSfile: paraprev.cxx,v $
* *
* $Revision: 1.6 $ * $Revision: 1.7 $
* *
* last change: $Author: dr $ $Date: 2001-07-02 10:19:28 $ * last change: $Author: os $ $Date: 2002-05-31 09:49:41 $
* *
* 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
...@@ -115,7 +115,11 @@ void SvxParaPrevWindow::Paint( const Rectangle& rRect ) ...@@ -115,7 +115,11 @@ void SvxParaPrevWindow::Paint( const Rectangle& rRect )
void SvxParaPrevWindow::DrawParagraph( BOOL bAll ) void SvxParaPrevWindow::DrawParagraph( BOOL bAll )
{ {
SetFillColor( Color( COL_WHITE ) ); const StyleSettings& rStyleSettings = GetSettings().GetStyleSettings();
const Color& rWinColor = rStyleSettings.GetWindowColor();
Color aGrayColor(COL_LIGHTGRAY);
SetFillColor( Color( rWinColor ) );
if( bAll ) if( bAll )
DrawRect( Rectangle( Point(), aWinSize ) ); DrawRect( Rectangle( Point(), aWinSize ) );
...@@ -126,7 +130,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll ) ...@@ -126,7 +130,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll )
aSiz = aLineSiz; aSiz = aLineSiz;
Point aPnt; Point aPnt;
aPnt.X() = DEF_MARGIN / 2; aPnt.X() = DEF_MARGIN / 2;
SetFillColor( Color( COL_LIGHTGRAY ) ); SetFillColor( aGrayColor );
for ( USHORT i = 0; i < 9; ++i ) for ( USHORT i = 0; i < 9; ++i )
{ {
...@@ -138,7 +142,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll ) ...@@ -138,7 +142,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll )
} }
if ( 6 == i ) if ( 6 == i )
SetFillColor( Color( COL_LIGHTGRAY ) ); SetFillColor( aGrayColor );
if ( 3 <= i && 6 > i ) if ( 3 <= i && 6 > i )
{ {
...@@ -232,7 +236,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll ) ...@@ -232,7 +236,7 @@ void SvxParaPrevWindow::DrawParagraph( BOOL bAll )
if ( !bAll ) if ( !bAll )
{ {
Color aFillCol = GetFillColor(); Color aFillCol = GetFillColor();
SetFillColor( Color( COL_WHITE ) ); SetFillColor( rWinColor );
DrawRect( Lines[i] ); DrawRect( Lines[i] );
SetFillColor( aFillCol ); SetFillColor( aFillCol );
} }
......
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