-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
c3fb97e
commit 4a6fa37
Showing
13 changed files
with
150 additions
and
34 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
8 changes: 8 additions & 0 deletions
8
composeApp/src/androidMain/kotlin/ui/component/PlatformLayoutAlignment.android.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,8 @@ | ||
package ui.component | ||
|
||
import androidx.compose.foundation.layout.ColumnScope | ||
import androidx.compose.ui.Alignment | ||
|
||
actual fun ColumnScope.HomeScreenTitleAlignment(): Alignment.Horizontal { | ||
return Alignment.Start | ||
} |
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
6 changes: 6 additions & 0 deletions
6
composeApp/src/commonMain/kotlin/ui/component/PlatformLayoutAlignment.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,6 @@ | ||
package ui.component | ||
|
||
import androidx.compose.foundation.layout.ColumnScope | ||
import androidx.compose.ui.Alignment | ||
|
||
expect fun ColumnScope.HomeScreenTitleAlignment(): Alignment.Horizontal |
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
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
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
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
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,30 @@ | ||
import androidx.compose.ui.Alignment | ||
import androidx.compose.ui.unit.DpSize | ||
import androidx.compose.ui.unit.dp | ||
import androidx.compose.ui.window.Window | ||
import androidx.compose.ui.window.WindowPosition | ||
import androidx.compose.ui.window.application | ||
import androidx.compose.ui.window.rememberWindowState | ||
import di.initKoin | ||
import java.awt.Dimension | ||
|
||
fun main() { | ||
initKoin() | ||
|
||
application { | ||
|
||
val windowState = rememberWindowState( | ||
size = DpSize(width = 900.dp, height = 950.dp), | ||
position = WindowPosition(Alignment.Center) | ||
) | ||
|
||
Window( | ||
onCloseRequest = ::exitApplication, | ||
title = "UnsplashKMP", | ||
state = windowState | ||
) { | ||
window.minimumSize = Dimension(950, 900) | ||
App() | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
composeApp/src/desktopMain/kotlin/ui/component/EdgeToEdgePlatform.desktop.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,8 @@ | ||
package ui.component | ||
|
||
import androidx.compose.ui.unit.Dp | ||
import androidx.compose.ui.unit.dp | ||
|
||
actual fun getEdgeToEdgeTopPadding(): Dp { | ||
return 0.dp | ||
} |
8 changes: 8 additions & 0 deletions
8
composeApp/src/desktopMain/kotlin/ui/component/PlatformLayoutAlignment.desktop.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,8 @@ | ||
package ui.component | ||
|
||
import androidx.compose.foundation.layout.ColumnScope | ||
import androidx.compose.ui.Alignment | ||
|
||
actual fun ColumnScope.HomeScreenTitleAlignment(): Alignment.Horizontal { | ||
return Alignment.CenterHorizontally | ||
} |
8 changes: 8 additions & 0 deletions
8
composeApp/src/nativeMain/kotlin/ui/component/PlatformLayoutAlignment.native.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,8 @@ | ||
package ui.component | ||
|
||
import androidx.compose.foundation.layout.ColumnScope | ||
import androidx.compose.ui.Alignment | ||
|
||
actual fun ColumnScope.HomeScreenTitleAlignment(): Alignment.Horizontal { | ||
return Alignment.Start | ||
} |
Oops, something went wrong.