Skip to content

Commit

Permalink
Set project's name as gloval var
Browse files Browse the repository at this point in the history
  • Loading branch information
OhhTuRnz committed Feb 4, 2024
1 parent b7acbb8 commit 6f7eb5c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/com/example/mad_2024_app/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.unit.dp

val PurpleColor = Color(0xFF6200EE)
val ProjectName = "OpenWeatherKt"

class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -58,7 +59,7 @@ fun Header(headerColor: Color) {
modifier = Modifier.fillMaxWidth()
) {
Text(
text = "OpenWeatherKt",
text = ProjectName,
color = Color.White,
style = MaterialTheme.typography.headlineSmall,
modifier = Modifier.padding(16.dp)
Expand Down

0 comments on commit 6f7eb5c

Please sign in to comment.