Add offline message as i18n string

This commit is contained in:
Lei Nelissen
2022-01-02 23:03:15 +01:00
parent f78db52e0a
commit 5d6f65b699
3 changed files with 5 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ function generateStyles(scheme: ColorSchemeName) {
borderColor: scheme === 'dark' ? '#262626' : '#ddd', borderColor: scheme === 'dark' ? '#262626' : '#ddd',
}, },
activeBackground: { activeBackground: {
backgroundColor: `${THEME_COLOR}${scheme === 'dark' ? '66' : '16'}`, backgroundColor: `${THEME_COLOR}${scheme === 'dark' ? '26' : '16'}`,
}, },
imageBackground: { imageBackground: {
backgroundColor: scheme === 'dark' ? '#333' : '#ddd', backgroundColor: scheme === 'dark' ? '#333' : '#ddd',

View File

@@ -55,5 +55,6 @@
"delete-album": "Delete Album", "delete-album": "Delete Album",
"delete-playlist": "Delete Playlist", "delete-playlist": "Delete Playlist",
"total-download-size": "Total Download Size", "total-download-size": "Total Download Size",
"retry-failed-downloads": "Retry Failed Downloads" "retry-failed-downloads": "Retry Failed Downloads",
"you-are-offline-message": "You are currently offline. You can only play previously downloaded music."
} }

View File

@@ -54,3 +54,4 @@ export type LocaleKeys = 'play-next'
| 'total-download-size' | 'total-download-size'
| 'no-downloads' | 'no-downloads'
| 'retry-failed-downloads' | 'retry-failed-downloads'
| 'you-are-offline-message'