Skip to content

Commit 87feabe

Browse files
committed
#update light theme
1 parent 3b485cc commit 87feabe

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

app/src/main/java/com/example/androiddevchallenge/MainActivity.kt

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,14 @@ import androidx.activity.compose.setContent
2121
import androidx.appcompat.app.AppCompatActivity
2222
import androidx.compose.foundation.background
2323
import androidx.compose.foundation.clickable
24-
import androidx.compose.foundation.layout.Arrangement
25-
import androidx.compose.foundation.layout.Box
26-
import androidx.compose.foundation.layout.Column
27-
import androidx.compose.foundation.layout.Row
28-
import androidx.compose.foundation.layout.fillMaxHeight
29-
import androidx.compose.foundation.layout.fillMaxSize
30-
import androidx.compose.foundation.layout.padding
31-
import androidx.compose.foundation.layout.size
24+
import androidx.compose.foundation.layout.*
3225
import androidx.compose.material.MaterialTheme
3326
import androidx.compose.material.Surface
3427
import androidx.compose.material.Text
35-
import androidx.compose.runtime.Composable
36-
import androidx.compose.runtime.getValue
37-
import androidx.compose.runtime.mutableStateOf
38-
import androidx.compose.runtime.remember
39-
import androidx.compose.runtime.setValue
28+
import androidx.compose.runtime.*
4029
import androidx.compose.ui.Alignment
4130
import androidx.compose.ui.Modifier
4231
import androidx.compose.ui.draw.rotate
43-
import androidx.compose.ui.res.colorResource
4432
import androidx.compose.ui.res.stringResource
4533
import androidx.compose.ui.text.font.FontWeight
4634
import androidx.compose.ui.tooling.preview.Preview
@@ -77,13 +65,13 @@ fun LightPreview() {
7765
}
7866
}
7967

80-
/*@Preview("Dark Theme", widthDp = 360, heightDp = 640)
68+
@Preview("Dark Theme", widthDp = 360, heightDp = 640)
8169
@Composable
8270
fun DarkPreview() {
8371
MyTheme(darkTheme = true) {
8472
MyApp()
8573
}
86-
}*/
74+
}
8775

8876
@Composable
8977
fun Home() {

0 commit comments

Comments
 (0)