Skip to content

Commit 165a5fb

Browse files
committed
set text color of path to gray
1 parent e92298f commit 165a5fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Core/Sources/HostApp/Benchmark/Presentation/View/DirectoryNameView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import SwiftUI
33
struct DirectoryNameView: View {
44
let directory: BenchmarkDirectory
55
@State private var isPressed = false
6+
@Environment(\.colorScheme) var colorScheme
67

78
var body: some View {
89
Text(isPressed ? directory.url.path : directory.name)
10+
.foregroundStyle(isPressed ? Color.gray : colorScheme == .dark ? Color.white : Color.black)
911
.gesture(
1012
DragGesture(minimumDistance: 0)
1113
.onChanged({ _ in

0 commit comments

Comments
 (0)