Skip to content

Commit

Permalink
add theme base
Browse files Browse the repository at this point in the history
  • Loading branch information
avan1235 committed Feb 18, 2024
1 parent c3f4d4f commit 83b7ee1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
6 changes: 3 additions & 3 deletions composeApp/src/commonMain/kotlin/in/procyk/shin/App.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.*
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.key.*
import `in`.procyk.shin.createHttpClient
import `in`.procyk.shin.ui.ShortenRequest
import `in`.procyk.shin.ui.ShortenResponse
import `in`.procyk.shin.createHttpClient
import `in`.procyk.shin.ui.theme.ShinTheme

@Composable
fun ShinApp() {
val client = remember { createHttpClient() }
MaterialTheme {
ShinTheme {
var shortenedUrl by remember<MutableState<String?>> { mutableStateOf(null) }
Column(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package `in`.procyk.shin.ui.theme

import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable

@Composable
internal fun ShinTheme(
content: @Composable () -> Unit,
) {
MaterialTheme(
colorScheme = MaterialTheme.colorScheme,
shapes = MaterialTheme.shapes,
typography = MaterialTheme.typography,
content = content
)
}

0 comments on commit 83b7ee1

Please sign in to comment.