Fix Color methods not joining RGB values correctly.

Apparently I broke it while refactoring? Huh. This should also fix
importing themes from Oneechan?
This commit is contained in:
Zixaphir 2014-03-08 17:45:01 -07:00
parent 9570834963
commit 77183422ca
3 changed files with 6 additions and 6 deletions

View File

@ -14608,7 +14608,7 @@
}; };
Color.prototype.rgb = function() { Color.prototype.rgb = function() {
return this.privateRGB().join(""); return this.privateRGB().join(",");
}; };
Color.prototype.hover = function() { Color.prototype.hover = function() {
@ -14638,7 +14638,7 @@
color = _ref[_i]; color = _ref[_i];
rgb.push(minmax(color + shift)); rgb.push(minmax(color + shift));
} }
return rgb.join(""); return rgb.join(",");
}; };
return Color; return Color;

View File

@ -14627,7 +14627,7 @@
}; };
Color.prototype.rgb = function() { Color.prototype.rgb = function() {
return this.privateRGB().join(""); return this.privateRGB().join(",");
}; };
Color.prototype.hover = function() { Color.prototype.hover = function() {
@ -14657,7 +14657,7 @@
color = _ref[_i]; color = _ref[_i];
rgb.push(minmax(color + shift)); rgb.push(minmax(color + shift));
} }
return rgb.join(""); return rgb.join(",");
}; };
return Color; return Color;

View File

@ -40,7 +40,7 @@ class Color
@raw = colorToHex value @raw = colorToHex value
hex: -> "#" + @raw hex: -> "#" + @raw
rgb: -> @privateRGB().join "" rgb: -> @privateRGB().join ","
hover: -> @shiftRGB 16, true hover: -> @shiftRGB 16, true
isLight: -> isLight: ->
@ -60,4 +60,4 @@ class Color
shift = (if @isLight() then -1 else 1) * Math.abs shift if smart shift = (if @isLight() then -1 else 1) * Math.abs shift if smart
rgb = [] rgb = []
rgb.push minmax color + shift for color in @privateRGB() rgb.push minmax color + shift for color in @privateRGB()
rgb.join "" rgb.join ","