From 385a691e3e3225efdd8ba64f86c031eb6e93c8b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=AA=E3=82=AD=E8=90=8C?= Date: Thu, 26 Jun 2025 01:22:13 +0200 Subject: [PATCH] make the brush discard dialogue more clear change text from 'Yes' to 'Discard changes and switch brush' --- static/brush-box.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/static/brush-box.js b/static/brush-box.js index 170e34c..1c2bc92 100644 --- a/static/brush-box.js +++ b/static/brush-box.js @@ -178,13 +178,17 @@ export class BrushBox extends HTMLElement { confirmation.addHtmlP( "Your brush has unsaved changes." + - "
Loading another brush will discard them." + + "
Switching to another brush will discard them." + "
Are you sure?", ); confirmation.addSeparator(); - confirmation.addButton("Yes").addEventListener("click", () => { - this.#sendBrushChange(preset); - }); + confirmation + .addButton("Discard changes and switch brush", { + classList: ["destructive"], + }) + .addEventListener("click", () => { + this.#sendBrushChange(preset); + }); confirmation.addHtmlP("Click anywhere else to cancel", { classList: ["small"], });