To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=75566





------- Additional comments from [EMAIL PROTECTED] Mon Nov  5 11:31:03 +0000 
2007 -------
TL->AW: Well what should be done is changing the font (foreground) color to one
that is better readable with the current background.
I asked FME what the Writer does. The implementation of it is in
sw/source/core/txtnode/fntcache.cxx the function SwDrawTextInfo::ApplyAutoColor.
FME said the core of it are the lines:

            // change painting color depending of dark/bright background
            Color aTmpColor( nNewColor );
            if ( pCol->IsDark() && aTmpColor.IsDark() )
                nNewColor = COL_WHITE;
            else if ( pCol->IsBright() && aTmpColor.IsBright() )
                nNewColor = COL_BLACK;

Thus the font color is changed to white or black depending on the background 
color.

Since IsDark and IsBright don't cover all of the color spectrum it still is left
uncared for if for example the background color is let's say gray5 and the
foreground color is gray3 though...

You should probably still check with CL if he is fine with it.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to