531 Private method to get the (rotating) name of the color given an index. |
531 Private method to get the (rotating) name of the color given an index. |
532 |
532 |
533 @param n color index |
533 @param n color index |
534 @type int |
534 @type int |
535 @return color name |
535 @return color name |
536 @type str |
536 @rtype str |
537 """ |
537 """ |
538 if self.__logTreeHasDarkBackground: |
538 if self.__logTreeHasDarkBackground: |
539 return LIGHTCOLORS[n % len(LIGHTCOLORS)] |
539 return LIGHTCOLORS[n % len(LIGHTCOLORS)] |
540 else: |
540 else: |
541 return COLORS[n % len(COLORS)] |
541 return COLORS[n % len(COLORS)] |