rprouse / GitHubExtension

A visual studio extension for interacting with GitHub.
MIT License
34 stars 10 forks source link

Display labels in Issue List and Issue View #11

Closed rprouse closed 9 years ago

rprouse commented 10 years ago

Need to create an label control that displays a collection of labels. How do I set the text color based on the label color?

rprouse commented 10 years ago

Check Android app for colour of text.

rprouse commented 10 years ago

Code from the Android app,

float[] hsv = new float[3];
Color.colorToHSV(bg, hsv);
if ((hsv[2] > 0.6 && hsv[1] < 0.4)
        || (hsv[2] > 0.7 && hsv[0] > 40 && hsv[0] < 200)) {
    hsv[2] = 0.4F;
    textColor = Color.HSVToColor(hsv);
} else
    textColor = WHITE;
rprouse commented 9 years ago

The issue list is done.

rprouse commented 9 years ago

Fixed by 9112c1f