Kaydet (Commit) 72cfc686 authored tarafından Stephan Schäfer's avatar Stephan Schäfer

#97021# check HC mode before using light green

üst 27d36214
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: outdev3.cxx,v $ * $RCSfile: outdev3.cxx,v $
* *
* $Revision: 1.82 $ * $Revision: 1.83 $
* *
* last change: $Author: ssa $ $Date: 2002-03-25 11:11:49 $ * last change: $Author: ssa $ $Date: 2002-03-25 15:56:10 $
* *
* 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
...@@ -6077,7 +6077,7 @@ void OutputDevice::DrawText( const Rectangle& rRect, ...@@ -6077,7 +6077,7 @@ void OutputDevice::DrawText( const Rectangle& rRect,
USHORT lum = aCol.GetLuminance(); USHORT lum = aCol.GetLuminance();
bHighContrastBlack = (lum <= 25); bHighContrastBlack = (lum <= 25);
bHighContrastWhite = (lum >= 225); bHighContrastWhite = (lum >= 225) && GetSettings().GetStyleSettings().GetHighContrastMode();
aOldTextColor = GetTextColor(); aOldTextColor = GetTextColor();
if ( IsTextFillColor() ) if ( IsTextFillColor() )
...@@ -6619,7 +6619,7 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const XubString& rStr, ...@@ -6619,7 +6619,7 @@ void OutputDevice::DrawCtrlText( const Point& rPos, const XubString& rStr,
Color aCol = aWall.GetColor(); Color aCol = aWall.GetColor();
USHORT lum = aCol.GetLuminance(); USHORT lum = aCol.GetLuminance();
bHighContrastBlack = (lum <= 25); bHighContrastBlack = (lum <= 25);
bHighContrastWhite = (lum >= 225); bHighContrastWhite = (lum >= 225) && GetSettings().GetStyleSettings().GetHighContrastMode();
} }
aOldTextColor = GetTextColor(); aOldTextColor = GetTextColor();
if ( IsTextFillColor() ) if ( IsTextFillColor() )
......
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