mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
App Polish (#1098)
* App polish - Skeleton avatar colour on app switching. - Bug report icon and string. - Semi-bold font on room list timestamps. - Room attachments button spacing and alignment. - Replace link tint with semi-bold font in AnalyticsSettingsScreen. - Semi-bold font on Invites button. - Add padding to media attachment sheet. - Message composer header layout tweaks. - Remove indicator after changing homeserver with an MXID. - Change copy permalink string. - Formatting of link in Analytics Prompt. - Remove indicator after changing homeserver with an MXID. - Change copy permalink string. - Formatting of link in Analytics Prompt. - Only semi-bold the room timestamp when unread. - Tweak the colour of the date separator. - Add activity indicator to toast style user indicator.
This commit is contained in:
@@ -24,15 +24,17 @@ struct UserIndicatorModalView: View {
|
||||
var body: some View {
|
||||
ZStack {
|
||||
VStack(spacing: 12.0) {
|
||||
if case .unknownProgress = indicator.loaderType {
|
||||
if case .indeterminate = indicator.progress {
|
||||
ProgressView()
|
||||
} else if case .progress = indicator.loaderType {
|
||||
} else if case .published = indicator.progress {
|
||||
ProgressView(value: progressFraction)
|
||||
}
|
||||
|
||||
HStack {
|
||||
if let iconName = indicator.iconName {
|
||||
Image(systemName: iconName)
|
||||
.font(.compound.bodyLG)
|
||||
.foregroundColor(.compound.iconPrimary)
|
||||
}
|
||||
Text(indicator.title)
|
||||
.font(.compound.bodyLG)
|
||||
@@ -66,17 +68,17 @@ struct UserIndicatorModalView_Previews: PreviewProvider {
|
||||
iconName: "checkmark")
|
||||
)
|
||||
.previewDisplayName("Spinner")
|
||||
UserIndicatorModalView(indicator: UserIndicator(type: .modal,
|
||||
|
||||
UserIndicatorModalView(indicator: UserIndicator(type: .modal(progress: .published(ProgressTracker(initialValue: 0.5)),
|
||||
interactiveDismissDisabled: false),
|
||||
title: "Successfully logged in",
|
||||
iconName: "checkmark",
|
||||
loaderType: .progress(ProgressTracker(initialValue: 0.5)))
|
||||
iconName: "checkmark")
|
||||
)
|
||||
.previewDisplayName("Progress Bar")
|
||||
|
||||
UserIndicatorModalView(indicator: UserIndicator(type: .modal,
|
||||
UserIndicatorModalView(indicator: UserIndicator(type: .modal(progress: .none, interactiveDismissDisabled: false),
|
||||
title: "Successfully logged in",
|
||||
iconName: "checkmark",
|
||||
loaderType: .none)
|
||||
iconName: "checkmark")
|
||||
)
|
||||
.previewDisplayName("No progress")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user