Rebrand app as RanaZe Step 3 Trainer
This commit is contained in:
@@ -19,7 +19,7 @@ func _initialize() -> void:
|
||||
_assert(NavigationRoutes.key_for_screen("settings") == "settings", "settings should activate Settings")
|
||||
_assert(NavigationRoutes.key_for_screen("notes") == "notes", "notes should activate Notes")
|
||||
_assert(NavigationRoutes.key_for_screen("bookmarks") == "bookmarks", "bookmarks should activate Bookmarks")
|
||||
_assert(NavigationRoutes.key_for_screen("donations") == "donations", "donations should activate Support MedMind")
|
||||
_assert(NavigationRoutes.key_for_screen("donations") == "donations", "donations should activate Support RanaZe")
|
||||
quit(1 if failures > 0 else 0)
|
||||
|
||||
|
||||
|
||||
@@ -7,6 +7,9 @@ var failures := 0
|
||||
|
||||
|
||||
func _initialize() -> void:
|
||||
_assert(ProjectSettings.get_setting("application/config/name") == "RanaZe: Step 3 Trainer", "the public application name should use the RanaZe brand")
|
||||
_assert(bool(ProjectSettings.get_setting("application/config/use_custom_user_dir")), "the rebrand should preserve a stable custom user-data directory")
|
||||
_assert(ProjectSettings.get_setting("application/config/custom_user_dir_name") == "MedMind", "existing standalone user data should remain discoverable after the rebrand")
|
||||
Style.set_dark_mode(true)
|
||||
var root := Control.new()
|
||||
var background := ColorRect.new()
|
||||
@@ -22,9 +25,9 @@ func _initialize() -> void:
|
||||
_assert(root.theme.get_color("default_color", "RichTextLabel").is_equal_approx(Style.TEXT), "rich text should use the light text color")
|
||||
var light_box := panel.get_theme_stylebox("panel") as StyleBoxFlat
|
||||
_assert(light_box.bg_color.is_equal_approx(Color("fffffe")), "custom panel surface should switch to light mode")
|
||||
_assert(Brand.background_color(false).is_equal_approx(Color("f1f5f9")), "MedMind light background should match the style guide")
|
||||
_assert(Brand.background_color(false).is_equal_approx(Color("f1f5f9")), "RanaZe light background should match the style guide")
|
||||
var light_card := Brand.content_card_box(false, true, Brand.ROYAL_BLUE)
|
||||
_assert(light_card.bg_color.is_equal_approx(Color.WHITE), "MedMind light cards should use white surfaces")
|
||||
_assert(light_card.bg_color.is_equal_approx(Color.WHITE), "RanaZe light cards should use white surfaces")
|
||||
_assert(light_card.border_color.is_equal_approx(Brand.ROYAL_BLUE), "active light cards should use the primary blue border")
|
||||
var light_field := Brand.field_box(false)
|
||||
_assert(light_field.border_color.is_equal_approx(Brand.LIGHT_BORDER), "light fields should use the semantic cool-gray border")
|
||||
|
||||
@@ -75,7 +75,7 @@ func _run() -> void:
|
||||
var profile_nav := main_screen.sidebar.find_child("NavPerformance", true, false) as Button
|
||||
var settings_nav := main_screen.sidebar.find_child("NavSettings", true, false) as Button
|
||||
var donation_nav := main_screen.sidebar.find_child("NavDonations", true, false) as Button
|
||||
_assert(donation_nav != null and donation_nav.text == "Support MedMind", "the shell should expose donation navigation")
|
||||
_assert(donation_nav != null and donation_nav.text == "Support RanaZe", "the shell should expose donation navigation")
|
||||
_assert(profile_nav != null and settings_nav != null and profile_nav.get_index() + 1 == settings_nav.get_index(), "Profile should sit directly above Settings in the lower navigation group")
|
||||
var theme_service = root.get_node("UIThemeService")
|
||||
var prior_dark_mode: bool = theme_service.is_dark_mode()
|
||||
|
||||
Reference in New Issue
Block a user