Fix remaining web study mode artifacts
This commit is contained in:
@@ -185,7 +185,7 @@ func _build_mode_view() -> void:
|
||||
"Coming Soon",
|
||||
"Coming Soon",
|
||||
"Endless practice with AI-generated questions\ntailored to your performance.",
|
||||
"medmind",
|
||||
"activity",
|
||||
false,
|
||||
Brand.PURPLE)
|
||||
|
||||
@@ -202,35 +202,6 @@ func _build_mode_view() -> void:
|
||||
ccs_status_label = ccs_card.status
|
||||
ccs_button.pressed.connect(_select_ccs)
|
||||
|
||||
var spacer := Control.new()
|
||||
spacer.size_flags_vertical = Control.SIZE_EXPAND_FILL
|
||||
mode_view.add_child(spacer)
|
||||
|
||||
var simulation_note := HBoxContainer.new()
|
||||
simulation_note.add_theme_constant_override("separation", 8)
|
||||
mode_view.add_child(simulation_note)
|
||||
var info := Label.new()
|
||||
info.text = "i"
|
||||
info.add_theme_font_size_override("font_size", 17)
|
||||
info.add_theme_color_override("font_color", Brand.SLATE)
|
||||
simulation_note.add_child(info)
|
||||
var note := RichTextLabel.new()
|
||||
note.bbcode_enabled = true
|
||||
note.fit_content = true
|
||||
note.scroll_active = false
|
||||
note.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||
note.size_flags_horizontal = Control.SIZE_EXPAND_FILL
|
||||
note.custom_minimum_size.x = 0
|
||||
note.text = "Full-length, 12-block simulation is available in the [url=exams][color=#7c3aed]Exams[/color][/url] section."
|
||||
note.add_theme_font_override("normal_font", Brand.font)
|
||||
note.add_theme_font_size_override("normal_font_size", 15)
|
||||
note.add_theme_color_override("default_color", Brand.SLATE)
|
||||
note.set_meta("medmind_role", "muted_rich")
|
||||
themed_controls.append(note)
|
||||
note.meta_clicked.connect(func(_meta: Variant): main.show_screen("simulation_history"))
|
||||
simulation_note.add_child(note)
|
||||
|
||||
|
||||
func _add_mode_card(
|
||||
title_text: String,
|
||||
subtitle_text: String,
|
||||
@@ -277,6 +248,7 @@ func _add_mode_card(
|
||||
themed_controls.append(icon_panel)
|
||||
header.add_child(icon_panel)
|
||||
var icon := TextureRect.new()
|
||||
icon.name = "%sIcon" % title_text.replace(" ", "")
|
||||
icon.mouse_filter = Control.MOUSE_FILTER_IGNORE
|
||||
icon.texture = preload("res://assets/branding/medmind-icon.png") if icon_name == "medmind" else load("res://assets/icons/lucide/%s.svg" % icon_name)
|
||||
icon.material = Brand.logo_cutout_material() if icon_name == "medmind" else null
|
||||
|
||||
Reference in New Issue
Block a user