diff --git a/scripts/ui/dashboard_screen.gd b/scripts/ui/dashboard_screen.gd index 778ae3e..88b1fac 100644 --- a/scripts/ui/dashboard_screen.gd +++ b/scripts/ui/dashboard_screen.gd @@ -54,31 +54,6 @@ func _build() -> void: content.add_theme_constant_override("separation", 14) scroll.add_child(content) - var eyebrow := _label("YOUR PROGRESS", 13, Brand.ROYAL_BLUE) - content.add_child(eyebrow) - var hero_row := HBoxContainer.new() - hero_row.add_theme_constant_override("separation", 16) - content.add_child(hero_row) - var hero_copy := VBoxContainer.new() - hero_copy.size_flags_horizontal = Control.SIZE_EXPAND_FILL - hero_row.add_child(hero_copy) - var display_name := AuthState.username.strip_edges() - if display_name.is_empty(): - display_name = "there" - else: - display_name = display_name.split("@")[0].capitalize() - hero_copy.add_child(_label("Welcome back, %s" % display_name, 28, Brand.text_color(UIThemeService.is_dark_mode()), true)) - hero_copy.add_child(_label("Here is how your Step 3 preparation is progressing.", 15, Brand.muted_color(UIThemeService.is_dark_mode()))) - var actions := HBoxContainer.new() - actions.add_theme_constant_override("separation", 10) - hero_copy.add_child(actions) - var continue_button := _button("Continue studying", "chevron-right") - continue_button.pressed.connect(func(): main.show_screen("selection", "question_bank")) - actions.add_child(continue_button) - var missed_button := _button("Review missed questions", "clipboard-list", false) - missed_button.pressed.connect(func(): main.show_screen("profile")) - actions.add_child(missed_button) - status_label = _label("", 14, Brand.muted_color(UIThemeService.is_dark_mode())) status_label.visible = false content.add_child(status_label) @@ -301,7 +276,7 @@ func _render_recent(items: Array) -> void: func _add_metric(key: String, title: String, icon_name: String, accent: Color) -> void: var cell := HBoxContainer.new() cell.size_flags_horizontal = Control.SIZE_EXPAND_FILL - cell.custom_minimum_size = Vector2(230, 82) + cell.custom_minimum_size = Vector2(230, 96) cell.add_theme_constant_override("separation", 12) var icon_panel := PanelContainer.new() icon_panel.custom_minimum_size = Vector2(48, 48) @@ -316,10 +291,10 @@ func _add_metric(key: String, title: String, icon_name: String, accent: Color) - cell.add_child(icon_panel) var copy := VBoxContainer.new() copy.size_flags_vertical = Control.SIZE_SHRINK_CENTER - copy.add_child(_label(title, 12, Brand.text_color(UIThemeService.is_dark_mode()))) - var value := _label("--", 25, Brand.text_color(UIThemeService.is_dark_mode()), true) + copy.add_child(_label(title, 15, Brand.text_color(UIThemeService.is_dark_mode()))) + var value := _label("--", 29, Brand.text_color(UIThemeService.is_dark_mode()), true) copy.add_child(value) - var detail := _label("Loading", 11, Brand.muted_color(UIThemeService.is_dark_mode())) + var detail := _label("Loading", 13, Brand.muted_color(UIThemeService.is_dark_mode())) copy.add_child(detail) metric_values[key] = value metric_details[key] = detail