478 Private method to get the (rotating) name of the color given an index. |
478 Private method to get the (rotating) name of the color given an index. |
479 |
479 |
480 @param n color index |
480 @param n color index |
481 @type int |
481 @type int |
482 @return color name |
482 @return color name |
483 @type str |
483 @rtype str |
484 """ |
484 """ |
485 if self.__logTreeHasDarkBackground: |
485 if self.__logTreeHasDarkBackground: |
486 return LIGHTCOLORS[n % len(LIGHTCOLORS)] |
486 return LIGHTCOLORS[n % len(LIGHTCOLORS)] |
487 else: |
487 else: |
488 return COLORS[n % len(COLORS)] |
488 return COLORS[n % len(COLORS)] |