Rebrand app as RanaZe Step 3 Trainer

This commit is contained in:
hz
2026-07-20 00:04:29 -05:00
parent 743399f647
commit d176640cff
25 changed files with 206 additions and 92 deletions
+36 -25
View File
@@ -126,27 +126,37 @@ func _build_ui() -> void:
brand_row.add_theme_constant_override("separation", 24)
left_brand.add_child(brand_row)
var large_icon := TextureRect.new()
large_icon.texture = preload("res://assets/branding/medmind-icon.png")
large_icon.texture = Brand.ranaze_mark_texture()
large_icon.custom_minimum_size = Vector2(190, 190)
large_icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
large_icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
large_icon.material = Brand.logo_cutout_material()
brand_row.add_child(large_icon)
var wordmark := HBoxContainer.new()
wordmark.add_theme_constant_override("separation", 0)
var wordmark := VBoxContainer.new()
wordmark.add_theme_constant_override("separation", 4)
brand_row.add_child(wordmark)
var med_wordmark := Label.new()
med_wordmark.text = "Med"
med_wordmark.add_theme_font_size_override("font_size", 76)
med_wordmark.add_theme_font_override("font", Brand.font)
wordmark.add_child(med_wordmark)
var mind_wordmark := Label.new()
mind_wordmark.text = "Mind"
mind_wordmark.add_theme_font_size_override("font_size", 76)
mind_wordmark.add_theme_font_override("font", Brand.font)
mind_wordmark.add_theme_color_override("font_color", Brand.PURPLE)
mind_wordmark.set_meta("brand_accent", true)
wordmark.add_child(mind_wordmark)
var name_row := HBoxContainer.new()
name_row.add_theme_constant_override("separation", 0)
wordmark.add_child(name_row)
var rana_wordmark := Label.new()
rana_wordmark.text = "Rana"
rana_wordmark.add_theme_font_size_override("font_size", 76)
rana_wordmark.add_theme_font_override("font", Brand.font)
name_row.add_child(rana_wordmark)
var ze_wordmark := Label.new()
ze_wordmark.text = "Ze"
ze_wordmark.add_theme_font_size_override("font_size", 76)
ze_wordmark.add_theme_font_override("font", Brand.font)
ze_wordmark.add_theme_color_override("font_color", Brand.SKY_BLUE)
ze_wordmark.set_meta("brand_accent", true)
name_row.add_child(ze_wordmark)
var trainer_wordmark := Label.new()
trainer_wordmark.text = "STEP 3 TRAINER"
trainer_wordmark.add_theme_font_size_override("font_size", 22)
trainer_wordmark.add_theme_font_override("font", Brand.font)
trainer_wordmark.add_theme_color_override("font_color", Brand.muted_color(true))
trainer_wordmark.set_meta("brand_subtitle", true)
trainer_wordmark.horizontal_alignment = HORIZONTAL_ALIGNMENT_CENTER
wordmark.add_child(trainer_wordmark)
brand_tagline = RichTextLabel.new()
brand_tagline.bbcode_enabled = true
brand_tagline.fit_content = true
@@ -177,11 +187,10 @@ func _build_ui() -> void:
panel_header.add_theme_constant_override("separation", 18)
panel_content.add_child(panel_header)
var small_icon := TextureRect.new()
small_icon.texture = preload("res://assets/branding/medmind-icon.png")
small_icon.texture = Brand.ranaze_mark_texture()
small_icon.custom_minimum_size = Vector2(72, 72)
small_icon.expand_mode = TextureRect.EXPAND_IGNORE_SIZE
small_icon.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_CENTERED
small_icon.material = Brand.logo_cutout_material()
panel_header.add_child(small_icon)
var titles := VBoxContainer.new()
titles.size_flags_horizontal = Control.SIZE_EXPAND_FILL
@@ -231,7 +240,7 @@ func _build_login_view() -> VBoxContainer:
view.add_child(steam)
submit_buttons.append(steam)
var create := Button.new()
create.text = "New to MedMind? Create an account"
create.text = "New to RanaZe? Create an account"
create.flat = true
create.pressed.connect(func(): _set_mode("register"))
view.add_child(create)
@@ -272,12 +281,12 @@ func _build_reset_view() -> VBoxContainer:
func _build_steam_view() -> VBoxContainer:
var view := _new_form()
var help := Label.new()
help.text = "Steam was verified. Create a MedMind account or link an existing one."
help.text = "Steam was verified. Create a RanaZe account or link an existing one."
help.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
view.add_child(help)
steam_action = OptionButton.new()
steam_action.add_item("Create a new MedMind account")
steam_action.add_item("Link an existing MedMind account")
steam_action.add_item("Create a new RanaZe account")
steam_action.add_item("Link an existing RanaZe account")
steam_action.item_selected.connect(_on_steam_action_changed)
view.add_child(steam_action)
steam_username_input = _add_field(view, "Username or email", "Choose a username")
@@ -405,9 +414,9 @@ func _set_mode(next_mode: String) -> void:
reset_view.visible = mode == "reset"
steam_view.visible = mode == "steam"
match mode:
"register": heading.text = "Create your account"; subheading.text = "Start studying with MedMind"
"register": heading.text = "Create your account"; subheading.text = "Start studying with RanaZe"
"reset": heading.text = "Reset your password"; subheading.text = "We will email you a verification code"
"steam": heading.text = "Finish Steam sign in"; subheading.text = "Connect Steam to MedMind"
"steam": heading.text = "Finish Steam sign in"; subheading.text = "Connect Steam to RanaZe"
_: heading.text = "Welcome back"; subheading.text = "Sign in to continue"
_clear_message()
_update_responsive_layout()
@@ -467,7 +476,9 @@ func _apply_theme() -> void:
for node in find_children("*", "Label", true, false):
var label := node as Label
if label.has_meta("brand_accent"):
label.add_theme_color_override("font_color", Brand.PURPLE if dark else Brand.ROYAL_BLUE)
label.add_theme_color_override("font_color", Brand.SKY_BLUE if dark else Brand.ROYAL_BLUE)
elif label.has_meta("brand_subtitle"):
label.add_theme_color_override("font_color", Brand.muted_color(dark))
else:
label.add_theme_color_override("font_color", Brand.text_color(dark))
for input in fields: