File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
bonsai-core/src/commonMain/kotlin/cafe/adriel/bonsai/core
commonMain/kotlin/cafe/adriel/bonsai/filesystem
jvmMain/kotlin/cafe/adriel/bonsai/filesystem Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 88 <img height="80" src="https://user-images.githubusercontent.com/2512298/163075335-494c2a4d-e446-4627-8865-183683a75834.png"/>
99 <br>
1010 Bonsai
11- <br>
1211</h1 >
1312
1413<h3 align =" center " >
1514 A batteries-included Tree View for Jetpack Compose
16- <br>
15+ <br><br>
1716 <img width=400 src="https://user-images.githubusercontent.com/2512298/163289815-d584327c-ee5b-4f58-835c-121585b81f37.gif">
1817</h3 >
1918
Original file line number Diff line number Diff line change 11package cafe.adriel.bonsai.core
22
3- import androidx.annotation.FloatRange
43import androidx.compose.animation.EnterTransition
54import androidx.compose.animation.ExitTransition
65import androidx.compose.animation.expandVertically
@@ -53,7 +52,7 @@ public data class BonsaiStyle<T>(
5352 public val toggleIconSize : Dp = 16 .dp,
5453 public val toggleIconColorFilter : ColorFilter ? = null ,
5554 public val toggleShape : Shape = CircleShape ,
56- @FloatRange(from = 0.0 ) public val toggleIconRotationDegrees : Float = 90f ,
55+ public val toggleIconRotationDegrees : Float = 90f ,
5756 public val nodeIconSize : Dp = 24 .dp,
5857 public val nodePadding : PaddingValues = PaddingValues (all = 4.dp),
5958 public val nodeShape : Shape = RoundedCornerShape (size = 4.dp),
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ public fun FileSystemBonsaiStyle(): BonsaiStyle<Path> =
3232
3333public fun fileSystemNodes (
3434 rootPath : Path ,
35- selfInclude : Boolean = false ,
36- fileSystem : FileSystem = FileSystem . SYSTEM
35+ fileSystem : FileSystem ,
36+ selfInclude : Boolean = false
3737): List <Node <Path >> =
3838 with (
3939 FileSystemNodeScope (
Original file line number Diff line number Diff line change 11package cafe.adriel.bonsai.filesystem
22
33import cafe.adriel.bonsai.core.node.Node
4+ import okio.FileSystem
45import okio.Path
56import okio.Path.Companion.toOkioPath
67import java.io.File
@@ -12,6 +13,7 @@ public fun fileSystemNodes(
1213): List <Node <Path >> =
1314 fileSystemNodes(
1415 rootPath = rootPath.toOkioPath(),
16+ fileSystem = FileSystem .SYSTEM ,
1517 selfInclude = selfInclude
1618 )
1719
@@ -21,5 +23,6 @@ public fun fileSystemNodes(
2123): List <Node <Path >> =
2224 fileSystemNodes(
2325 rootPath = rootPath.toOkioPath(),
26+ fileSystem = FileSystem .SYSTEM ,
2427 selfInclude = selfInclude
2528 )
You can’t perform that action at this time.
0 commit comments