diff --git a/public/script.js b/public/script.js index 48619f2bd..83b386062 100644 --- a/public/script.js +++ b/public/script.js @@ -884,8 +884,14 @@ function messageFormating(mes, ch_name, isSystem, forceAvatar) { mes = mes.replace(/{{(\*?.+?\*?)}}/g, ""); - mes = mes.replace(/\"(.+?)\"/g, "$1") - mes = mes.replace(/\n/g, "
"); + mes = mes.replace(/(]*>[\s\S]*?<\/code>)|\"(.+?)\"/g, function(match, code, quote) { + if (code) { + return code; + } else { + return "" + quote + ""; + } + }); + mes = mes.replace(/\n/g, "
"); mes = mes.trim(); mes = mes.replace(/[\s\S]*?<\/code>/g, function (match) { diff --git a/themes/Aqua Blue.json b/themes/Aqua Blue.json new file mode 100644 index 000000000..1cd4f5880 --- /dev/null +++ b/themes/Aqua Blue.json @@ -0,0 +1,8 @@ +{ + "name": "Aqua Blue", + "blur_strength": 2, + "main_text_color": "rgba(160, 190, 190, 1)", + "italics_text_color": "rgba(170, 200, 200, 1)", + "fastui_bg_color": "rgba(7, 54, 66, 0.9)", + "blur_tint_color": "rgba(0, 43, 54, 0.8)" +} \ No newline at end of file diff --git a/themes/Default (Dark).json b/themes/Default (Dark).json new file mode 100644 index 000000000..1997cd35e --- /dev/null +++ b/themes/Default (Dark).json @@ -0,0 +1,8 @@ +{ + "name": "Default (Dark)", + "blur_strength": 10, + "main_text_color": "rgb(220, 220, 210)", + "italics_text_color": "rgb(175, 175, 175)", + "fastui_bg_color": "rgba(0, 0, 0, 0.9)", + "blur_tint_color": "rgba(0, 0, 0, 0.5)" +} \ No newline at end of file diff --git a/themes/Megumin Red.json b/themes/Megumin Red.json new file mode 100644 index 000000000..c403a950b --- /dev/null +++ b/themes/Megumin Red.json @@ -0,0 +1,8 @@ +{ + "name": "Megumin Red", + "blur_strength": 10, + "main_text_color": "rgba(230, 230, 230, 1)", + "italics_text_color": "rgba(200, 200, 200, 1)", + "fastui_bg_color": "rgba(70, 5, 5, 0.9)", + "blur_tint_color": "rgba(50, 10, 10, 0.75)" +} \ No newline at end of file