Widen arrangement mute toggles and block headers ~1.5× (v0.12.1)
Bigger, easier thumb targets on the arrangement roll's left column: the mute toggle 34→51 dp and the block-number header 34→51 dp (laneColWidth 68→102). The scrollable ruler/roll to the right is unaffected. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -22,8 +22,8 @@ android {
|
|||||||
// (android.media.midi) and AAudio low-latency audio we rely on.
|
// (android.media.midi) and AAudio low-latency audio we rely on.
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 34
|
targetSdk = 34
|
||||||
versionCode = 31
|
versionCode = 32
|
||||||
versionName = "0.12.0"
|
versionName = "0.12.1"
|
||||||
|
|
||||||
// We provide our own instrumentation runner if/when tests are added.
|
// We provide our own instrumentation runner if/when tests are added.
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ fun ArrangementRoll(vm: AppViewModel) {
|
|||||||
val glyphs = remember(measurer) { GlyphCache(measurer) }
|
val glyphs = remember(measurer) { GlyphCache(measurer) }
|
||||||
|
|
||||||
val beatWidth = 20.dp
|
val beatWidth = 20.dp
|
||||||
val muteColWidth = 34.dp // wide enough to hit comfortably from the screen edge
|
val muteColWidth = 51.dp // ~1.5× — wider, easy to hit from the screen edge
|
||||||
val laneColWidth = 68.dp // mute toggle + block number
|
val laneColWidth = 102.dp // mute toggle (51) + block number header (51), both ~1.5×
|
||||||
val rulerHeight = 18.dp
|
val rulerHeight = 18.dp
|
||||||
val beatWidthPx = with(density) { beatWidth.toPx() }
|
val beatWidthPx = with(density) { beatWidth.toPx() }
|
||||||
val rulerHeightPx = with(density) { rulerHeight.toPx() }
|
val rulerHeightPx = with(density) { rulerHeight.toPx() }
|
||||||
|
|||||||
Reference in New Issue
Block a user