From 807a1d0c03a2542e051bcd4a1ee24cbf3abd16f3 Mon Sep 17 00:00:00 2001 From: "A.Olokhtonov" Date: Sat, 4 May 2024 19:01:04 +0300 Subject: [PATCH] More betterer picker icon. Hide dom brush when in picker mode --- client/icons/picker.svg | 65 +++++++++++++++++++++++++++------------ client/webgl_listeners.js | 2 ++ 2 files changed, 47 insertions(+), 20 deletions(-) diff --git a/client/icons/picker.svg b/client/icons/picker.svg index f23eef7..0841586 100644 --- a/client/icons/picker.svg +++ b/client/icons/picker.svg @@ -15,20 +15,20 @@ xmlns:svg="http://www.w3.org/2000/svg"> - + + + + + + + diff --git a/client/webgl_listeners.js b/client/webgl_listeners.js index c99d8b7..816058b 100644 --- a/client/webgl_listeners.js +++ b/client/webgl_listeners.js @@ -109,6 +109,7 @@ function zenmode() { function enter_picker_mode(state, context) { document.querySelector('canvas').classList.add('picker'); document.querySelector('.picker-preview-outer').classList.remove('dhide'); + document.querySelector('.brush-dom').classList.add('dhide'); state.colorpicking = true; @@ -119,6 +120,7 @@ function enter_picker_mode(state, context) { function exit_picker_mode(state) { document.querySelector('canvas').classList.remove('picker'); document.querySelector('.picker-preview-outer').classList.add('dhide'); + document.querySelector('.brush-dom').classList.remove('dhide'); state.colorpicking = false; }