Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into autofill/anya-update-…
Browse files Browse the repository at this point in the history
…logins-to-passwords
  • Loading branch information
amddg44 committed Dec 8, 2023
2 parents 5e21de8 + da640ad commit 9e87f9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 18 deletions.
2 changes: 1 addition & 1 deletion DuckDuckGo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9157,7 +9157,7 @@
repositoryURL = "https://github.com/DuckDuckGo/BrowserServicesKit";
requirement = {
kind = exactVersion;
version = 92.0.3;
version = 92.0.4;
};
};
C14882EB27F211A000D59F0C /* XCRemoteSwiftPackageReference "SwiftSoup" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/DuckDuckGo/BrowserServicesKit",
"state": {
"branch": null,
"revision": "5ca0b3d915ab73de43744db40edf41c1d5060034",
"version": "92.0.3"
"revision": "33e55105acc9d6d69ae1326fd5c506cefb89d5cc",
"version": "92.0.4"
}
},
{
Expand Down Expand Up @@ -51,8 +51,8 @@
"repositoryURL": "https://github.com/duckduckgo/duckduckgo-autofill.git",
"state": {
"branch": null,
"revision": "93677cc02cfe650ce7f417246afd0e8e972cd83e",
"version": "10.0.0"
"revision": "dbecae0df07650a21b5632a92fa2e498c96af7b5",
"version": "10.0.1"
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,14 @@ import UIKit
import SwiftUI

struct QRCodeView: View {

enum Style {

case light, dark

}

let context = CIContext()

let string: String
let size: CGFloat
let style: Style

init(string: String, size: CGFloat, style: Style = .light) {
init(string: String, size: CGFloat) {
self.string = string
self.size = size
self.style = style
}

var body: some View {
Expand Down Expand Up @@ -69,8 +60,8 @@ struct QRCodeView: View {
}

let colorParameters: [String: Any] = [
"inputColor0": CIColor(color: style == .light ? .white : .black),
"inputColor1": CIColor(color: style == .light ? .black : .white)
"inputColor0": CIColor(color: .black),
"inputColor1": CIColor(color: .white)
]
let coloredImage = outputImage.applyingFilter("CIFalseColor", parameters: colorParameters)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public struct SaveRecoveryKeyView: View {
func recoveryInfo() -> some View {
VStack(spacing: 26) {
HStack(spacing: 16) {
QRCodeView(string: model.key, size: 64, style: .dark)
QRCodeView(string: model.key, size: 64)

Text(model.key)
.fontWeight(.light)
Expand Down

0 comments on commit 9e87f9c

Please sign in to comment.