From 5951650903b228bb01171f8d47965e22a949a518 Mon Sep 17 00:00:00 2001 From: skal Date: Wed, 28 Jan 2026 12:00:50 +0100 Subject: feat(editor): Implement drawing tools and advanced undo/redo This commit significantly enhances the web spectrogram editor by implementing core drawing tools (line, ellipse, noise) and a robust undo/redo system. - and : Added redo button and styling. - : Implemented canvas event handling, dynamic shape previews, and the logic for lines and noise rectangles. - : Now reconstructs the spectrogram from a clean base, allowing proper undo/redo. - : Uses an improved color gradient for better visualization. - : Stores original spectrogram data for persistent state management. --- tools/editor/style.css | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'tools/editor/style.css') diff --git a/tools/editor/style.css b/tools/editor/style.css index f610969..c02eb4a 100644 --- a/tools/editor/style.css +++ b/tools/editor/style.css @@ -33,3 +33,25 @@ h1, h2 { padding: 10px; cursor: pointer; } + +#undoButton { + background-color: #d9534f; + color: white; + border: none; + border-radius: 4px; +} + +#undoButton:hover { + background-color: #c9302c; +} + +#redoButton { + background-color: #5cb85c; + color: white; + border: none; + border-radius: 4px; +} + +#redoButton:hover { + background-color: #4cae4c; +} -- cgit v1.2.3