Redesign exam and CCS experiences
This commit is contained in:
@@ -716,7 +716,7 @@ func _teaching_card_box(dark: bool, accent: Color) -> StyleBoxFlat:
|
||||
return box
|
||||
|
||||
|
||||
func _review_followup_box(dark: bool, accent: Color, answered: bool) -> StyleBoxFlat:
|
||||
func _review_followup_box(_dark: bool, accent: Color, answered: bool) -> StyleBoxFlat:
|
||||
var box := StyleBoxFlat.new()
|
||||
box.bg_color = Color(accent, 0.075 if answered else 0.04)
|
||||
box.border_color = Color(accent, 0.5)
|
||||
@@ -1849,7 +1849,7 @@ func refresh_theme_controls() -> void:
|
||||
func _refresh_theme_button() -> void:
|
||||
if theme_button == null:
|
||||
return
|
||||
theme_button.text = "☀" if theme_service.is_dark_mode() else "☾"
|
||||
Brand.set_theme_toggle_icon(theme_button, theme_service.is_dark_mode())
|
||||
theme_button.tooltip_text = "Switch to light mode" if theme_service.is_dark_mode() else "Switch to dark mode"
|
||||
Style.style_chip(theme_button, Style.CYAN)
|
||||
|
||||
@@ -2868,7 +2868,7 @@ func _show_wrong_answer_followup(choice_id: String) -> void:
|
||||
question_scroll.call_deferred("ensure_control_visible", choice_followup_panels[index])
|
||||
|
||||
|
||||
func _build_followup_panel(index: int, choice_id: String) -> void:
|
||||
func _build_followup_panel(_index: int, choice_id: String) -> void:
|
||||
var followup := _get_followup_for_choice(choice_id)
|
||||
var followup_choices: Array = followup.get("choices", []).duplicate(true)
|
||||
followup_choices.shuffle()
|
||||
@@ -2944,7 +2944,7 @@ func _answer_followup(option_id: String, selected_button: Button, followup: Dict
|
||||
_resolve_followup(followup, selected_button, true, is_correct)
|
||||
|
||||
|
||||
func _resolve_followup(followup: Dictionary, selected_button: Button, style_selected: bool, is_correct: bool) -> void:
|
||||
func _resolve_followup(_followup: Dictionary, selected_button: Button, _style_selected: bool, is_correct: bool) -> void:
|
||||
if not followup_required or followup_answered:
|
||||
return
|
||||
followup_answered = true
|
||||
|
||||
Reference in New Issue
Block a user