ui: move Cast between window mode and settings controls
This commit is contained in:
@@ -32,8 +32,8 @@ struct CastDeviceMenu: View {
|
||||
} label: {
|
||||
if icon {
|
||||
Image(systemName: "airplayvideo")
|
||||
.font(.system(size: 14))
|
||||
.frame(width: 24, height: 24)
|
||||
.font(.system(size: 15))
|
||||
.frame(width: 24, height: 22)
|
||||
} else {
|
||||
Text("Cast to Device")
|
||||
}
|
||||
|
||||
@@ -1805,6 +1805,7 @@ private struct PlayerContent: View {
|
||||
.imageScale(.small)
|
||||
.foregroundStyle(Color(model.isOnTop ? SunsetPalette.accent : SunsetPalette.secondaryText))
|
||||
.disabled(model.isFullScreen || model.compactWindow.isTransitioning)
|
||||
CastDeviceMenu(model: model)
|
||||
actionsMenu
|
||||
}
|
||||
.padding(.horizontal, 8)
|
||||
@@ -1870,8 +1871,8 @@ private struct PlayerContent: View {
|
||||
.disabled(!model.canTogglePlayback)
|
||||
iconButton("pip.exit", "Exit Compact Mode", action: model.toggleCompact)
|
||||
.disabled(!model.canToggleCompact)
|
||||
actionsMenu
|
||||
CastDeviceMenu(model: model)
|
||||
actionsMenu
|
||||
}
|
||||
if showsBufferReadout { bufferReadout }
|
||||
}
|
||||
@@ -1919,7 +1920,6 @@ private struct PlayerContent: View {
|
||||
}
|
||||
Spacer(minLength: 8)
|
||||
HStack(spacing: 12) {
|
||||
CastDeviceMenu(model: model)
|
||||
if !model.subtitleTracks.isEmpty { captionsMenu }
|
||||
iconButton("pip.enter", "Enter Compact Mode", action: model.toggleCompact)
|
||||
.disabled(!model.canToggleCompact)
|
||||
|
||||
Reference in New Issue
Block a user