Improve donation defaults and light contrast
This commit is contained in:
@@ -18,8 +18,8 @@ func _run() -> void:
|
||||
host.add_child(screen)
|
||||
await process_frame
|
||||
_assert(screen.content_grid.columns == 2, "wide donation layouts should use two columns")
|
||||
_assert(screen.selected_amount_cents == 2500, "the default preset should be $25")
|
||||
_assert(screen.donate_button.text.contains("$25.00"), "the donation action should state the selected amount")
|
||||
_assert(screen.selected_amount_cents == 500, "the default preset should be $5")
|
||||
_assert(screen.donate_button.text.contains("$5.00"), "the donation action should state the selected amount")
|
||||
screen.size = Vector2(760, 800)
|
||||
screen._update_layout()
|
||||
_assert(screen.content_grid.columns == 1, "narrow donation layouts should stack")
|
||||
@@ -34,6 +34,8 @@ func _run() -> void:
|
||||
await process_frame
|
||||
var light_box := screen.mission_panel.get_theme_stylebox("panel") as StyleBoxFlat
|
||||
_assert(light_box.bg_color.is_equal_approx(Color.WHITE), "donation cards should use light surfaces in light mode")
|
||||
_assert(screen.muted_labels[0].get_theme_color("font_color").is_equal_approx(Color("64748b")),
|
||||
"secondary donation text should use the readable light-mode color")
|
||||
host.queue_free()
|
||||
await process_frame
|
||||
theme_service.set_dark_mode(prior_dark_mode)
|
||||
|
||||
Reference in New Issue
Block a user