[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] Re: tortoisesvn commit: r3491 - in trunk/src: TortoiseBlame TortoiseProc Utils

From: Simon Large <slarge_at_slarge.plus.com>
Date: 2005-05-25 18:54:09 CEST

steveking@tigris.org wrote:
> Log:
> Better coloring of controls for non-default windows color schemes.
>
> - Use a fixed color instead of the COLOR_HIGHLIGHT for modified
> files/entries

The fixed colour is better for the default Windows colour scheme, but
still doesn't help visually impaired people, because blue on black is
not a good contrast.

Is this sort of scheme any good?

COLORREF crWin = GetSysColor(COLOR_WINDOW);
COLORREF crRed, crGreen, crBlue;

if (GetRValue(crWin) + GetGValue(crWin) + GetBValue(crWin) < 50)
{
    // Dark window - use default colour for everything.
    crRed = crGreen = crBlue = GetSysColor(COLOR_WINDOWTEXT);
}
else
{
    // Normal window - use our preferred colour choices.
    crRed = RGB(100, 0, 0);
    crGreen = RGB(0, 100, 0);
    crBlue = RGB(49, 106, 197);
}

// Set crText to crRed, crGreen or crBlue as required.

Simon

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Wed May 25 18:53:29 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.