src/extensions/default/InlineColorEditor/ColorEditor.js
function _0xColorToHex(color, convertToStr) {
        var hexColor = tinycolor(color.replace("0x", "#"));
        hexColor._format = "0x";

        if (convertToStr) {
            return hexColor.toString();
        }
        return hexColor;
    }
function _0xColorToHex(color, convertToStr) {
        var hexColor = tinycolor(color.replace("0x", "#"));
        hexColor._format = "0x";

        if (convertToStr) {
            return hexColor.toString();
        }
        return hexColor;
    }
function _0xColorToHex ( color , convertToStr ) { var hexColor = tinycolor ( color . replace ( "0x" , "#" ) ) ; hexColor . _format = "0x" ; if ( convertToStr ) { return hexColor . toString ( ) ; } return hexColor ; }
Converts 0x-prefixed color to hex
@param {string} color - Color to convert
@param {boolean} convertToString - true if color should
be returned as string
@returns {tinycolor|string} - Hex color as a Tinycolor object
or a hex string
Converts 0x - prefixed color to hex