Save for Web: Lock, Transparent and Web Shift are off for a selected color the table no longer shows

The three buttons act on the last color clicked (__color). After a change of reduction or color count, or through ui.dialog.set, that color can be one the table no longer shows, and a click added it to locked, transparent or webShift. The buttons are now enabled only when the table shows that color, the same check Delete Color uses.
This commit is contained in:
dotCooCoo
2026-11-17 19:13:47 -08:00
parent fc5460d18e
commit d1e9fc67db
3 changed files with 34 additions and 4 deletions
+2 -1
View File
@@ -9050,7 +9050,8 @@ the dialog a click selects one color, Shift-click selects the colors between it
Ctrl-click (Command-click on macOS) adds or removes one (`__colors` holds the selection, `__color` the last one
clicked). The trash button and Delete Color in the table's menu delete the selected colors the table shows in one edit,
and are off when it shows none of them (a selected color can leave the table when the reduction or the color count
changes). Restore Generated
changes). The Lock, Transparent and Web Shift buttons act on the last color clicked, and are off when the table no longer
shows it. Restore Generated
Table in that menu clears `deleted` and `customPalette`, and the table reads Custom while either is set. Choosing
another reduction in the dialog also clears them.