Improve accessibility and localization support on Damus Labs screen
Note: This is an improvement on an unreleased feature, so no changelog entry is needed. Changelog-None Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -44,27 +44,28 @@ struct DamusLabsExperiments: View {
|
|||||||
|
|
||||||
LabsToggleView(toggleName: live_label, systemImage: "record.circle", isOn: $settings.live, showInfo: $show_live_explainer)
|
LabsToggleView(toggleName: live_label, systemImage: "record.circle", isOn: $settings.live, showInfo: $show_live_explainer)
|
||||||
LabsToggleView(toggleName: favorites_label, systemImage: "heart.fill", isOn: $settings.enable_favourites_feature, showInfo: $show_favorites_explainer)
|
LabsToggleView(toggleName: favorites_label, systemImage: "heart.fill", isOn: $settings.enable_favourites_feature, showInfo: $show_favorites_explainer)
|
||||||
|
|
||||||
}
|
}
|
||||||
.padding([.trailing, .leading], 20)
|
.padding([.trailing, .leading], 20)
|
||||||
.padding(.bottom, 50)
|
.padding(.bottom, 50)
|
||||||
|
|
||||||
Image("damooseLabs")
|
Image("damooseLabs")
|
||||||
.resizable()
|
.resizable()
|
||||||
|
.accessibilityHidden(true)
|
||||||
.aspectRatio(contentMode: .fill)
|
.aspectRatio(contentMode: .fill)
|
||||||
|
|
||||||
}
|
}
|
||||||
.ignoresSafeArea(edges: .bottom)
|
.ignoresSafeArea(edges: .bottom)
|
||||||
.sheet(isPresented: $show_live_explainer) {
|
.sheet(isPresented: $show_live_explainer) {
|
||||||
LabsExplainerView(
|
LabsExplainerView(
|
||||||
labName: live_label,
|
labName: live_label,
|
||||||
systemImage: "record.circle",
|
systemImage: "record.circle",
|
||||||
labDescription: "This will allow you to see all the real-time live streams happening on Nostr! As well as let you view and interact in the Live Chat. Please keep in mind this is still a work in progress and issues are expected. When enabled you will see the Live option in your side menu.")
|
labDescription: NSLocalizedString("This will allow you to see all the real-time live streams happening on Nostr! As well as let you view and interact in the Live Chat. Please keep in mind this is still a work in progress and issues are expected. When enabled you will see the Live option in your side menu.", comment: "Damus Labs feature explanation"))
|
||||||
}
|
}
|
||||||
.sheet(isPresented: $show_favorites_explainer) {
|
.sheet(isPresented: $show_favorites_explainer) {
|
||||||
LabsExplainerView(
|
LabsExplainerView(
|
||||||
labName: favorites_label,
|
labName: favorites_label,
|
||||||
systemImage: "heart.fill",
|
systemImage: "heart.fill",
|
||||||
labDescription: "This will allow you to pick users to be part of your favorites list. You can also switch your profile timeline to only see posts from your favorite contacts.")
|
labDescription: NSLocalizedString("This will allow you to pick users to be part of your favorites list. You can also switch your profile timeline to only see posts from your favorite contacts.", comment: "Damus Labs feature explanation"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ struct LabsLogoView: View {
|
|||||||
endPoint: .bottomTrailing), lineWidth: 1)
|
endPoint: .bottomTrailing), lineWidth: 1)
|
||||||
)
|
)
|
||||||
.shadow(radius: 5)
|
.shadow(radius: 5)
|
||||||
|
.accessibilityHidden(true)
|
||||||
|
|
||||||
VStack(alignment: .leading) {
|
VStack(alignment: .leading) {
|
||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
@@ -29,6 +30,7 @@ struct LabsLogoView: View {
|
|||||||
.font(.system(size: 60.0).weight(.bold))
|
.font(.system(size: 60.0).weight(.bold))
|
||||||
.foregroundColor(.white)
|
.foregroundColor(.white)
|
||||||
.tracking(-2)
|
.tracking(-2)
|
||||||
|
.accessibilityHidden(true)
|
||||||
Image(systemName: "flask.fill")
|
Image(systemName: "flask.fill")
|
||||||
.padding(.top, 25)
|
.padding(.top, 25)
|
||||||
.foregroundStyle(
|
.foregroundStyle(
|
||||||
@@ -38,6 +40,7 @@ struct LabsLogoView: View {
|
|||||||
endPoint: .bottomTrailing
|
endPoint: .bottomTrailing
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.accessibilityHidden(true)
|
||||||
Image(systemName: "testtube.2")
|
Image(systemName: "testtube.2")
|
||||||
.padding(.top, 25)
|
.padding(.top, 25)
|
||||||
.foregroundStyle(
|
.foregroundStyle(
|
||||||
@@ -47,10 +50,12 @@ struct LabsLogoView: View {
|
|||||||
endPoint: .topTrailing
|
endPoint: .topTrailing
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
.accessibilityHidden(true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.bottom, 30)
|
.padding(.bottom, 30)
|
||||||
|
.accessibilityLabel(NSLocalizedString("Damus Labs stylized logo", comment: "Accessibility label for a stylized Damus Labs logo"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user