-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Scroll to credentials found on a website. * Select the first login if the match isn't found. * Retain the filtering logic on 10.15. * Remove the timer. * Rename a view. Could still be clearer maybe? * Drop the "www." prefix of domains when selecting. * Work on login filtering. * More sorting work. Inefficient at the moment though. * Add new menu items. Need proper pixels. * Update the images to be templates. * Fix unit tests. * Move sorting code out into a separate file. * More sorting work. * Monitor the scroll offset to fade in the divider. * Use the custom NSPopUpButton in the PWM list view. * Fix merge issues. * Temporarily move back to VStack. * Update the sorting icon. * Update assets. * Update filter UI styling. * Rename some assets. * Remove padding on the top section's title. * Use category colors for the pop up button. * Use the right appearance for allItems. * Try adding an empty state. * Silence a build warning. * Add icons to the Add menu. * Play with appearance changes. * Add the rough PopUpButton implementation. * Line up the category button frames. * Change category picker colors. * Improve the way empty states are displayed. * Avoid uppercasing the month string. * Sort out the image rendering issue once and for all. * Update pixels. * Work on self-review items. * Fix unit test compilation. * Add list section unit tests. * Move strings into UserText. * Add another section test. * More UserText changes. * Fix a compilation error when building for release. * Remember the sort descriptor when opening Logins+. * Fix the image issue… again! * Partially fix the preferences divider rendering. * Test out a way to detect the idle state of the system. * Add the initial UI for Logins+ authentication. * Store preferences in user defaults. * Begin sketching out the authentication service flow. * Avoid closing the popover when authenticating. * Add logging. * Implement more of the lock screen. * Make sure that the timer runs all the time. * Lock Logins+ while it’s visible. * Use the correct LAContext policy. * Add a new background color for the Auto-Lock screen. * Rig up the user preferences link. * Use the correct asset for the device state. * Change the timer to 30 seconds. * Make sure that the New Item buttons always work. * Always authenticate credit card information. * Set the dev timer to 15 seconds. * Clean up some table view positioning. * Prevent the GPC text from intercepting scrolling. * More layout refinement. * Tweak cell resizing. * Clean up warnings. * Intercept click events inside ColorView. * Fix lock screen text colors. * Re-enable a SwiftLint warning fix. * Ensure that items within sections are sorted correctly. * Use an empty to calculate the empty state. * Update unit tests to reflect the sorting change. * Add some unit tests for the new empty state logic. * Fix self-review comments. * Clean up some string value calculation. * Clean up the new menu code. * Swap to the correct category when selecting an item. * Use the correct color for the unlock button. * Dismiss the logins popover when clicking the Preferences button. * Remove first responder when showing the lock screen. * Clean up the NSImage tint function. * Move the empty state code to its own section. * Update the way selected items are managed. * Disable category changes when editing. * Don’t request permission every time settings change. * Hide the password manager popover if clicking the button while it’s already visible. * Avoid the default empty state appearing at unexpected times. * Apply more dependency injection to the DeviceAuthenticator. * Add unit tests. * Disable the search field when editing. * Point to the logins authentication BSK branch. * Add pixels. * Clean up some commented code. * Fix a compilation error. * Fix a couple last-minute issues. * Display the correct unlock reason. * Resolve self-review comments. * Set the privacy dashboard back to the correct version. * Remove a duplicate file. * Remove the App Delegate timer call. The app launches locked anyway. * Fix unit tests. * Resolve warnings now that Logins preferences aren’t a struct. * Move remaining strings into UserText. * update packages resolved * Update the logins authentication BSK commit. * Use an enum to return the authentication state. * Update ContentOverlayViewController to implement SecureVaultManagerDelegate. * Point to BSK 11.0.0. Co-authored-by: Chris Brind <brindy@duckduckgo.com>
- Loading branch information
Showing
48 changed files
with
1,774 additions
and
98 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
DuckDuckGo/Assets.xcassets/Colors/BlackWhite10.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.100", | ||
"blue" : "0.000", | ||
"green" : "0.000", | ||
"red" : "0.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.100", | ||
"blue" : "1.000", | ||
"green" : "1.000", | ||
"red" : "1.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
DuckDuckGo/Assets.xcassets/Colors/BlackWhite60.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.600", | ||
"blue" : "0.000", | ||
"green" : "0.000", | ||
"red" : "0.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "0.600", | ||
"blue" : "1.000", | ||
"green" : "1.000", | ||
"red" : "1.000" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
DuckDuckGo/Assets.xcassets/Colors/NeutralBackgroundColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0xF0", | ||
"green" : "0xEF", | ||
"red" : "0xF1" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.200", | ||
"green" : "0.200", | ||
"red" : "0.200" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
DuckDuckGo/Assets.xcassets/Images/Logins+.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "Logins+.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file not shown.
12 changes: 12 additions & 0 deletions
12
DuckDuckGo/Assets.xcassets/Images/Logins+/LoginsLockPassword.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "LoginsLockPassword.pdf", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+6.45 KB
DuckDuckGo/Assets.xcassets/Images/Logins+/LoginsLockPassword.imageset/LoginsLockPassword.pdf
Binary file not shown.
27 changes: 27 additions & 0 deletions
27
DuckDuckGo/Assets.xcassets/Images/Logins+/LoginsLockTouchID.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "LoginsLockTouchID.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "LoginsLockTouchID@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "LoginsLockTouchID@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"preserves-vector-representation" : true, | ||
"template-rendering-intent" : "original" | ||
} | ||
} |
Binary file added
BIN
+4.17 KB
...Assets.xcassets/Images/Logins+/LoginsLockTouchID.imageset/LoginsLockTouchID.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+9.39 KB
...ets.xcassets/Images/Logins+/LoginsLockTouchID.imageset/LoginsLockTouchID@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+15.2 KB
...ets.xcassets/Images/Logins+/LoginsLockTouchID.imageset/LoginsLockTouchID@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// FlatButton.swift | ||
// | ||
// Copyright © 2022 DuckDuckGo. All rights reserved. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
|
||
import Foundation | ||
|
||
@IBDesignable class FlatButton: NSButton { | ||
|
||
@IBInspectable var cornerRadius: CGFloat = 5 | ||
@IBInspectable var horizontalPadding: CGFloat = 10 | ||
@IBInspectable var verticalPadding: CGFloat = 10 | ||
@IBInspectable var backgroundColor: NSColor = .blue | ||
|
||
override func draw(_ dirtyRect: NSRect) { | ||
|
||
self.wantsLayer = true | ||
self.layer?.cornerRadius = cornerRadius | ||
|
||
if isHighlighted { | ||
layer?.backgroundColor = backgroundColor.blended(withFraction: 0.2, of: .black)?.cgColor | ||
} else { | ||
layer?.backgroundColor = backgroundColor.cgColor | ||
} | ||
|
||
let originalBounds = self.bounds | ||
defer { self.bounds = originalBounds } | ||
|
||
self.bounds = originalBounds.insetBy(dx: horizontalPadding, dy: verticalPadding) | ||
|
||
super.draw(dirtyRect) | ||
} | ||
} |
Oops, something went wrong.