Skip to content

Commit

Permalink
Add icons to delay and animations
Browse files Browse the repository at this point in the history
  • Loading branch information
zenangst committed Sep 16, 2023
1 parent ed36a5b commit 46ddf9c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 12 deletions.
15 changes: 9 additions & 6 deletions App/Sources/UI/Views/Commands/CommandContainerDelayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ struct CommandContainerDelayView: View {
delayOverlay = true
} label: {
HStack {
if let delay = metaData.delay {
Text("\(Int(delay)) milliseconds")
.font(.caption)
} else {
Text("No delay")
.font(.caption)
HStack(spacing: 4) {
Image(systemName: "hourglass")
if let delay = metaData.delay {
Text("\(Int(delay)) milliseconds")
.font(.caption)
} else {
Text("No delay")
.font(.caption)
}
}
Divider()
.frame(height: 6)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@ struct WindowManagementAnimationDurationView: View {
animationDurationVisible = true
} label: {
HStack {
if windowCommand.animationDuration > 0 {
Text("\(Int(windowCommand.animationDuration * 1000)) milliseconds")
.font(.caption)
} else {
Text("No animation")
.font(.caption)
HStack(spacing: 4) {
Image(systemName: "speedometer")
if windowCommand.animationDuration > 0 {
Text("\(Int(windowCommand.animationDuration * 1000)) milliseconds")
.font(.caption)
} else {
Text("No animation")
.font(.caption)
}
}
Divider()
.frame(height: 6)
Expand Down

0 comments on commit 46ddf9c

Please sign in to comment.