File tree Expand file tree Collapse file tree 3 files changed +21
-23
lines changed
Themes/src/commonMain/kotlin/io/nacular/doodle/theme/basic Expand file tree Collapse file tree 3 files changed +21
-23
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ kotlin {
4545 implementation(libs.bundles.test.libs)
4646 }
4747
48- val wasmJsMain by getting {
48+ wasmJsMain {
4949 dependsOn(jsCommon)
5050
5151 dependencies {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ kotlin {
4646 implementation(libs.bundles.test.libs)
4747 }
4848
49- val wasmJsMain by getting {
49+ wasmJsMain {
5050 dependsOn(jsCommon)
5151 }
5252 }
Original file line number Diff line number Diff line change @@ -39,39 +39,37 @@ public open class ListItem<T>(
3939 private val backgroundSelectionBlurredColor : Color ? = backgroundSelectionColor,
4040 private val role : ListItemRole = ListItemRole ()): View(role) {
4141
42- public var list: ListLike = list
43- private set(new) {
44- field.focusChanged - = listFocusChanged
42+ public var list: ListLike = list; private set(new) {
43+ field.focusChanged - = listFocusChanged
4544
46- field = new
45+ field = new
4746
48- when {
49- field.selected(index) -> {
50- field.focusChanged + = listFocusChanged
47+ when {
48+ field.selected(index) -> {
49+ field.focusChanged + = listFocusChanged
5150
52- backgroundColor = if (field.hasFocus) backgroundSelectionColor else backgroundSelectionBlurredColor
53- }
54- else -> {
55- field.focusChanged - = listFocusChanged
51+ backgroundColor = if (field.hasFocus) backgroundSelectionColor else backgroundSelectionBlurredColor
52+ }
53+ else -> {
54+ field.focusChanged - = listFocusChanged
5655
57- backgroundColor = null
58- }
56+ backgroundColor = null
5957 }
6058 }
59+ }
6160
6261 public var insetTop : Double = if (backgroundSelectionColor != null || backgroundSelectionBlurredColor != null ) 1.0 else 0.0
6362 public var insetLeft: Double = 0.0
6463
65- public var positioner: ConstraintDslContext .(Bounds ) -> Unit = defaultPositioner
66- set(new) {
67- if (field == new) {
68- return
69- }
64+ public var positioner: ConstraintDslContext .(Bounds ) -> Unit = defaultPositioner; set(new) {
65+ if (field == new) {
66+ return
67+ }
7068
71- field = new
69+ field = new
7270
73- layout = constrainLayout(children[0 ])
74- }
71+ layout = constrainLayout(children[0 ])
72+ }
7573
7674 private var pointerOver by observable(false ) { _,new ->
7775 pointerOver(new)
You can’t perform that action at this time.
0 commit comments