Update the actions item toolbar icon
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -88,7 +88,10 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier)
|
let item = NSMenuToolbarItem(itemIdentifier: itemIdentifier)
|
||||||
item.label = label
|
item.label = label
|
||||||
item.paletteLabel = label
|
item.paletteLabel = label
|
||||||
if #available(macOS 11.0, *) {
|
item.toolTip = NSLocalizedString("Perform tasks with the selected items", comment: "Toolbar")
|
||||||
|
if #available(macOS 26.0, *) {
|
||||||
|
item.image = NSImage.init(systemSymbolName: "ellipsis", accessibilityDescription: nil)
|
||||||
|
} else if #available(macOS 26.0, *) {
|
||||||
item.image = NSImage.init(systemSymbolName: "ellipsis.circle", accessibilityDescription: nil)
|
item.image = NSImage.init(systemSymbolName: "ellipsis.circle", accessibilityDescription: nil)
|
||||||
} else {
|
} else {
|
||||||
item.image = NSImage(named:"NSActionTemplate")
|
item.image = NSImage(named:"NSActionTemplate")
|
||||||
@@ -109,6 +112,7 @@ class DocumentToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
let item = ButtonToolbarItem(itemIdentifier: itemIdentifier)
|
let item = ButtonToolbarItem(itemIdentifier: itemIdentifier)
|
||||||
item.label = label
|
item.label = label
|
||||||
item.paletteLabel = label
|
item.paletteLabel = label
|
||||||
|
item.toolTip = NSLocalizedString("Perform tasks with the selected items", comment: "Toolbar")
|
||||||
item.view = popUpButton
|
item.view = popUpButton
|
||||||
item.minSize = NSSize(width: 48, height: 16)
|
item.minSize = NSSize(width: 48, height: 16)
|
||||||
|
|
||||||
|
|||||||
@@ -28,11 +28,15 @@ class QueueToolbarDelegate: NSObject, NSToolbarDelegate {
|
|||||||
target: target,
|
target: target,
|
||||||
action: #selector(QueueController.open(_:)))
|
action: #selector(QueueController.open(_:)))
|
||||||
} else if itemIdentifier == .queueSettings {
|
} else if itemIdentifier == .queueSettings {
|
||||||
|
var symbolName = "ellipsis.circle"
|
||||||
|
if #available(macOS 26.0, *) {
|
||||||
|
symbolName = "ellipsis"
|
||||||
|
}
|
||||||
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
|
return ButtonToolbarItem(itemIdentifier: itemIdentifier,
|
||||||
label: NSLocalizedString("Settings", comment: "Toolbar"),
|
label: NSLocalizedString("Settings", comment: "Toolbar"),
|
||||||
toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"),
|
toolTip: NSLocalizedString("Show/Hide settings", comment: "Toolbar"),
|
||||||
image: "NSActionTemplate",
|
image: "NSActionTemplate",
|
||||||
symbolName: "ellipsis.circle",
|
symbolName: symbolName,
|
||||||
target: target,
|
target: target,
|
||||||
action: #selector(QueueController.toggleOptions(_:)))
|
action: #selector(QueueController.toggleOptions(_:)))
|
||||||
} else if itemIdentifier == .queueStartStop {
|
} else if itemIdentifier == .queueStartStop {
|
||||||
|
|||||||
Reference in new issue
Block a user