change the title of the app to the current date.
This commit is contained in:
parent
4944f06e91
commit
9ad289dcb5
1 changed files with 9 additions and 1 deletions
|
|
@ -56,6 +56,10 @@ import com.pixelized.headache.ui.navigation.home.HomeNavigator
|
|||
import com.pixelized.headache.ui.page.event.edit.EventEditBottomSheet
|
||||
import com.pixelized.headache.ui.page.event.edit.EventEditBottomSheetViewModel
|
||||
import com.pixelized.headache.ui.theme.color.HeadacheColorPalette
|
||||
import com.pixelized.headache.utils.extention.capitalize
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Calendar
|
||||
import java.util.Locale
|
||||
|
||||
@Stable
|
||||
data class BottomBarItemUio(
|
||||
|
|
@ -174,8 +178,12 @@ private fun HomePageContent(
|
|||
topBar = {
|
||||
Toolbar(
|
||||
title = {
|
||||
val title = remember {
|
||||
val format = SimpleDateFormat("EEEE dd MMMM", Locale.getDefault())
|
||||
format.format(System.currentTimeMillis())
|
||||
}
|
||||
Text(
|
||||
text = stringResource(R.string.app_name),
|
||||
text = title.capitalize(),
|
||||
)
|
||||
},
|
||||
actions = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue