Skip to content

Commit

Permalink
home: Use more consistent 'play' icons in menus
Browse files Browse the repository at this point in the history
  • Loading branch information
3j14 committed Jul 8, 2023
1 parent 96f6619 commit ec778d0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Platform/Shared/VMCardView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ struct VMCardView: View {
Button {
data.run(vm: vm)
} label: {
Label("Run", systemImage: "play.circle")
Label("Run", systemImage: "play.circle.fill")
.font(.largeTitle)
.labelStyle(.iconOnly)
}
Expand Down
10 changes: 5 additions & 5 deletions Platform/Shared/VMContextMenuModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,29 +44,29 @@ struct VMContextMenuModifier: ViewModifier {
Button {
confirmAction = .confirmStopVM
} label: {
Label("Stop", systemImage: "stop.fill")
Label("Stop", systemImage: "stop")
}.help("Stop the running VM.")
} else if !vm.isModifyAllowed { // paused
Button {
data.run(vm: vm)
} label: {
Label("Resume", systemImage: "playpause.fill")
Label("Resume", systemImage: "playpause")
}.help("Resume running VM.")
} else {
Divider()

Button {
data.run(vm: vm)
} label: {
Label("Run", systemImage: "play.fill")
Label("Run", systemImage: "play")
}.help("Run the VM in the foreground.")

#if os(macOS) && arch(arm64)
if #available(macOS 13, *), let appleConfig = vm.config as? UTMAppleConfiguration, appleConfig.system.boot.operatingSystem == .macOS {
Button {
data.run(vm: vm, options: .bootRecovery)
} label: {
Label("Run Recovery", systemImage: "play.fill")
Label("Run Recovery", systemImage: "play")
}.help("Boot into recovery mode.")
}
#endif
Expand All @@ -75,7 +75,7 @@ struct VMContextMenuModifier: ViewModifier {
Button {
data.run(vm: vm, options: .bootDisposibleMode)
} label: {
Label("Run without saving changes", systemImage: "play")
Label("Run without saving changes", systemImage: "memories")
}.help("Run the VM in the foreground, without saving data changes to disk.")
}

Expand Down
4 changes: 2 additions & 2 deletions Platform/Shared/VMToolbarModifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ struct VMToolbarModifier: ViewModifier {
Button {
confirmAction = .confirmStopVM
} label: {
Label("Stop", systemImage: "stop.fill")
Label("Stop", systemImage: "stop")
.labelStyle(.iconOnly)
}.help("Stop selected VM")
.padding(.leading, padding)
} else {
Button {
data.run(vm: data.selectedVM!)
} label: {
Label("Run", systemImage: "play.fill")
Label("Run", systemImage: "play")
.labelStyle(.iconOnly)
}.help("Run selected VM")
.padding(.leading, padding)
Expand Down

0 comments on commit ec778d0

Please sign in to comment.