enhance(icon-picker): clarify "Clear customized icons" tooltip

Replace the single-line tooltip with the two-line pattern used elsewhere
in the icon picker (color picker recents lane, contrast indicator):

  Reset to this default
  Replaces 4 custom icons

The previous copy ("Clear N customized icons — these rows will inherit
from this default again") repeated the button label, used an em dash,
and tied the framing to table-row terminology that doesn't translate
to other views. The new copy puts the outcome verb on the bold line
("Reset to this default", matching the codebase's :keymap/reset-to-default
key) and uses the muted line for scope ("Replaces N custom icons"),
keeping the subject on the icons themselves so it reads cleanly across
table, list, and gallery views.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
scheinriese
2026-05-14 16:43:38 +02:00
parent 9822f5307f
commit cb02c2eb66

View File

@@ -347,9 +347,12 @@
[:span (str "Clear " diverged-count " customized icon"
(when (not= 1 diverged-count) "s"))]))
(shui/tooltip-content
(str "Clear " diverged-count " customized icon"
(when (not= 1 diverged-count) "s")
" — these rows will inherit from this default again")))))]))
{:side "top" :align "center" :show-arrow true}
[:div.text-center
[:div.font-medium "Reset to this default"]
[:div.text-xs.opacity-70.mt-0.5
(str "Replaces " diverged-count " custom icon"
(when (not= 1 diverged-count) "s"))]]))))]))
(defn select-type?
[block property]