Skip to content

Commit

Permalink
point at change to design resources kit
Browse files Browse the repository at this point in the history
  • Loading branch information
brindy committed Oct 9, 2023
1 parent 59fce71 commit 22feade
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
6 changes: 4 additions & 2 deletions DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@
853A717720F645FB00FE60BC /* PixelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PixelTests.swift; sourceTree = "<group>"; };
853C5F5A21BFF0AE001F7A05 /* HomeCollectionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCollectionView.swift; sourceTree = "<group>"; };
853C5F6021C277C7001F7A05 /* global.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = global.swift; sourceTree = "<group>"; };
853DC7692AD45B2400E9C97E /* DesignResourcesKit */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = DesignResourcesKit; path = ../DesignResourcesKit; sourceTree = "<group>"; };
8540BBA12440857A00017FE4 /* PreserveLoginsWorker.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreserveLoginsWorker.swift; sourceTree = "<group>"; };
8540BD5123D8C2220057FDD2 /* PreserveLoginsTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PreserveLoginsTests.swift; sourceTree = "<group>"; };
8540BD5323D8D5080057FDD2 /* PreserveLoginsAlert.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreserveLoginsAlert.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3514,6 +3515,7 @@
84E341891E2F7EFB00BDBA6F = {
isa = PBXGroup;
children = (
853DC7692AD45B2400E9C97E /* DesignResourcesKit */,
EE3B98EB2A963515002F63A0 /* WidgetsExtensionAlpha.entitlements */,
6FB030C7234331B400A10DB9 /* Configuration.xcconfig */,
EEB8FDB92A990AEE00EBEDCF /* Configuration-Alpha.xcconfig */,
Expand Down Expand Up @@ -8985,8 +8987,8 @@
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/duckduckgo/DesignResourcesKit";
requirement = {
kind = exactVersion;
version = 1.1.1;
branch = "brindy/update-panel-for-dark-mode";
kind = branch;
};
};
F486D2EF25069482002D07D7 /* XCRemoteSwiftPackageReference "Kingfisher" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,6 @@
"version": "4.37.0"
}
},
{
"package": "DesignResourcesKit",
"repositoryURL": "https://github.com/duckduckgo/DesignResourcesKit",
"state": {
"branch": null,
"revision": "5de78d59358ff60651b2cf9322c74a2297927b4e",
"version": "1.1.1"
}
},
{
"package": "Autofill",
"repositoryURL": "https://github.com/duckduckgo/duckduckgo-autofill.git",
Expand Down
5 changes: 5 additions & 0 deletions DuckDuckGo/MainView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ extension MainViewFactory {
private func createToolbar() {

coordinator.toolbar = HitTestingToolbar()
coordinator.toolbar.setShadowImage(UIImage(), forToolbarPosition: .any)
coordinator.toolbar.setBackgroundImage(UIImage(), forToolbarPosition: .any, barMetrics: .default)

coordinator.toolbar.isTranslucent = false

coordinator.toolbarBackButton = UIBarButtonItem(title: UserText.keyCommandBrowserBack, image: UIImage(named: "BrowsePrevious"))
coordinator.toolbarForwardButton = UIBarButtonItem(title: UserText.keyCommandBrowserForward, image: UIImage(named: "BrowseNext"))
coordinator.toolbarFireButton = UIBarButtonItem(title: UserText.actionForgetAll, image: UIImage(named: "Fire"))
Expand Down

0 comments on commit 22feade

Please sign in to comment.