bx-1379-redesign #15

Merged
ksenia_mikhailova merged 124 commits from bx-1379-redesign into dev 2024-09-06 15:39:13 +03:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 319d486ffa - Show all commits

View File

@ -55,7 +55,7 @@ const loadEnv = async () => {
const hsl_value = { h: 0, s: 0, l: 0 } const hsl_value = { h: 0, s: 0, l: 0 }
new Color(props.clear_color).getHSL(hsl_value); new Color(props.clear_color).getHSL(hsl_value);
document.documentElement.style.setProperty('--primary-color', props.clear_color) document.documentElement.style.setProperty('--primary-color', props.clear_color || PROMOBG)
document.documentElement.style.setProperty('--main-text-color', hsl_value.l < 0.5 ? '#fff' : '#000') document.documentElement.style.setProperty('--main-text-color', hsl_value.l < 0.5 ? '#fff' : '#000')
if (props.clear_color_to) { if (props.clear_color_to) {
@ -79,7 +79,6 @@ const loadEnv = async () => {
texture.needsUpdate = true texture.needsUpdate = true
scene.value.background = texture scene.value.background = texture
texture.dispose() texture.dispose()
console.log(canvas.toDataURL())
} }
} }