aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: No category color in highlighted files  (Read 2286 times)

Seagull

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 154
No category color in highlighted files
« on: September 30, 2004, 11:41:35 PM »

Files in categories with blue and grey tones are almost unreadable when selected (rc5 and cvs-20040930).

I then request that category colors dont be applied to selected files (foreground) or that the color be shifted.

The first option is easier and makes more sense in my opinion, since the defined color wont appear anyway.

The change in this case is trivial.

In DownloadListCtrl.cpp, CDownloadListCtrl::OnDrawItem:

Code: [Select]
Change:

if ( content->type == FILE_TYPE) {
// If we have category, override textforeground with what category tells us.

To:

if ( content->type == FILE_TYPE && !highlighted) {
// If we have category, override textforeground with what category tells us.

A little change to the above can be made by substituting "!highlighted" with "!GetFocus()", in which case, only when focus is on the item will the color not be applied.

Hope it makes it to rc6  :P
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: No category color in highlighted files
« Reply #1 on: October 01, 2004, 08:05:01 AM »

I've committed the !GetFocus() variant, since that is the best compromise between displaying the category information and being readable IMHO. ;)
Logged