From c904d55b6952b0320efac7bbc15ad2ea97b0e9ab Mon Sep 17 00:00:00 2001 From: Stef Tervelde Date: Fri, 14 Mar 2025 12:58:53 +0100 Subject: [PATCH] Beta screen visual tweaks --- app/src/main/resources/bird.svg | 5 +++++ app/src/processing/app/ui/WelcomeToBeta.kt | 16 +++++++--------- build/shared/lib/languages/PDE.properties | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 app/src/main/resources/bird.svg diff --git a/app/src/main/resources/bird.svg b/app/src/main/resources/bird.svg new file mode 100644 index 000000000..90d69c899 --- /dev/null +++ b/app/src/main/resources/bird.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/app/src/processing/app/ui/WelcomeToBeta.kt b/app/src/processing/app/ui/WelcomeToBeta.kt index 6184ecd5f..d7492fa6a 100644 --- a/app/src/processing/app/ui/WelcomeToBeta.kt +++ b/app/src/processing/app/ui/WelcomeToBeta.kt @@ -101,36 +101,34 @@ class WelcomeToBeta { ){ val locale = LocalLocale.current Image( - painter = painterResource("logo.svg"), + painter = painterResource("bird.svg"), contentDescription = locale["beta.logo"], modifier = Modifier .align(Alignment.CenterVertically) .size(100.dp, 100.dp) + .offset(0.dp, (-25).dp) ) Column( modifier = Modifier .fillMaxHeight(), verticalArrangement = Arrangement .spacedBy( - MaterialTheme.typography.subtitle1.lineHeight.value.dp, + 10.dp, alignment = Alignment.CenterVertically ) ) { Text( text = locale["beta.title"], - style = MaterialTheme.typography.subtitle1, + style = typography.subtitle1, ) val text = locale["beta.message"] .replace('$' + "version", getVersionName()) .replace('$' + "revision", getRevision().toString()) Markdown( text, - colors = markdownColor( - text = colors.onSurface, - linkText = colors.primary, - ), - typography = markdownTypography(text = typography.body1), - modifier = Modifier.background(Color.Transparent) + colors = markdownColor(), + typography = markdownTypography(text = typography.body1, link = typography.body1.copy(color = colors.primary)), + modifier = Modifier.background(Color.Transparent).padding(bottom = 10.dp) ) Row { Spacer(modifier = Modifier.weight(1f)) diff --git a/build/shared/lib/languages/PDE.properties b/build/shared/lib/languages/PDE.properties index 8dfeb26e0..e56de5108 100644 --- a/build/shared/lib/languages/PDE.properties +++ b/build/shared/lib/languages/PDE.properties @@ -618,7 +618,7 @@ update_check.updates_available.contributions = There are updates available for s # Beta beta.window.title = Welcome to Beta beta.title = Thanks for testing this Processing Beta! -beta.message = This preview release lets us gather feedback and fix issues before the final version. Some features may not work as expected. If you encounter problems, [please post on the forum](https://discourse.processing.org) or [open a GitHub issue](https://github.com/processing/processing4/issues). \n\n [What's new in this release?](https://github.com/processing/processing4/releases/tag/processing-$revision-$version) +beta.message = This preview release lets us gather feedback and fix issues before the final version. **Some features may not work as expected.** If you encounter problems, [please post on the forum](https://discourse.processing.org) or [open a GitHub issue](https://github.com/processing/processing4/issues). beta.button = Ok # ---------------------------------------