Skip to content

Commit

Permalink
Fix tree colours being mixed up (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
rock3r authored Dec 11, 2023
1 parent 9bd5ba6 commit 5a0d27b
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ public fun LazyTreeColors.Companion.light(
nodeBackgroundSelectedFocused: Color = IntUiLightTheme.colors.blue(11),
): LazyTreeColors =
LazyTreeColors(
elementBackgroundFocused = content,
elementBackgroundSelected = contentFocused,
elementBackgroundSelectedFocused = contentSelected,
content = contentSelectedFocused,
contentFocused = nodeBackgroundFocused,
contentSelected = nodeBackgroundSelected,
contentSelectedFocused = nodeBackgroundSelectedFocused,
elementBackgroundFocused = nodeBackgroundFocused,
elementBackgroundSelected = nodeBackgroundSelected,
elementBackgroundSelectedFocused = nodeBackgroundSelectedFocused,
content = content,
contentFocused = contentFocused,
contentSelected = contentSelected,
contentSelectedFocused = contentSelectedFocused,
)

@Composable
Expand All @@ -62,13 +62,13 @@ public fun LazyTreeColors.Companion.dark(
nodeBackgroundSelectedFocused: Color = IntUiDarkTheme.colors.blue(2),
): LazyTreeColors =
LazyTreeColors(
elementBackgroundFocused = content,
elementBackgroundSelected = contentFocused,
elementBackgroundSelectedFocused = contentSelected,
content = contentSelectedFocused,
contentFocused = nodeBackgroundFocused,
contentSelected = nodeBackgroundSelected,
contentSelectedFocused = nodeBackgroundSelectedFocused,
elementBackgroundFocused = nodeBackgroundFocused,
elementBackgroundSelected = nodeBackgroundSelected,
elementBackgroundSelectedFocused = nodeBackgroundSelectedFocused,
content = content,
contentFocused = contentFocused,
contentSelected = contentSelected,
contentSelectedFocused = contentSelectedFocused,
)

public fun LazyTreeMetrics.Companion.defaults(
Expand Down

0 comments on commit 5a0d27b

Please sign in to comment.