Some basic color themes and selector

This commit is contained in:
Charles J. Cliffe
2015-01-11 03:09:59 -05:00
parent a18d59aa44
commit 93da5b5fa1
8 changed files with 181 additions and 18 deletions
+2 -2
View File
@@ -29,8 +29,8 @@ void Gradient::generate(unsigned int len) {
b_val.resize(len);
for (unsigned int j = 0, jMax = colors.size() - 1; j < jMax; j++) {
if (chunk_size * (jMax + 1) < len && j == jMax - 1) {
chunk_size += len - chunk_size * (jMax + 1);
if ((chunk_size * (jMax)) < len && (j == jMax - 1)) {
chunk_size += len - chunk_size * (jMax);
}
for (unsigned int i = 0; i < chunk_size; i++) {