diff --git a/Classes/DocumentToolbarDelegate.swift b/Classes/DocumentToolbarDelegate.swift index f5ece93..685bbfb 100644 --- a/Classes/DocumentToolbarDelegate.swift +++ b/Classes/DocumentToolbarDelegate.swift @@ -27,7 +27,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { label: NSLocalizedString("Import", comment: "Toolbar"), toolTip: NSLocalizedString("Import tracks from external files", comment: "Toolbar"), image: "NSAddTemplate", - symbolName: "plus", + symbolName: "doc.badge.plus", target: target, action: #selector(DocumentWindowController.selectFile(_:))) } else if itemIdentifier == .deleteTracks { @@ -35,7 +35,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { label: NSLocalizedString("Delete", comment: "Toolbar"), toolTip: NSLocalizedString("Delete the selected track", comment: "Toolbar"), image: "NSRemoveTemplate", - symbolName: "minus", + symbolName: "nosign", target: target, action: #selector(DocumentWindowController.deleteTrack(_:))) } else if itemIdentifier == .actions { @@ -119,7 +119,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { label: NSLocalizedString("Search Metadata", comment: "Toolbar"), toolTip: NSLocalizedString("Search metadata on the web", comment: "Toolbar"), image: "NSRevealFreestandingTemplate", - symbolName: "sparkle.magnifyingglass", + symbolName: "doc.text.magnifyingglass", target: target, action: #selector(DocumentWindowController.searchMetadata(_:))) } else if itemIdentifier == .sendToQueue { @@ -144,7 +144,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate { } @MainActor func toolbarDefaultItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] { - return [.importTracks, .deleteTracks, .space, .actions, .flexibleSpace, .searchMetadata] + return [.importTracks, .searchMetadata, .actions, .space, .deleteTracks, .flexibleSpace, .sendToQueue, .showQueue,] } @MainActor func toolbarAllowedItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] { diff --git a/Classes/DocumentWindowController.swift b/Classes/DocumentWindowController.swift index 2d30ac5..1ce21c9 100644 --- a/Classes/DocumentWindowController.swift +++ b/Classes/DocumentWindowController.swift @@ -49,7 +49,11 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe toolbar.delegate = toolbarDelegate toolbar.allowsUserCustomization = true toolbar.autosavesConfiguration = true - toolbar.displayMode = .iconAndLabel + if #available(macOS 26, *) { + toolbar.displayMode = .iconAndLabel + } else { + toolbar.displayMode = .iconOnly + } self.window?.toolbar = toolbar window.contentViewController = splitViewController diff --git a/Classes/QueueController.swift b/Classes/QueueController.swift index a3064b3..a7fe81f 100644 --- a/Classes/QueueController.swift +++ b/Classes/QueueController.swift @@ -67,7 +67,11 @@ final class QueueController : NSWindowController, NSWindowDelegate, NSPopoverDel toolbar.delegate = toolbarDelegate toolbar.allowsUserCustomization = true toolbar.autosavesConfiguration = true - toolbar.displayMode = .iconAndLabel + if #available(macOS 26, *) { + toolbar.displayMode = .iconAndLabel + } else { + toolbar.displayMode = .iconOnly + } self.window?.toolbar = toolbar table.registerForDraggedTypes([NSPasteboard.PasteboardType.fileURL, tablePasteboardType]) diff --git a/Classes/QueueToolbarDelegate.swift b/Classes/QueueToolbarDelegate.swift index 3a0b20d..de503f5 100644 --- a/Classes/QueueToolbarDelegate.swift +++ b/Classes/QueueToolbarDelegate.swift @@ -24,7 +24,7 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate { label: NSLocalizedString("Add Item", comment: "Toolbar"), toolTip: NSLocalizedString("Add an item to the queue", comment: "Toolbar"), image: "NSAddTemplate", - symbolName: "plus", + symbolName: "doc.badge.plus", target: target, action: #selector(QueueController.open(_:))) } else if itemIdentifier == .queueSettings {