UI: remove in-app icon from top app bar
This commit is contained in:
@@ -40,7 +40,6 @@ import androidx.compose.material.icons.filled.Add
|
|||||||
import androidx.compose.material.icons.filled.Delete
|
import androidx.compose.material.icons.filled.Delete
|
||||||
import androidx.compose.material.icons.filled.PlayArrow
|
import androidx.compose.material.icons.filled.PlayArrow
|
||||||
import androidx.compose.material.icons.filled.Settings
|
import androidx.compose.material.icons.filled.Settings
|
||||||
import androidx.compose.ui.res.painterResource
|
|
||||||
import androidx.compose.material3.AlertDialog
|
import androidx.compose.material3.AlertDialog
|
||||||
import androidx.compose.material3.Button
|
import androidx.compose.material3.Button
|
||||||
import androidx.compose.material3.Card
|
import androidx.compose.material3.Card
|
||||||
@@ -112,7 +111,6 @@ import kotlinx.coroutines.delay
|
|||||||
import kotlin.math.roundToInt
|
import kotlin.math.roundToInt
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
import com.mindmachine.mvp.R
|
|
||||||
|
|
||||||
private const val SESSION_ENTRY_HOME = "home"
|
private const val SESSION_ENTRY_HOME = "home"
|
||||||
private const val SESSION_ENTRY_SETUP = "setup"
|
private const val SESSION_ENTRY_SETUP = "setup"
|
||||||
@@ -210,17 +208,7 @@ fun App(vm: MainViewModel = viewModel()) {
|
|||||||
.safeDrawingPadding()
|
.safeDrawingPadding()
|
||||||
) {
|
) {
|
||||||
TopAppBar(
|
TopAppBar(
|
||||||
title = {
|
title = { Text("MindMachine") },
|
||||||
Row(verticalAlignment = Alignment.CenterVertically) {
|
|
||||||
Icon(
|
|
||||||
painter = painterResource(id = R.mipmap.ic_launcher),
|
|
||||||
contentDescription = "MindMachine",
|
|
||||||
modifier = Modifier.size(20.dp)
|
|
||||||
)
|
|
||||||
Spacer(Modifier.width(8.dp))
|
|
||||||
Text("MindMachine")
|
|
||||||
}
|
|
||||||
},
|
|
||||||
actions = {
|
actions = {
|
||||||
IconButton(
|
IconButton(
|
||||||
onClick = {
|
onClick = {
|
||||||
|
|||||||
Reference in New Issue
Block a user