mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-09 08:39:00 +01:00
Fix header image white background
This commit is contained in:
parent
8fb95f7900
commit
57dbe2b8ab
@ -18,34 +18,31 @@ struct SettingsFeedbinAccountView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
VStack {
|
List {
|
||||||
AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)
|
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .feedbin)!)) {
|
||||||
List {
|
TextField("Email", text: $settingsModel.email).textContentType(.emailAddress)
|
||||||
Section {
|
SecureField("Password", text: $settingsModel.password)
|
||||||
TextField("Email", text: $settingsModel.email).textContentType(.emailAddress)
|
}
|
||||||
SecureField("Password", text: $settingsModel.password)
|
Section(footer: errorFooter) {
|
||||||
}
|
HStack {
|
||||||
Section(footer: errorFooter) {
|
Spacer()
|
||||||
HStack {
|
Button(action: { settingsModel.addAccount() }) {
|
||||||
Spacer()
|
if settingsModel.isUpdate {
|
||||||
Button(action: { settingsModel.addAccount() }) {
|
Text("Update Account")
|
||||||
if settingsModel.isUpdate {
|
} else {
|
||||||
Text("Update Account")
|
Text("Add Account")
|
||||||
} else {
|
|
||||||
Text("Add Account")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.disabled(!settingsModel.isValid)
|
|
||||||
Spacer()
|
|
||||||
if settingsModel.busy {
|
|
||||||
ProgressView()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.disabled(!settingsModel.isValid)
|
||||||
|
Spacer()
|
||||||
|
if settingsModel.busy {
|
||||||
|
ProgressView()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listStyle(InsetGroupedListStyle())
|
|
||||||
.disabled(settingsModel.busy)
|
|
||||||
}
|
}
|
||||||
|
.listStyle(InsetGroupedListStyle())
|
||||||
|
.disabled(settingsModel.busy)
|
||||||
.onReceive(settingsModel.$shouldDismiss, perform: { dismiss in
|
.onReceive(settingsModel.$shouldDismiss, perform: { dismiss in
|
||||||
if dismiss == true {
|
if dismiss == true {
|
||||||
presentationMode.wrappedValue.dismiss()
|
presentationMode.wrappedValue.dismiss()
|
||||||
|
@ -15,26 +15,23 @@ struct SettingsLocalAccountView: View {
|
|||||||
|
|
||||||
var body: some View {
|
var body: some View {
|
||||||
NavigationView {
|
NavigationView {
|
||||||
VStack(spacing: 0) {
|
List {
|
||||||
AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)
|
Section(header: AccountHeaderImageView(image: AppAssets.image(for: .onMyMac)!)) {
|
||||||
List {
|
HStack {
|
||||||
Section {
|
TextField("Name", text: $name)
|
||||||
HStack {
|
}
|
||||||
TextField("Name", text: $name)
|
}
|
||||||
}
|
Section {
|
||||||
}
|
HStack {
|
||||||
Section {
|
Spacer()
|
||||||
HStack {
|
Button(action: { self.addAccount() }) {
|
||||||
Spacer()
|
Text("Add Account")
|
||||||
Button(action: { self.addAccount() }) {
|
}
|
||||||
Text("Add Account")
|
Spacer()
|
||||||
}
|
|
||||||
Spacer()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.listStyle(InsetGroupedListStyle())
|
|
||||||
}
|
}
|
||||||
|
.listStyle(InsetGroupedListStyle())
|
||||||
.navigationBarTitle(Text(verbatim: Account.defaultLocalAccountName), displayMode: .inline)
|
.navigationBarTitle(Text(verbatim: Account.defaultLocalAccountName), displayMode: .inline)
|
||||||
.navigationBarItems(leading: Button(action: { self.dismiss() }) { Text("Cancel") } )
|
.navigationBarItems(leading: Button(action: { self.dismiss() }) { Text("Cancel") } )
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user