Redesign clear-highlight icon as an eraser with sparkles

Also drop a stale custom_minimum_size(0, 54) reset left over in
_set_choice_button_text from before the answer row redesign - it was
silently overriding the button's real 68px minimum height on every
question load and on every elimination/strikethrough toggle, which is
why choice rows never actually got taller and why striking a choice
through visibly shrank its card.
This commit is contained in:
hz
2026-07-23 00:42:50 -05:00
parent 5f3289bb8e
commit b822fe5314
5 changed files with 16 additions and 9 deletions
@@ -1,5 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
<path d="M18.7 2.8 21.2 5.3 12.1 14.4 9.6 11.9 18.7 2.8Z" stroke="#CBD5E1" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M8.9 11.2 12.8 15.1C10.8 18.5 7.2 20.2 2.8 19.5 5.2 17.5 6.7 14.2 8.9 11.2Z" stroke="#CBD5E1" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M4.1 14.1H2.5M4.5 17H1.5M7.1 20.7H4.7" stroke="#8B5CF6" stroke-width="1.8" stroke-linecap="round"/>
<g transform="translate(13,12) rotate(45)">
<rect x="-3.2" y="-8.4" width="6.4" height="16.8" rx="1.5" stroke="#CBD5E1" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M-3.2 2.6H3.2" stroke="#CBD5E1" stroke-width="1.8" stroke-linecap="round"/>
</g>
<circle cx="9" cy="3.2" r="0.65" fill="#8B5CF6"/>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" transform="translate(0.46,-0.04) scale(0.42)" stroke="#8B5CF6" stroke-width="2" stroke-linejoin="round"/>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" transform="translate(16.2,13.6) scale(0.3)" stroke="#8B5CF6" stroke-width="2" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bx3x2rqpurqqw"
uid="uid://fl5g0hqtqegt"
path="res://.godot/imported/clear-highlight-dark.svg-67d9eee7c448efe7f572e5fc819b8ea0.ctex"
metadata={
"vram_texture": false
@@ -1,5 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
<path d="M18.7 2.8 21.2 5.3 12.1 14.4 9.6 11.9 18.7 2.8Z" stroke="#26344F" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M8.9 11.2 12.8 15.1C10.8 18.5 7.2 20.2 2.8 19.5 5.2 17.5 6.7 14.2 8.9 11.2Z" stroke="#26344F" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M4.1 14.1H2.5M4.5 17H1.5M7.1 20.7H4.7" stroke="#8B5CF6" stroke-width="1.8" stroke-linecap="round"/>
<g transform="translate(13,12) rotate(45)">
<rect x="-3.2" y="-8.4" width="6.4" height="16.8" rx="1.5" stroke="#26344F" stroke-width="1.8" stroke-linejoin="round"/>
<path d="M-3.2 2.6H3.2" stroke="#26344F" stroke-width="1.8" stroke-linecap="round"/>
</g>
<circle cx="9" cy="3.2" r="0.65" fill="#8B5CF6"/>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" transform="translate(0.46,-0.04) scale(0.42)" stroke="#8B5CF6" stroke-width="2" stroke-linejoin="round"/>
<path d="M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z" transform="translate(16.2,13.6) scale(0.3)" stroke="#8B5CF6" stroke-width="2" stroke-linejoin="round"/>
</svg>

Before

Width:  |  Height:  |  Size: 463 B

After

Width:  |  Height:  |  Size: 1.1 KiB

@@ -2,7 +2,7 @@
importer="texture"
type="CompressedTexture2D"
uid="uid://bgpsqicfixhew"
uid="uid://4vrs2omb0iy6"
path="res://.godot/imported/clear-highlight-light.svg-93f7a6cb5f22325bc90fadf2e89641fc.ctex"
metadata={
"vram_texture": false
-1
View File
@@ -3006,7 +3006,6 @@ func _set_choice_button_text(index: int, choice: Dictionary) -> void:
var display_label := _display_label_for_index(index)
if index < choice_badges.size():
choice_badges[index].text = display_label
choice_buttons[index].custom_minimum_size = Vector2(0, 54)
_set_choice_percent_label(index, "")
_set_choice_top_label(index, "")
if locked_wrong_choice_ids.has(choice_id) or _should_show_correct_choice_percentage(choice_id):