group slider and text of "max reply indentation" setting (#1749)

This commit is contained in:
sh95014 2023-12-16 22:33:55 -08:00 committed by GitHub
parent 0d37cdf64b
commit 038d029022
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,6 +207,7 @@ struct DisplaySettingsView: View {
Toggle("settings.display.pending-left", isOn: $userPreferences.pendingShownLeft)
Toggle("settings.display.show-reply-indentation", isOn: $userPreferences.showReplyIndentation)
if userPreferences.showReplyIndentation {
VStack {
Slider(value: .init(get: {
Double(userPreferences.maxReplyIndentation)
}, set: { newVal in
@ -216,6 +217,7 @@ struct DisplaySettingsView: View {
.font(.scaledBody)
}
}
}
.listRowBackground(theme.primaryBackgroundColor)
}