mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-05 11:58:32 +00:00
Fixes #4512 - Make the preview item count label more proeminent
This commit is contained in:
committed by
Stefan Ceriu
parent
cf9df8a8e1
commit
b677efc9d2
@@ -640,6 +640,8 @@ internal enum L10n {
|
||||
internal static var commonServerUrl: String { return L10n.tr("Localizable", "common_server_url") }
|
||||
/// Settings
|
||||
internal static var commonSettings: String { return L10n.tr("Localizable", "common_settings") }
|
||||
/// Share space
|
||||
internal static var commonShareSpace: String { return L10n.tr("Localizable", "common_share_space") }
|
||||
/// Shared location
|
||||
internal static var commonSharedLocation: String { return L10n.tr("Localizable", "common_shared_location") }
|
||||
/// Signing out
|
||||
@@ -850,6 +852,8 @@ internal enum L10n {
|
||||
internal static var emojiPickerCategoryPeople: String { return L10n.tr("Localizable", "emoji_picker_category_people") }
|
||||
/// Travel & Places
|
||||
internal static var emojiPickerCategoryPlaces: String { return L10n.tr("Localizable", "emoji_picker_category_places") }
|
||||
/// Recent emojis
|
||||
internal static var emojiPickerCategoryRecent: String { return L10n.tr("Localizable", "emoji_picker_category_recent") }
|
||||
/// Symbols
|
||||
internal static var emojiPickerCategorySymbols: String { return L10n.tr("Localizable", "emoji_picker_category_symbols") }
|
||||
/// Search emojis
|
||||
@@ -1876,6 +1880,10 @@ internal enum L10n {
|
||||
}
|
||||
/// The file is too large to upload
|
||||
internal static var screenMediaUploadPreviewErrorTooLargeTitle: String { return L10n.tr("Localizable", "screen_media_upload_preview_error_too_large_title") }
|
||||
/// Item %1$d of %2$d
|
||||
internal static func screenMediaUploadPreviewItemCount(_ p1: Int, _ p2: Int) -> String {
|
||||
return L10n.tr("Localizable", "screen_media_upload_preview_item_count", p1, p2)
|
||||
}
|
||||
/// Optimise image quality
|
||||
internal static var screenMediaUploadPreviewOptimizeImageQualityTitle: String { return L10n.tr("Localizable", "screen_media_upload_preview_optimize_image_quality_title") }
|
||||
/// Processing...
|
||||
|
||||
+7
-3
@@ -29,9 +29,13 @@ struct MediaUploadPreviewScreen: View {
|
||||
.ignoresSafeArea(edges: [.horizontal])
|
||||
.safeAreaInset(edge: .top) {
|
||||
if context.viewState.mediaURLs.count > 1 {
|
||||
Text("\(currentIndex + 1) / \(context.viewState.mediaURLs.count)")
|
||||
.font(.compound.bodySM)
|
||||
.foregroundColor(.compound.textSecondary)
|
||||
Text(L10n.screenMediaUploadPreviewItemCount(currentIndex + 1, context.viewState.mediaURLs.count))
|
||||
.font(.compound.bodyMD)
|
||||
.foregroundColor(.compound.textPrimary)
|
||||
.padding(.vertical, 4)
|
||||
.padding(.horizontal, 8)
|
||||
.background(.compound.bgBadgeDefault)
|
||||
.clipShape(.capsule)
|
||||
}
|
||||
}
|
||||
.safeAreaInset(edge: .bottom, spacing: 0) {
|
||||
|
||||
Reference in New Issue
Block a user