Skip to content

Commit 50cc163

Browse files
eriedclaude
andcommitted
feat(automation): raise the auto-volume boost ceiling to 4x
The volume-curve editor capped the multiplier at 2x. Lift it to 4x for more headroom and switch the Y axis to integer ticks (1x..4x). The runtime already honors whatever the curve says and the curve stays user-controlled, so nobody is forced louder, they just have more room to boost. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GADLyChheAoMX9dQbRgRnH
1 parent 2f95e01 commit 50cc163

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/src/main/java/com/eried/eucplanet/ui/settings/AutomationsContent.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ private fun SplineCurveEditor(
555555
val maxSpeed = 75f
556556
val speedUnitLabel = Units.speedUnit(androidx.compose.ui.platform.LocalContext.current, speedUnit)
557557
val minMultiplier = 1f
558-
val maxMultiplier = 2f
558+
val maxMultiplier = 4f
559559
val multiplierRange = maxMultiplier - minMultiplier
560560
val gridColor = MaterialTheme.colorScheme.surfaceVariant
561561
val labelColor = MaterialTheme.colorScheme.onSurfaceVariant
@@ -653,12 +653,12 @@ private fun SplineCurveEditor(
653653
val measured = textMeasurer.measure(label, TextStyle(fontSize = 9.sp, color = labelColor))
654654
drawText(measured, topLeft = Offset(x - measured.size.width / 2f, h + 4f))
655655
}
656-
// Y-axis ticks at 1×, 1.5×, 2× (3 lines for clean labels)
657-
for (i in 0..2) {
658-
val mult = minMultiplier + i * 0.5f
656+
// Y-axis ticks at each integer multiplier (1x .. maxMultiplier) for clean labels.
657+
for (i in minMultiplier.toInt()..maxMultiplier.toInt()) {
658+
val mult = i.toFloat()
659659
val y = h - (mult - minMultiplier) / multiplierRange * h
660660
drawLine(gridColor, Offset(0f, y), Offset(w, y), strokeWidth = 1f, pathEffect = dash)
661-
val label = if (mult == mult.toInt().toFloat()) "${mult.toInt()}x" else "${mult}x"
661+
val label = "${i}x"
662662
val measured = textMeasurer.measure(label, TextStyle(fontSize = 9.sp, color = labelColor))
663663
drawText(measured, topLeft = Offset(-measured.size.width - 4f, y - measured.size.height / 2f))
664664
}

0 commit comments

Comments
 (0)