Skip to content

Commit

Permalink
[macOS] Use old icon name for Square Grid to support older macOS
Browse files Browse the repository at this point in the history
`square.grid.3x3.fill.square` is deprecated name for `square.grid.3x3.square`.
The former is available on macOS 11.0+, while the latter is for macOS 12.0+.
They are the same visually.

Fixes this report transmission#2269 (comment)
  • Loading branch information
nevack committed Dec 13, 2021
1 parent 2b3fbd9 commit e73395e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions macosx/InfoWindow.xib
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<font key="font" metaFont="system"/>
<segments>
<segment image="info.circle" catalog="system" selected="YES"/>
<segment image="square.grid.3x3.square" catalog="system" tag="1"/>
<segment image="square.grid.3x3.fill.square" catalog="system" tag="1"/>
<segment image="antenna.radiowaves.left.and.right" catalog="system" tag="2"/>
<segment image="person.2" catalog="system" tag="3"/>
<segment image="doc.on.doc" catalog="system" tag="4"/>
Expand Down Expand Up @@ -107,6 +107,6 @@
<image name="gearshape" catalog="system" width="16" height="16"/>
<image name="info.circle" catalog="system" width="15" height="15"/>
<image name="person.2" catalog="system" width="21" height="14"/>
<image name="square.grid.3x3.square" catalog="system" width="15" height="14"/>
<image name="square.grid.3x3.fill.square" catalog="system" width="15" height="14"/>
</resources>
</document>
2 changes: 1 addition & 1 deletion macosx/InfoWindowController.mm
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ - (void)awakeFromNib
[fTabs setImage:[NSImage systemSymbol:@"info.circle"
withFallback:@"InfoGeneral"]
forSegment:TAB_GENERAL_TAG];
[fTabs setImage:[NSImage systemSymbol:@"square.grid.3x3.square"
[fTabs setImage:[NSImage systemSymbol:@"square.grid.3x3.fill.square"
withFallback:@"InfoActivity"]
forSegment:TAB_ACTIVITY_TAG];
[fTabs setImage:[NSImage systemSymbol:@"antenna.radiowaves.left.and.right"
Expand Down

0 comments on commit e73395e

Please sign in to comment.