From 3391b4f056429a367feeb8fc3b0ced23c925ac35 Mon Sep 17 00:00:00 2001 From: vfsfitvnm Date: Tue, 7 Jun 2022 22:27:35 +0200 Subject: [PATCH] Improve BackupAndRestoreScreen UI --- .../settings/BackupAndRestoreScreen.kt | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) diff --git a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/BackupAndRestoreScreen.kt b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/BackupAndRestoreScreen.kt index e6afc1a..e6421b8 100644 --- a/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/BackupAndRestoreScreen.kt +++ b/app/src/main/kotlin/it/vfsfitvnm/vimusic/ui/screens/settings/BackupAndRestoreScreen.kt @@ -237,30 +237,49 @@ fun BackupAndRestoreScreen() { Column( modifier = Modifier .padding(horizontal = 16.dp, vertical = 16.dp) + .background(colorPalette.lightBackground) + .padding(horizontal = 16.dp, vertical = 16.dp) ) { + Image( + painter = painterResource(R.drawable.alert_circle), + contentDescription = null, + colorFilter = ColorFilter.tint(colorPalette.red), + modifier = Modifier + .padding(bottom = 16.dp) + .size(24.dp) + ) +// BasicText( text = "Backup", - style = typography.xxs.semiBold.secondary + style = typography.xxs.semiBold, + modifier = Modifier + .padding(horizontal = 16.dp) ) BasicText( text = "The backup consists in exporting the application database to your device storage.\nThis means playlists, song history, favorites songs will exported.\nThis operation excludes personal preferences such as the theme mode and everything you can set in the Settings page.", - style = typography.xxs.secondary + style = typography.xxs.secondary, + modifier = Modifier + .padding(horizontal = 16.dp) + ) + + Spacer( + modifier = Modifier + .height(32.dp) ) - } - Column( - modifier = Modifier - .padding(horizontal = 16.dp, vertical = 16.dp) - ) { BasicText( text = "Restore", - style = typography.xxs.semiBold.secondary + style = typography.xxs.semiBold, + modifier = Modifier + .padding(horizontal = 16.dp) ) BasicText( text = "The restore replaces the existing application database with the selected - previously exported - one.\nThis means every currently existing data will be wiped: THE TWO DATABASES WON'T BE MERGED.\nIt is recommended to restore the database immediately after the application is installed on a new device.", - style = typography.xxs.secondary + style = typography.xxs.secondary, + modifier = Modifier + .padding(horizontal = 16.dp) ) } }