eric6/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py

changeset 7489
6543bcd150fd
parent 7455
9d0852f0bb2c
child 7493
1696e91a5393
equal deleted inserted replaced
7488:36ec7469f492 7489:6543bcd150fd
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)]

eric ide

mercurial