Update Icon on NavigationDrawerItem
This commit is contained in:
parent
da1f5d8fbb
commit
335b9b9edc
1 changed files with 8 additions and 0 deletions
|
|
@ -25,8 +25,10 @@ import androidx.compose.ui.draw.rotate
|
|||
import androidx.compose.ui.draw.scale
|
||||
import androidx.compose.ui.graphics.Color
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.text.TextStyle
|
||||
import androidx.compose.ui.text.font.FontWeight
|
||||
import androidx.compose.ui.unit.dp
|
||||
import androidx.compose.ui.unit.sp
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.launch
|
||||
import mg.dot.feufaro.data.DrawerItem
|
||||
|
|
@ -133,6 +135,9 @@ fun SimpleDrawerContent(
|
|||
items(internalList) { item ->
|
||||
val isSelected = item.path == activePath
|
||||
NavigationDrawerItem(
|
||||
icon = {
|
||||
Text("\uD834\uDD1E", fontSize = 18.sp)
|
||||
},
|
||||
label = { DrawerItemLabel(item, sharedScreenModel) },
|
||||
selected = isSelected,
|
||||
onClick = {
|
||||
|
|
@ -167,6 +172,9 @@ fun SimpleDrawerContent(
|
|||
val isSelected = item.path == activePath
|
||||
if (item.path != "") {
|
||||
NavigationDrawerItem(
|
||||
icon = {
|
||||
Text("♬", fontSize = 18.sp)
|
||||
},
|
||||
label = { DrawerItemLabel(item, sharedScreenModel) },
|
||||
selected = isSelected,
|
||||
onClick = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue