Skip to content

Commit e4c60f2

Browse files
eriedclaude
andcommitted
style(trip-details): left-align reset button, use plain "Reset" verb
The Customize sheet reset button now sits on the left (matching the metric-detail reset footer) and uses the app's shared "Reset" string instead of a one-off "Reset layout", so the verb is consistent with the other reset controls. Dropped the now-unused trip_customize_reset string. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GHUZZ33sT9FYS6sXiMogJc
1 parent 6fb1e3d commit e4c60f2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/java/com/eried/eucplanet/ui/recording/TripDetailScreen.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -864,14 +864,15 @@ private fun CustomizeSheet(
864864
}
865865

866866
// Restore the whole layout (all tiles and graphs shown, default
867-
// order). Greyed out when nothing differs from default, matching the
868-
// Advanced settings "Reset all" affordance.
867+
// order). Left-aligned with the Restore icon and the app's plain
868+
// "Reset" verb, matching the metric-detail reset footer. Greyed out
869+
// when nothing differs from default.
869870
Spacer(Modifier.height(4.dp))
870-
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End) {
871+
Row(Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.Start) {
871872
TextButton(onClick = onReset, enabled = canReset, shape = RoundedCornerShape(12.dp)) {
872873
Icon(Icons.Default.Restore, contentDescription = null, modifier = Modifier.size(18.dp))
873874
Spacer(Modifier.width(6.dp))
874-
Text(stringResource(R.string.trip_customize_reset))
875+
Text(stringResource(R.string.action_reset))
875876
}
876877
}
877878
}

app/src/main/res/values/strings.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,6 @@
12111211
<string name="trip_customize">Customize</string>
12121212
<string name="trip_customize_tiles">Stat tiles</string>
12131213
<string name="trip_customize_graphs">Graphs</string>
1214-
<string name="trip_customize_reset">Reset layout</string>
12151214

12161215
<!-- Automations / Auto tab -->
12171216
<string name="auto_lights_title">Lights</string>

0 commit comments

Comments
 (0)