in colorSchemeTool.py [0:0]
def isDark(): back = hex_to_rgb(text.value.background) intensity = (back[0] + back[1] + back[2])/3 return intensity < 0.5