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:
parent
9570834963
commit
77183422ca
@ -14608,7 +14608,7 @@
|
||||
};
|
||||
|
||||
Color.prototype.rgb = function() {
|
||||
return this.privateRGB().join("");
|
||||
return this.privateRGB().join(",");
|
||||
};
|
||||
|
||||
Color.prototype.hover = function() {
|
||||
@ -14638,7 +14638,7 @@
|
||||
color = _ref[_i];
|
||||
rgb.push(minmax(color + shift));
|
||||
}
|
||||
return rgb.join("");
|
||||
return rgb.join(",");
|
||||
};
|
||||
|
||||
return Color;
|
||||
|
||||
@ -14627,7 +14627,7 @@
|
||||
};
|
||||
|
||||
Color.prototype.rgb = function() {
|
||||
return this.privateRGB().join("");
|
||||
return this.privateRGB().join(",");
|
||||
};
|
||||
|
||||
Color.prototype.hover = function() {
|
||||
@ -14657,7 +14657,7 @@
|
||||
color = _ref[_i];
|
||||
rgb.push(minmax(color + shift));
|
||||
}
|
||||
return rgb.join("");
|
||||
return rgb.join(",");
|
||||
};
|
||||
|
||||
return Color;
|
||||
|
||||
@ -40,7 +40,7 @@ class Color
|
||||
@raw = colorToHex value
|
||||
|
||||
hex: -> "#" + @raw
|
||||
rgb: -> @privateRGB().join ""
|
||||
rgb: -> @privateRGB().join ","
|
||||
hover: -> @shiftRGB 16, true
|
||||
|
||||
isLight: ->
|
||||
@ -60,4 +60,4 @@ class Color
|
||||
shift = (if @isLight() then -1 else 1) * Math.abs shift if smart
|
||||
rgb = []
|
||||
rgb.push minmax color + shift for color in @privateRGB()
|
||||
rgb.join ""
|
||||
rgb.join ","
|
||||
Loading…
x
Reference in New Issue
Block a user