From f1868844a28b83f766e2d5238f5511a8c661d945 Mon Sep 17 00:00:00 2001 From: Abdelilah El Aissaoui Date: Mon, 4 Apr 2022 18:32:56 +0200 Subject: [PATCH] Extracted project name as a constant --- src/main/kotlin/app/App.kt | 2 +- src/main/kotlin/app/ui/WelcomePage.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/App.kt b/src/main/kotlin/app/App.kt index 5d77241..188520d 100644 --- a/src/main/kotlin/app/App.kt +++ b/src/main/kotlin/app/App.kt @@ -62,7 +62,7 @@ class App { if (isOpen) { Window( - title = "Gitnuro", + title = AppConstants.APP_NAME, onCloseRequest = { isOpen = false }, diff --git a/src/main/kotlin/app/ui/WelcomePage.kt b/src/main/kotlin/app/ui/WelcomePage.kt index 1383ac6..f96789d 100644 --- a/src/main/kotlin/app/ui/WelcomePage.kt +++ b/src/main/kotlin/app/ui/WelcomePage.kt @@ -119,7 +119,7 @@ fun HomeButtons( modifier = Modifier.padding(end = 32.dp), ) { Text( - text = "Gitnuro", + text = AppConstants.APP_NAME, fontSize = 32.sp, color = MaterialTheme.colors.primaryTextColor, modifier = Modifier.padding(bottom = 16.dp),