From ae36b3fb73e367b9953597aa670a9b4b645ce165 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mariusz=20=C5=9Apiewak?= Date: Wed, 10 Apr 2024 15:09:40 +0200 Subject: [PATCH] Update set-as-default onboarding illustration for dark mode (#2694) --- DuckDuckGo.xcodeproj/project.pbxproj | 4 + DuckDuckGo/Base.lproj/Onboarding.storyboard | 94 +++++------------- .../DaxOnboardingPadViewController.swift | 1 + .../Contents.json | 2 +- .../Default-Browser.svg | 33 ++++++ .../illustration.pdf | Bin 111042 -> 0 bytes DuckDuckGo/OnboardingButtonsView.swift | 56 +++++++++++ ...boardingDefaultBroswerViewController.swift | 2 +- DuckDuckGo/OnboardingViewController.swift | 92 ++++++++++++----- DuckDuckGo/Theme+DesignSystem.swift | 3 + DuckDuckGo/Theme.swift | 3 + .../DuckUI/Sources/DuckUI/Button.swift | 52 +++++++--- 12 files changed, 234 insertions(+), 108 deletions(-) create mode 100644 DuckDuckGo/Onboarding.xcassets/OnboardingDefaultBrowserImage.imageset/Default-Browser.svg delete mode 100644 DuckDuckGo/Onboarding.xcassets/OnboardingDefaultBrowserImage.imageset/illustration.pdf create mode 100644 DuckDuckGo/OnboardingButtonsView.swift diff --git a/DuckDuckGo.xcodeproj/project.pbxproj b/DuckDuckGo.xcodeproj/project.pbxproj index 39f9bbc866..47f83b0043 100644 --- a/DuckDuckGo.xcodeproj/project.pbxproj +++ b/DuckDuckGo.xcodeproj/project.pbxproj @@ -318,6 +318,7 @@ 6AC6DAB328804F97002723C0 /* BarsAnimator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AC6DAB228804F97002723C0 /* BarsAnimator.swift */; }; 6AC98419288055C1005FA9CA /* BarsAnimatorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6AC98418288055C1005FA9CA /* BarsAnimatorTests.swift */; }; 6F655BE22BAB289E00AC3597 /* DefaultTheme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F655BE12BAB289E00AC3597 /* DefaultTheme.swift */; }; + 6F8496412BC3D8EE00ADA54E /* OnboardingButtonsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6F8496402BC3D8EE00ADA54E /* OnboardingButtonsView.swift */; }; 6FDA1FB32B59584400AC962A /* AddressDisplayHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6FDA1FB22B59584400AC962A /* AddressDisplayHelper.swift */; }; 83004E802193BB8200DA013C /* WKNavigationExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83004E7F2193BB8200DA013C /* WKNavigationExtension.swift */; }; 83004E862193E5ED00DA013C /* TabViewControllerBrowsingMenuExtension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 83004E852193E5ED00DA013C /* TabViewControllerBrowsingMenuExtension.swift */; }; @@ -1433,6 +1434,7 @@ 6AC6DAB228804F97002723C0 /* BarsAnimator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BarsAnimator.swift; sourceTree = ""; }; 6AC98418288055C1005FA9CA /* BarsAnimatorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BarsAnimatorTests.swift; sourceTree = ""; }; 6F655BE12BAB289E00AC3597 /* DefaultTheme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DefaultTheme.swift; sourceTree = ""; }; + 6F8496402BC3D8EE00ADA54E /* OnboardingButtonsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnboardingButtonsView.swift; sourceTree = ""; }; 6FB030C7234331B400A10DB9 /* Configuration.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Configuration.xcconfig; path = Configuration/Configuration.xcconfig; sourceTree = ""; }; 6FDA1FB22B59584400AC962A /* AddressDisplayHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddressDisplayHelper.swift; sourceTree = ""; }; 83004E7F2193BB8200DA013C /* WKNavigationExtension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WKNavigationExtension.swift; sourceTree = ""; }; @@ -5400,6 +5402,7 @@ F4B0B795252CB35700830156 /* OnboardingWidgetsDetailsViewController.swift */, 851B128B2220483A004781BC /* OnboardingViewController.swift */, F47E53DA250A9A1C0037C686 /* Onboarding.xcassets */, + 6F8496402BC3D8EE00ADA54E /* OnboardingButtonsView.swift */, ); name = Onboarding; sourceTree = ""; @@ -6612,6 +6615,7 @@ D6E83C2E2B1EA06E006C8AFB /* SettingsViewModel.swift in Sources */, 8590CB612684D0600089F6BF /* CookieDebugViewController.swift in Sources */, 319A37152829A55F0079FBCE /* AutofillListItemTableViewCell.swift in Sources */, + 6F8496412BC3D8EE00ADA54E /* OnboardingButtonsView.swift in Sources */, 1EA513782866039400493C6A /* TrackerAnimationLogic.swift in Sources */, 854A01332A558B3A00FCC628 /* UIView+Constraints.swift in Sources */, C12726EE2A5FF88C00215B02 /* EmailSignupPromptView.swift in Sources */, diff --git a/DuckDuckGo/Base.lproj/Onboarding.storyboard b/DuckDuckGo/Base.lproj/Onboarding.storyboard index 2df197cfe4..d052444b85 100644 --- a/DuckDuckGo/Base.lproj/Onboarding.storyboard +++ b/DuckDuckGo/Base.lproj/Onboarding.storyboard @@ -1,9 +1,9 @@ - + - + @@ -35,10 +35,10 @@ - + - + - + - - - - - - + + - - - - - + - - - - - - + - - - + + + - - - - + - - @@ -262,14 +219,13 @@ - - +