Fix header image white background
This commit is contained in:
parent
8fb95f7900
commit
57dbe2b8ab
|
@ -18,10 +18,8 @@ struct SettingsFeedbinAccountView: View {
|
|||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
VStack {
|
||||
AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)
|
||||
List {
|
||||
Section {
|
||||
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)) {
|
||||
TextField("Email", text: $settingsModel.email).textContentType(.emailAddress)
|
||||
SecureField("Password", text: $settingsModel.password)
|
||||
}
|
||||
|
@ -45,7 +43,6 @@ struct SettingsFeedbinAccountView: View {
|
|||
}
|
||||
.listStyle(InsetGroupedListStyle())
|
||||
.disabled(settingsModel.busy)
|
||||
}
|
||||
.onReceive(settingsModel.$shouldDismiss, perform: { dismiss in
|
||||
if dismiss == true {
|
||||
presentationMode.wrappedValue.dismiss()
|
||||
|
|
|
@ -15,10 +15,8 @@ struct SettingsLocalAccountView: View {
|
|||
|
||||
var body: some View {
|
||||
NavigationView {
|
||||
VStack(spacing: 0) {
|
||||
AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)
|
||||
List {
|
||||
Section {
|
||||
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)) {
|
||||
HStack {
|
||||
TextField("Name", text: $name)
|
||||
}
|
||||
|
@ -34,7 +32,6 @@ struct SettingsLocalAccountView: View {
|
|||
}
|
||||
}
|
||||
.listStyle(InsetGroupedListStyle())
|
||||
}
|
||||
.navigationBarTitle(Text(verbatim: Account.defaultLocalAccountName), displayMode: .inline)
|
||||
.navigationBarItems(leading: Button(action: { self.dismiss() }) { Text("Cancel") } )
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue