From 6f1b81d503395dcd30526a840b774021a741519c Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sat, 24 Jan 2026 21:38:00 +0000 Subject: [PATCH] fix(background): custom colour default --- src/features/background/options/Colour.jsx | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/features/background/options/Colour.jsx b/src/features/background/options/Colour.jsx index 1b57fef8..bb11662a 100644 --- a/src/features/background/options/Colour.jsx +++ b/src/features/background/options/Colour.jsx @@ -10,31 +10,22 @@ import '../scss/_colourpicker.scss'; const ColourOptions = () => { const [colour, setColour] = useState( - localStorage.getItem('customBackgroundColour') || 'rgba(0, 0, 0, 0)', + localStorage.getItem('customBackgroundColour') || 'rgba(0, 0, 0, 100)', ); const changeColour = (output) => { setColour(output); localStorage.setItem('customBackgroundColour', output); EventBus.emit('refresh', 'background'); - showReminder(); }; const resetColour = () => { setColour('rgba(0, 0, 0, 0)'); - localStorage.setItem('customBackgroundColour', 'rgba(0, 0, 0, 0)'); + localStorage.setItem('customBackgroundColour', 'rgba(0, 0, 0, 100)'); toast(variables.getMessage('toasts.reset')); EventBus.emit('refresh', 'background'); - showReminder(); }; - const showReminder = () => { - const reminderInfo = document.querySelector('.reminder-info'); - if (reminderInfo.style.display !== 'block') { - reminderInfo.style.display = 'block'; - localStorage.setItem('showReminder', true); - } - }; return (