forked from cl3m/multiplatform-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
236 changed files
with
2,515 additions
and
1,784 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 0 additions & 23 deletions
23
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/AlertDialog.kt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Column.kt
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Divider.kt
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/HumanAppearance.kt
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Image.kt
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Row.kt
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Scaffold.kt
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/ScrollableColumn.kt
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Spacer.kt
This file was deleted.
Oops, something went wrong.
29 changes: 0 additions & 29 deletions
29
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/Text.kt
This file was deleted.
Oops, something went wrong.
43 changes: 0 additions & 43 deletions
43
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/TextField.kt
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
...latform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/BorderStroke.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.rouge41.kmm.compose.foundation | ||
|
||
import com.rouge41.kmm.compose.ui.unit.Dp | ||
import com.rouge41.kmm.compose.ui.graphics.Color | ||
import androidx.compose.foundation.BorderStroke as _BorderStroke | ||
|
||
actual typealias BorderStroke = androidx.compose.foundation.BorderStroke | ||
|
||
actual fun BorderStroke(width: Dp, color: Color) = _BorderStroke(width = width, color = color) |
23 changes: 23 additions & 0 deletions
23
multiplatform-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/Image.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.rouge41.kmm.compose.foundation | ||
|
||
import androidx.compose.ui.graphics.ImageBitmap | ||
import com.rouge41.kmm.compose.ui.Modifier | ||
import com.rouge41.kmm.compose.runtime.Composable | ||
import com.rouge41.kmm.compose.ui.Alignment | ||
import com.rouge41.kmm.compose.ui.AlignmentVerticalAndHorizontal | ||
import com.rouge41.kmm.compose.ui.layout.ContentScale | ||
import androidx.compose.foundation.Image as _Image | ||
|
||
@Composable | ||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS") | ||
actual inline fun Image(bitmap: ImageBitmap, | ||
modifier: Modifier = Modifier, | ||
alignment: AlignmentVerticalAndHorizontal = Alignment.Center, | ||
contentScale: ContentScale = ContentScale.Fit, | ||
alpha: Float = 1.0f) = _Image( | ||
bitmap = bitmap, | ||
modifier = modifier, | ||
alignment = alignment, | ||
contentScale = contentScale, | ||
alpha = alpha | ||
) |
3 changes: 3 additions & 0 deletions
3
...orm-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/InteractionState.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.rouge41.kmm.compose.foundation | ||
|
||
actual typealias InteractionState = androidx.compose.foundation.InteractionState |
7 changes: 7 additions & 0 deletions
7
...-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/IsSystemInDarkTheme.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.rouge41.kmm.compose.foundation | ||
|
||
import com.rouge41.kmm.compose.runtime.Composable | ||
import androidx.compose.foundation.isSystemInDarkTheme as _isSystemInDarkTheme | ||
|
||
@Composable | ||
actual fun isSystemInDarkTheme(): Boolean = _isSystemInDarkTheme() |
38 changes: 38 additions & 0 deletions
38
...orm-compose/src/androidMain/kotlin/com/rouge41/kmm/compose/foundation/ScrollableColumn.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.rouge41.kmm.compose.foundation | ||
|
||
import com.rouge41.kmm.compose.foundation.layout.Arrangement | ||
import com.rouge41.kmm.compose.foundation.layout.ArrangementVertical | ||
import com.rouge41.kmm.compose.foundation.layout.ColumnScope | ||
import com.rouge41.kmm.compose.foundation.layout.PaddingValues | ||
import com.rouge41.kmm.compose.runtime.Composable | ||
import com.rouge41.kmm.compose.ui.Alignment | ||
import com.rouge41.kmm.compose.ui.AlignmentHorizontal | ||
import com.rouge41.kmm.compose.ui.Modifier | ||
import com.rouge41.kmm.compose.ui.unit.dp | ||
import androidx.compose.foundation.rememberScrollState as _rememberScrollState | ||
import androidx.compose.foundation.ScrollableColumn as _ScrollableColumn | ||
|
||
actual typealias ScrollState = androidx.compose.foundation.ScrollState | ||
|
||
@Composable | ||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS") | ||
actual fun ScrollableColumn( | ||
modifier: Modifier = Modifier, | ||
scrollState: ScrollState = rememberScrollState(0f), | ||
verticalArrangement: ArrangementVertical = Arrangement.Top, | ||
horizontalAlignment: AlignmentHorizontal = Alignment.Start, | ||
reverseScrollDirection: Boolean = false, | ||
isScrollEnabled: Boolean = true, | ||
contentPadding: PaddingValues = PaddingValues(0.dp), | ||
content: @Composable ColumnScope.() -> Unit | ||
) { | ||
_ScrollableColumn(modifier = modifier, scrollState = scrollState, verticalArrangement = verticalArrangement, horizontalAlignment = horizontalAlignment, | ||
reverseScrollDirection = reverseScrollDirection, isScrollEnabled = isScrollEnabled, contentPadding = contentPadding, content = content) | ||
} | ||
|
||
@Composable | ||
@Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS") | ||
actual fun rememberScrollState( | ||
initial: Float = 0f, | ||
interactionState: InteractionState? = null | ||
): ScrollState = _rememberScrollState(initial = initial, interactionState = interactionState) |
2 changes: 1 addition & 1 deletion
2
...in/com/rouge41/kmm/compose/Arrangement.kt → .../compose/foundation/layout/Arrangement.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.