Skip to content

Commit ef56214

Browse files
committed
update tutorial descriptions and text formatting
1 parent 79d989e commit ef56214

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

app/src/main/java/com/uravgcode/chooser/tutorial/presentation/TutorialScreen.kt

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,40 +64,49 @@ fun TutorialScreen(
6464
Page.WELCOME -> TutorialPage(
6565
previewId = R.drawable.chooser_preview_animated,
6666
title = "Welcome to Chooser",
67-
description = "Place your fingers on the screen and let the app choose for you",
67+
description = "Make quick, unbiased decisions with a touch. Place multiple fingers on screen, wait a brief moment, and Chooser will do the rest.",
6868
isVisible = isPageFullyVisible,
6969
)
7070

7171
Page.BUTTON -> TutorialPage(
7272
previewId = R.drawable.button_preview_animated,
7373
title = "How to Use",
74-
description = "Mode Button: Switch between Single, Group, and Order modes\n" +
75-
"Number Button: Change the number of winners or groups\n" +
76-
"Settings: Long press Mode button for settings",
74+
description = """
75+
<p>
76+
<b>Mode Button</b><br>
77+
Switch between Single, Group, and Order modes.
78+
<b>Long press</b> to access additional settings.
79+
</p>
80+
<br>
81+
<p>
82+
<b>Number Button</b><br>
83+
Adjust how many fingers to select or groups to create.
84+
</p>
85+
""",
7786
isVisible = true,
7887
)
7988

8089
Page.SINGLE_MODE -> TutorialPage(
8190
iconId = R.drawable.single_icon,
8291
previewId = R.drawable.single_preview_animated,
8392
title = "Single Mode",
84-
description = "Chooses a random finger from all placed on screen",
93+
description = "Selects a random finger from all touching the screen.",
8594
isVisible = isPageFullyVisible,
8695
)
8796

8897
Page.GROUP_MODE -> TutorialPage(
8998
iconId = R.drawable.group_icon,
9099
previewId = R.drawable.group_preview_animated,
91100
title = "Group Mode",
92-
description = "Divides all fingers into equal teams",
101+
description = "Divides all fingers into balanced teams or groups.",
93102
isVisible = isPageFullyVisible,
94103
)
95104

96105
Page.ORDER_MODE -> TutorialPage(
97106
iconId = R.drawable.order_icon,
98107
previewId = R.drawable.order_preview_animated,
99108
title = "Order Mode",
100-
description = "Assigns a random order to all fingers",
109+
description = "Creates a random sequence of all fingers on screen.",
101110
isVisible = isPageFullyVisible,
102111
)
103112
}

app/src/main/java/com/uravgcode/chooser/tutorial/presentation/component/TutorialPage.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ import androidx.compose.ui.Alignment
2828
import androidx.compose.ui.Modifier
2929
import androidx.compose.ui.layout.ContentScale
3030
import androidx.compose.ui.res.painterResource
31+
import androidx.compose.ui.text.AnnotatedString
3132
import androidx.compose.ui.text.font.FontWeight
33+
import androidx.compose.ui.text.fromHtml
3234
import androidx.compose.ui.text.style.TextAlign
3335
import androidx.compose.ui.unit.dp
3436
import kotlinx.coroutines.delay
@@ -78,7 +80,7 @@ fun TutorialPage(
7880
painter = painterResource(it),
7981
contentDescription = null,
8082
modifier = Modifier
81-
.size(38.dp)
83+
.size(42.dp)
8284
.padding(end = 8.dp),
8385
)
8486
}
@@ -89,7 +91,7 @@ fun TutorialPage(
8991
)
9092
}
9193
Text(
92-
text = description,
94+
text = AnnotatedString.fromHtml(description),
9395
textAlign = TextAlign.Center,
9496
modifier = Modifier.padding(top = 8.dp)
9597
)

0 commit comments

Comments
 (0)