Files
wehub-resource-sync 5b99bf6bca
CI / test (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:34:54 +08:00

16 lines
592 B
Swift

// Shared Settings view helpers.
import SwiftUI
extension View {
/// Consistent pane padding: CotEditor-style breathing room (scene padding at
/// the top, a little more on the sides and bottom).
func settingsPanePadding() -> some View {
self.padding(EdgeInsets(top: 20, leading: 28, bottom: 28, trailing: 28))
.frame(width: 600, alignment: .leading)
// Don't auto-focus (and draw a focus ring around) the first control
// when a pane opens — Settings has no use for keyboard-focus rings.
.focusEffectDisabled()
}
}