Fix line spacing compile error (TextUnit addition), bump to 0.1.16

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
weishaupt
2026-10-28 22:43:19 -04:00
co-authored by Claude Sonnet 5.5
parent 03964ca313
commit ed5d9a9c78
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ plugins {
} }
group = "com.tpuahsiew.wirc" group = "com.tpuahsiew.wirc"
version = "0.1.15" version = "0.1.16"
// No project-level repositories{} block here: settings.gradle.kts sets // No project-level repositories{} block here: settings.gradle.kts sets
// dependencyResolutionManagement.repositoriesMode = FAIL_ON_PROJECT_REPOS and already // dependencyResolutionManagement.repositoriesMode = FAIL_ON_PROJECT_REPOS and already
@@ -40,7 +40,7 @@ compose.desktop {
appResourcesRootDir.set(project.file("installerResources")) appResourcesRootDir.set(project.file("installerResources"))
targetFormats(TargetFormat.Msi, TargetFormat.Exe) targetFormats(TargetFormat.Msi, TargetFormat.Exe)
packageName = "wIRC" packageName = "wIRC"
packageVersion = "0.1.15" packageVersion = "0.1.16"
windows { windows {
menuGroup = "wIRC" menuGroup = "wIRC"
upgradeUuid = "8f14e45f-ceea-4a5e-9c3b-5b1f0e8c2b7a" upgradeUuid = "8f14e45f-ceea-4a5e-9c3b-5b1f0e8c2b7a"
+1 -1
View File
@@ -862,7 +862,7 @@ fun MessageScrollback(
fontSize = displaySettings.fontSize.sp fontSize = displaySettings.fontSize.sp
) )
val naturalPx = textMeasurer.measure(text = "Mg", style = base).size.height val naturalPx = textMeasurer.measure(text = "Mg", style = base).size.height
val spacedLine = with(density) { naturalPx.toSp() } + (displaySettings.fontSize * LINE_SPACING_EXTRA).sp val spacedLine = with(density) { (naturalPx + (displaySettings.fontSize * LINE_SPACING_EXTRA).sp.toPx()).toSp() }
base.copy( base.copy(
lineHeight = spacedLine, lineHeight = spacedLine,
lineHeightStyle = androidx.compose.ui.text.style.LineHeightStyle( lineHeightStyle = androidx.compose.ui.text.style.LineHeightStyle(