Update knob component defaults and clean up unused code

Adjusted the default value, minValue, and step for the volume knob to improve precision. Removed unused `KnobBackgroundCls` and cleaned up unnecessary whitespace for better readability and maintainability.
This commit is contained in:
2025-05-15 16:11:31 +02:00
parent 29cc78c6ba
commit 14e097a2cb
5 changed files with 7 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
plugins {
kotlin("multiplatform") version "2.1.10"
kotlin("multiplatform") version "2.1.20"
`maven-publish`
signing
}

View File

@@ -159,7 +159,6 @@ open class BaseKnobComponent(
KnobVolumeBackgroundCls.name
)
}
}
span(KnobTextCls.name) {
@@ -201,6 +200,7 @@ open class BaseKnobComponent(
activated = false
}
}
}
}
@@ -313,7 +313,6 @@ open class BaseKnobComponent(
object KnobSvgCls : CssName()
object KnobTextCls : CssName()
object KnobValueCls : CssName()
object KnobBackgroundCls : CssName()
object KnobVolumeCls : CssName()
object KnobVolumeBackgroundCls : CssName()

View File

@@ -137,11 +137,11 @@ class MainView : Komponent() {
div(ControlsCss.name) {
include(
ExpKnobComponent(
value = 0.0,
value = 0.001,
label = "Volume",
minValue = 0.0,
minValue = 0.001,
maxValue = 1.0,
step = 5.0 / 127.0,
step = 10.0 / 127.0,
width = 100,
height = 120,
) { value ->

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long