Skip to content

Commit 010f6de

Browse files
committed
- [Build] Minor cleanup
- [Misc] Whitespace
1 parent 2c192bb commit 010f6de

File tree

3 files changed

+21
-23
lines changed

3 files changed

+21
-23
lines changed

Browser/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 {

Core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
}

Themes/src/commonMain/kotlin/io/nacular/doodle/theme/basic/ListItem.kt

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)