85 |
85 |
86 |
86 |
87 def getAvailableColorSchemes(): |
87 def getAvailableColorSchemes(): |
88 """ |
88 """ |
89 Function to get a list of available color schemes. |
89 Function to get a list of available color schemes. |
90 |
90 |
91 @return list containing the names of the supported color schemes |
91 @return list containing the names of the supported color schemes |
92 @rtype list of str |
92 @rtype list of str |
93 """ |
93 """ |
94 return list(_AnsiColorSchemes.keys()) |
94 return list(_AnsiColorSchemes.keys()) |
95 |
95 |
96 |
96 |
97 def getColor(scheme, color): |
97 def getColor(scheme, color): |
98 """ |
98 """ |
99 Function to get the brush for a given scheme and color. |
99 Function to get the brush for a given scheme and color. |
100 |
100 |
101 @param scheme name of the color scheme |
101 @param scheme name of the color scheme |
102 @type str |
102 @type str |
103 @param color ANSI color code |
103 @param color ANSI color code |
104 @type int |
104 @type int |
105 @return brush for the given parameters or None in case of error |
105 @return brush for the given parameters or None in case of error |