Redesign flashcards for visual hierarchy and button consistency
Study card: label the answer and "key takeaway" as distinct sections
with a real visible divider (previously an all-but-invisible
HSeparator) instead of one undifferentiated block of text. Also fixes
a real gap where a cloze card's extra field was silently dropped,
since only basic notes combined answer+extra into one label. Bigger
card, gradient Show-Answer button matching the app's signature CTA
style instead of a duller flat teal, and the Undo button now hides
itself when there's nothing to undo instead of sitting there disabled
looking identical to a real action.
Library: colored type badge per card (Basic/Cloze) instead of plain
gray text, more breathing room inside each row, Study promoted to the
same gradient CTA style, and Edit/Archive given a real secondary
button treatment instead of default theme buttons. Note editor fields
renamed ("Back / Extra takeaway" + a separate "Extra" field was
genuinely confusing) and now show which deck a card is being saved to.
This commit is contained in:
@@ -99,8 +99,8 @@ func _run() -> void:
|
||||
study.size = Vector2(1280, 720)
|
||||
study._update_responsive_layout()
|
||||
_assert(not study.compact_layout, "a wide viewport should restore the study screen's desktop layout")
|
||||
_assert(is_equal_approx(study.card_panel.custom_minimum_size.x, 640.0),
|
||||
"a wide viewport should restore the study card's full 640px width")
|
||||
_assert(is_equal_approx(study.card_panel.custom_minimum_size.x, 720.0),
|
||||
"a wide viewport should restore the study card's full 720px width")
|
||||
|
||||
study.free()
|
||||
host.queue_free()
|
||||
|
||||
Reference in New Issue
Block a user