Add icons to global menu

This commit is contained in:
MM20 2022-10-08 18:43:42 +02:00
parent 9763f89522
commit 7270f6027e
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389

View File

@ -20,6 +20,8 @@ import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.foundation.text.BasicTextField
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.rounded.Search
import androidx.compose.material.icons.rounded.Settings
import androidx.compose.material.icons.rounded.Wallpaper
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.runtime.livedata.observeAsState
@ -107,6 +109,9 @@ fun SearchBar(
},
text = {
Text(stringResource(R.string.wallpaper))
},
leadingIcon = {
Icon(imageVector = Icons.Rounded.Wallpaper, contentDescription = null)
}
)
DropdownMenuItem(
@ -116,6 +121,9 @@ fun SearchBar(
},
text = {
Text(stringResource(R.string.settings))
},
leadingIcon = {
Icon(imageVector = Icons.Rounded.Settings, contentDescription = null)
}
)
}