Merge nucleic/frosty-velvet-newt-dwmi into dev
This commit is contained in:
@@ -156,7 +156,6 @@ struct StartChatComposer: View {
|
||||
.textFieldStyle(.plain)
|
||||
.lineLimit(1...5)
|
||||
.padding(.vertical, 3)
|
||||
.orchestraGlow(active: MobileEfforts.isOrchestra(effort) && controlled)
|
||||
.focused(focus)
|
||||
Button {
|
||||
if let project = selected {
|
||||
@@ -195,6 +194,7 @@ struct StartChatComposer: View {
|
||||
.padding(.horizontal, 14)
|
||||
.padding(.vertical, 12)
|
||||
.glassSurface(cornerRadius: 26)
|
||||
.orchestraGlow(active: MobileEfforts.isOrchestra(effort) && controlled, cornerRadius: 26)
|
||||
// Prefill the base branch with the project's default so it actually appears (mirroring the
|
||||
// Mac composer's `effectiveBranch`), rather than sitting as an empty placeholder.
|
||||
.onAppear(perform: syncToProject)
|
||||
|
||||
@@ -398,8 +398,8 @@ extension View {
|
||||
/// composer no dismiss affordance (no Return key on a vertical/multiline field, nothing to
|
||||
/// tap) and the keyboard stays up. See `KeyboardDismissable`.
|
||||
func keyboardDismissable() -> some View { modifier(KeyboardDismissable()) }
|
||||
/// Wrap a composer field in the orchestra purple ring while `active` (mirrors the Mac's
|
||||
/// animated composer glow, lighter touch).
|
||||
/// Wrap a composer in the orchestra gold ring while `active` (mirrors the Mac's animated
|
||||
/// composer glow, lighter touch).
|
||||
func orchestraGlow(active: Bool, cornerRadius: CGFloat = 8) -> some View {
|
||||
modifier(OrchestraGlowModifier(active: active, cornerRadius: cornerRadius))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user