Skip to content

Commit

Permalink
Merge branch 'graeme/turn-autofill-on-with-new-onboarding' into graem…
Browse files Browse the repository at this point in the history
…e/turn-autofill-on-flag-and-pixels
  • Loading branch information
graeme committed Aug 5, 2024
2 parents 7b5a48a + b57eb68 commit 0559e11
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
Binary file not shown.
12 changes: 12 additions & 0 deletions DuckDuckGo/Assets.xcassets/App-DDG-32.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "App-DDG-32.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
5 changes: 3 additions & 2 deletions DuckDuckGo/AutofillViews.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ struct AutofillViews {

struct AppIconHeader: View {
var body: some View {
Image.appIcon
.scaledToFit()
Image(.appDDG32)
.resizable()
.frame(width: 48, height: 48)
}
}

Expand Down
4 changes: 2 additions & 2 deletions DuckDuckGo/SaveLoginView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ struct SaveLoginView: View {
AutofillViews.AppIconHeader()
Spacer(minLength: Const.Size.contentSpacing)
AutofillViews.Headline(title: title)
Spacer(minLength: Const.Size.contentSpacing)
Spacer(minLength: 8)
contentView
Spacer(minLength: Const.Size.contentSpacing)
if case .newUser = layoutType {
Expand Down Expand Up @@ -148,7 +148,7 @@ struct SaveLoginView: View {
VStack(alignment: .leading, spacing: 0) {
HStack(alignment: .center, spacing: 10) {
Text(UserText.autofillOnboardingKeyFeaturesTitle)
.font(Font.custom("SF Pro Text", size: 12))
.font(Font.system(size: 12, weight: .semibold))
.multilineTextAlignment(.center)
.foregroundColor(Color(designSystemColor: .textSecondary))
.frame(width: 255, alignment: .top)
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/SaveLoginViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ final class SaveLoginViewModel: ObservableObject {
if shouldShowDisableAutofillPrompt() {
delegate?.saveLoginViewModelConfirmKeepUsing(self)
autofillSaveModalDisablePromptShown = true
autofillFirstTimeUser = false
}
}
}

0 comments on commit 0559e11

Please sign in to comment.