Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647import ParcelConfigimport SwiftUI
struct MenuPanelArrangement: View { let content: MenuPanelContent
var body: some View { VStack(alignment: .leading, spacing: 12) { HStack { Text(MenuText.text("Windows on this screen")) .font(.subheadline).fontWeight(.medium) .help(content.scope) .accessibilityLabel(content.scope) Spacer() Menu { MenuPanelCommands(items: content.layoutItems, content: content) } label: { Text(content.snapshot.layout.uiTitle) } .fixedSize() .menuStyle(.borderlessButton) .font(.caption) } MenuPanelPreview(snapshot: content.snapshot) .frame(height: 128) HStack(spacing: 6) { ForEach([ConfigCommand.layoutGrid, .layoutColumns, .layoutRows, .layoutSide], id: \.self) { command in if let item = content.command(command) { MenuPanelChoice(item: item, content: content) } } } Text(MenuText.text("Tile count")).font(.caption).foregroundStyle(.secondary) HStack(spacing: 5) { ForEach(content.countItems, id: \.self) { item in MenuPanelChoice(item: item, content: content, showsImage: false) } } if let reason = content.countWarning { Text(reason).font(.caption).foregroundStyle(.secondary) .fixedSize(horizontal: false, vertical: true) } } .modifier(MenuPanelCard()) }}