mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
Update the main window to use SF Symbols
This commit is contained in:
parent
55e883318d
commit
b51fd847e7
1 changed files with 55 additions and 8 deletions
|
@ -500,6 +500,11 @@ static void removeKeRangerRansomware()
|
|||
"Main window -> 1st bottom left button (action) tooltip")];
|
||||
[fSpeedLimitButton setToolTip: NSLocalizedString(@"Speed Limit overrides the total bandwidth limits with its own limits.",
|
||||
"Main window -> 2nd bottom left button (turtle) tooltip")];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[fActionButton setImage:[NSImage imageWithSystemSymbolName: @"gearshape.fill" accessibilityDescription: nil]];
|
||||
[fSpeedLimitButton setImage:[NSImage imageWithSystemSymbolName: @"tortoise.fill" accessibilityDescription: nil]];
|
||||
}
|
||||
|
||||
[fClearCompletedButton setToolTip: NSLocalizedString(@"Remove all transfers that have completed seeding.",
|
||||
"Main window -> 3rd bottom left button (remove all) tooltip")];
|
||||
|
||||
|
@ -3654,7 +3659,11 @@ static void removeKeRangerRansomware()
|
|||
[item setLabel: NSLocalizedString(@"Create", "Create toolbar item -> label")];
|
||||
[item setPaletteLabel: NSLocalizedString(@"Create Torrent File", "Create toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Create torrent file", "Create toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarCreateTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"doc.badge.plus" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarCreateTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(createFile:)];
|
||||
[item setAutovalidates: NO];
|
||||
|
@ -3668,7 +3677,11 @@ static void removeKeRangerRansomware()
|
|||
[item setLabel: NSLocalizedString(@"Open", "Open toolbar item -> label")];
|
||||
[item setPaletteLabel: NSLocalizedString(@"Open Torrent Files", "Open toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Open torrent files", "Open toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarOpenTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"folder" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarOpenTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(openShowSheet:)];
|
||||
[item setAutovalidates: NO];
|
||||
|
@ -3683,6 +3696,11 @@ static void removeKeRangerRansomware()
|
|||
[item setPaletteLabel: NSLocalizedString(@"Open Torrent Address", "Open address toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Open torrent web address", "Open address toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarOpenWebTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"globe" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarOpenWebTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(openURLShowSheet:)];
|
||||
[item setAutovalidates: NO];
|
||||
|
@ -3696,7 +3714,11 @@ static void removeKeRangerRansomware()
|
|||
[item setLabel: NSLocalizedString(@"Remove", "Remove toolbar item -> label")];
|
||||
[item setPaletteLabel: NSLocalizedString(@"Remove Selected", "Remove toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Remove selected transfers", "Remove toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarRemoveTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"nosign" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarRemoveTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(removeNoDelete:)];
|
||||
[item setVisibilityPriority: NSToolbarItemVisibilityPriorityHigh];
|
||||
|
@ -3711,7 +3733,11 @@ static void removeKeRangerRansomware()
|
|||
[item setLabel: NSLocalizedString(@"Inspector", "Inspector toolbar item -> label")];
|
||||
[item setPaletteLabel: NSLocalizedString(@"Toggle Inspector", "Inspector toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Toggle the torrent inspector", "Inspector toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarInfoTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"info.circle" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarInfoTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(showInfo:)];
|
||||
|
||||
|
@ -3749,12 +3775,21 @@ static void removeKeRangerRansomware()
|
|||
[groupItem setIdentifiers: @[TOOLBAR_PAUSE_ALL, TOOLBAR_RESUME_ALL]];
|
||||
|
||||
[segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseAllTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[segmentedControl setImage: [[NSImage imageWithSystemSymbolName: @"pause.circle.fill" accessibilityDescription: nil] imageWithSymbolConfiguration:[NSImageSymbolConfiguration configurationWithScale:NSImageSymbolScaleLarge]] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
} else {
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseAllTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
}
|
||||
[segmentedCell setToolTip: NSLocalizedString(@"Pause all transfers",
|
||||
"All toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
|
||||
|
||||
[segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeAllTemplate"] forSegment: TOOLBAR_RESUME_TAG];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[segmentedControl setImage: [[NSImage imageWithSystemSymbolName: @"arrow.clockwise.circle.fill" accessibilityDescription: nil] imageWithSymbolConfiguration:[NSImageSymbolConfiguration configurationWithScale:NSImageSymbolScaleLarge]] forSegment: TOOLBAR_RESUME_TAG];
|
||||
} else {
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeAllTemplate"] forSegment: TOOLBAR_RESUME_TAG];
|
||||
}
|
||||
[segmentedCell setToolTip: NSLocalizedString(@"Resume all transfers",
|
||||
"All toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
|
||||
|
||||
|
@ -3798,12 +3833,20 @@ static void removeKeRangerRansomware()
|
|||
[groupItem setIdentifiers: @[TOOLBAR_PAUSE_SELECTED, TOOLBAR_RESUME_SELECTED]];
|
||||
|
||||
[segmentedCell setTag: TOOLBAR_PAUSE_TAG forSegment: TOOLBAR_PAUSE_TAG];
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseSelectedTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[segmentedControl setImage: [[NSImage imageWithSystemSymbolName: @"pause" accessibilityDescription: nil] imageWithSymbolConfiguration:[NSImageSymbolConfiguration configurationWithScale:NSImageSymbolScaleLarge]] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
} else {
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarPauseSelectedTemplate"] forSegment: TOOLBAR_PAUSE_TAG];
|
||||
}
|
||||
[segmentedCell setToolTip: NSLocalizedString(@"Pause selected transfers",
|
||||
"Selected toolbar item -> tooltip") forSegment: TOOLBAR_PAUSE_TAG];
|
||||
|
||||
[segmentedCell setTag: TOOLBAR_RESUME_TAG forSegment: TOOLBAR_RESUME_TAG];
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeSelectedTemplate"] forSegment: TOOLBAR_RESUME_TAG];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[segmentedControl setImage: [NSImage imageWithSystemSymbolName: @"arrow.clockwise" accessibilityDescription: nil] forSegment: TOOLBAR_RESUME_TAG];
|
||||
} else {
|
||||
[segmentedControl setImage: [NSImage imageNamed: @"ToolbarResumeSelectedTemplate"] forSegment: TOOLBAR_RESUME_TAG];
|
||||
}
|
||||
[segmentedCell setToolTip: NSLocalizedString(@"Resume selected transfers",
|
||||
"Selected toolbar item -> tooltip") forSegment: TOOLBAR_RESUME_TAG];
|
||||
|
||||
|
@ -3823,7 +3866,11 @@ static void removeKeRangerRansomware()
|
|||
[item setLabel: NSLocalizedString(@"Filter", "Filter toolbar item -> label")];
|
||||
[item setPaletteLabel: NSLocalizedString(@"Toggle Filter", "Filter toolbar item -> palette label")];
|
||||
[item setToolTip: NSLocalizedString(@"Toggle the filter bar", "Filter toolbar item -> tooltip")];
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarFilterTemplate"]];
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[item setImage: [NSImage imageWithSystemSymbolName: @"magnifyingglass" accessibilityDescription: nil]];
|
||||
} else {
|
||||
[item setImage: [NSImage imageNamed: @"ToolbarFilterTemplate"]];
|
||||
}
|
||||
[item setTarget: self];
|
||||
[item setAction: @selector(toggleFilterBar:)];
|
||||
|
||||
|
|
Loading…
Reference in a new issue