Replace playlist status icons with SF Symbols
On Big Sur and up only, of course. Signed-off-by: Christopher Snowhill <kode54@gmail.com>CQTexperiment
parent
a4387dc6d1
commit
8f1143818b
|
@ -28,3 +28,7 @@
|
|||
"SwitchToMiniPlayer" = "Switch to Mini Player";
|
||||
"SwitchFromMiniPlayer" = "Switch from Mini Player";
|
||||
|
||||
"PlayingTrackTooltip" = "Playing";
|
||||
"QueuedTrackTooltip" = "Queued";
|
||||
"ErrorTrackTooltip" = "Error";
|
||||
"StopAfterTrackTooltip" = "Stop After Track";
|
||||
|
|
|
@ -26,10 +26,17 @@
|
|||
- (id)init {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
self.playImage = [NSImage imageNamed:@"playTemplate"];
|
||||
self.queueImage = [NSImage imageNamed:@"NSAddTemplate"];
|
||||
self.errorImage = [NSImage imageNamed:@"NSStopProgressTemplate"];
|
||||
self.stopAfterImage = [NSImage imageNamed:@"stopTemplate"];
|
||||
if(@available(macOS 11.0, *)) {
|
||||
self.playImage = [NSImage imageWithSystemSymbolName:@"play.fill" accessibilityDescription:NSLocalizedString(@"PlayingTrackTooltip", "")];
|
||||
self.queueImage = [NSImage imageWithSystemSymbolName:@"plus" accessibilityDescription:NSLocalizedString(@"QueuedTrackTooltip", "")];
|
||||
self.errorImage = [NSImage imageWithSystemSymbolName:@"nosign" accessibilityDescription:NSLocalizedString(@"ErrorTrackTooltip", "")];
|
||||
self.stopAfterImage = [NSImage imageWithSystemSymbolName:@"stop.fill" accessibilityDescription:NSLocalizedString(@"StopAfterTrackTooltip", "")];
|
||||
} else {
|
||||
self.playImage = [NSImage imageNamed:@"playTemplate"];
|
||||
self.queueImage = [NSImage imageNamed:@"NSAddTemplate"];
|
||||
self.errorImage = [NSImage imageNamed:@"NSStopProgressTemplate"];
|
||||
self.stopAfterImage = [NSImage imageNamed:@"stopTemplate"];
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
|
|
@ -28,3 +28,7 @@
|
|||
"SwitchToMiniPlayer" = "Switch to Mini Player";
|
||||
"SwitchFromMiniPlayer" = "Switch from Mini Player";
|
||||
|
||||
"PlayingTrackTooltip" = "Playing";
|
||||
"QueuedTrackTooltip" = "Queued";
|
||||
"ErrorTrackTooltip" = "Error";
|
||||
"StopAfterTrackTooltip" = "Stop After Track";
|
||||
|
|
|
@ -28,3 +28,7 @@
|
|||
"SwitchToMiniPlayer" = "Switch to Mini Player";
|
||||
"SwitchFromMiniPlayer" = "Switch from Mini Player";
|
||||
|
||||
"PlayingTrackTooltip" = "Playing";
|
||||
"QueuedTrackTooltip" = "Queued";
|
||||
"ErrorTrackTooltip" = "Error";
|
||||
"StopAfterTrackTooltip" = "Stop After Track";
|
||||
|
|
Loading…
Reference in New Issue