Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.layout.wrapContentSize
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.outlined.Cancel
import androidx.compose.material.icons.outlined.Download
Expand Down Expand Up @@ -94,7 +95,8 @@ fun MainMenuDialog(
contentDescription = null
)
},
text = stringResource(Res.string.action_download),
text = "Fetch map data",
description = "Fetch the latest quests from the server for this area"
)
HorizontalDivider(
modifier = Modifier
Expand Down Expand Up @@ -168,6 +170,7 @@ private fun CompactMenuButton(
icon: @Composable () -> Unit,
text: String,
modifier: Modifier = Modifier,
description: String = "",
enabled: Boolean = true,
colors: ButtonColors = ButtonDefaults.buttonColors(
containerColor = MaterialTheme.colorScheme.surface,
Expand All @@ -184,12 +187,22 @@ private fun CompactMenuButton(
verticalAlignment = Alignment.CenterVertically
) {
icon()
Text(
text = text,
modifier = Modifier.weight(1f).padding(horizontal = 16.dp),
textAlign = TextAlign.Start,
style = MaterialTheme.typography.bodyLarge,
)
Column {
Text(
text = text,
modifier = Modifier.padding(horizontal = 16.dp),
textAlign = TextAlign.Start,
style = MaterialTheme.typography.bodyLarge,
)
if (description.isNotEmpty()){
Text(
text = description,
modifier = Modifier.padding(horizontal = 16.dp),
textAlign = TextAlign.Start,
style = MaterialTheme.typography.bodySmall,
)
}
}
}
}
}
Expand Down