Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to Fern are listed here. Versions follow the Android `versio

## Unreleased

**Accessibility**
* Gauges, peak chips and spec rows are announced as one item by TalkBack (e.g. "CPU 42 percent, 8 cores") instead of separate fragments
* Decorative icons no longer read out "Decorative"

**UI**
* Tabs and sub-screens slide in the direction of travel; Home, Details and More cards fade and lift in one after another
* Live chip has a pulsing dot, the refresh icon spins on tap, and the first load shows placeholder cards instead of plain text
Expand Down
9 changes: 7 additions & 2 deletions app/src/main/java/com/endroid/fern/ui/FernApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,9 @@ private fun PeakChip(label: String, value: String, modifier: Modifier = Modifier
),
shape = MaterialTheme.shapes.large,
elevation = CardDefaults.cardElevation(defaultElevation = 0.dp),
modifier = modifier
modifier = modifier.semantics(mergeDescendants = true) {
contentDescription = "$label $value"
}
) {
Column(
modifier = Modifier
Expand Down Expand Up @@ -1095,6 +1097,7 @@ private fun SpecRow(label: String, value: String) {
Row(
modifier = Modifier
.fillMaxWidth()
.semantics(mergeDescendants = true) {}
.padding(vertical = 3.dp),
horizontalArrangement = Arrangement.SpaceBetween,
verticalAlignment = Alignment.Top
Expand Down Expand Up @@ -2695,7 +2698,9 @@ private fun Gauge(
),
shape = MaterialTheme.shapes.extraLarge,
elevation = CardDefaults.cardElevation(defaultElevation = 0.dp),
modifier = modifier
modifier = modifier.semantics(mergeDescendants = true) {
contentDescription = "$title ${percent.coerceIn(0f, 100f).toInt()} percent, $subtitle"
}
) {
Column(
modifier = Modifier.padding(horizontal = 12.dp, vertical = 14.dp),
Expand Down
Loading