We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e92298f commit 165a5fbCopy full SHA for 165a5fb
1 file changed
Core/Sources/HostApp/Benchmark/Presentation/View/DirectoryNameView.swift
@@ -3,9 +3,11 @@ import SwiftUI
3
struct DirectoryNameView: View {
4
let directory: BenchmarkDirectory
5
@State private var isPressed = false
6
+ @Environment(\.colorScheme) var colorScheme
7
8
var body: some View {
9
Text(isPressed ? directory.url.path : directory.name)
10
+ .foregroundStyle(isPressed ? Color.gray : colorScheme == .dark ? Color.white : Color.black)
11
.gesture(
12
DragGesture(minimumDistance: 0)
13
.onChanged({ _ in
0 commit comments