Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Commit

Permalink
Fixed nick colors possibly being the background color.
Browse files Browse the repository at this point in the history
It is still possible for mIRC colors to change the color to black on black,
but that is a specific part of the mIRC color spectrum.
  • Loading branch information
indrora committed Feb 11, 2014
1 parent e5e748b commit 0263ad5
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions application/src/indrora/atomic/model/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -259,11 +259,14 @@ private int getSenderColor()
color += sender.charAt(i);
}

/* we dont want color[colors.length-1] which is black */
//color = color % (colors.length - 1);

// We don't want the color to be the background color.
int tmpColor = _scheme.getColor(color % 16);
while(tmpColor == _scheme.getBackground())
{
tmpColor = _scheme.getColor(color*color % 16);
}

return _scheme.getColor(color % 16); //colors[color];
return tmpColor; //colors[color];
}

/**
Expand Down

0 comments on commit 0263ad5

Please sign in to comment.