Skip to content

Commit 62f99b2

Browse files
optimisticcreatorross-dash
authored andcommitted
Update colors on "Import Private Key" sheet
1 parent 8a2e3e5 commit 62f99b2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

DashWallet/Sources/UI/Menu/Tools/ImportWallet/ImportPrivateKeySheet.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ import SwiftUI
1919

2020
struct ImportPrivateKeySheet: View {
2121
@Environment(\.presentationMode) private var presentationMode
22+
@Environment(\.colorScheme) private var colorScheme
2223
let onScanPrivateKey: () -> Void
2324

2425
var body: some View {
2526
VStack(spacing: 0) {
2627
// Grabber
2728
Capsule()
28-
.fill(Color(red: 0.83, green: 0.83, blue: 0.85))
29+
.fill(colorScheme == .dark ? Color.whiteAlpha20 : Color.gray300Alpha50)
2930
.frame(width: 36, height: 5)
3031
.padding(.top, 6)
3132
.padding(.bottom, 6)
@@ -37,7 +38,7 @@ struct ImportPrivateKeySheet: View {
3738
Button(action: {
3839
presentationMode.wrappedValue.dismiss()
3940
}) {
40-
Image("icon-close-sheet")
41+
Image(colorScheme == .dark ? "icon-close-sheet-white" : "icon-close-sheet")
4142
.resizable()
4243
.aspectRatio(contentMode: .fit)
4344
.frame(width: 9, height: 9)

0 commit comments

Comments
 (0)