Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

macOS Touch Bar Icons Location

New MacBook Pro's with Touch Bar, in macOS Sierra, icons for the system control strip, where would they be located?

enter image description here

I looked under HD/System/Library/CoreServices, not there.....

like image 752
Gizmodo Avatar asked Dec 12 '16 22:12

Gizmodo


3 Answers

The Touch Bar system icons are all located in /System/Library/CoreServices/SystemAppearance.bundle/Contents/Resources/Assets.car.

To name a few examples, they are named like TouchBarControlStripSpotlight or TouchBarControlStripSiriContent.


enter image description here

If you want to inspect and also change them you can use the ThemeEngine app to open the .CAR files. You can find the app/project here: https://github.com/alexzielenski/ThemeEngine

Sadly the ThemeEngine.app fails to display all icons. Some appear to be empty, but I guess thats a problem with the app. Maybe there's another, more reliable way to open .CAR files.

like image 68
alexkaessner Avatar answered Oct 17 '22 18:10

alexkaessner


Touch Bar is introducing these new icons: enter image description here

Here are the references: (You can find them and all others images in NSImage.h)

NSImageNameTouchBarAddDetailTemplate, NSImageNameTouchBarAddTemplate, NSImageNameTouchBarAlarmTemplate, NSImageNameTouchBarAudioInputMuteTemplate, NSImageNameTouchBarAudioInputTemplate, NSImageNameTouchBarAudioOutputMuteTemplate, NSImageNameTouchBarAudioOutputVolumeHighTemplate, NSImageNameTouchBarAudioOutputVolumeLowTemplate, NSImageNameTouchBarAudioOutputVolumeMediumTemplate, NSImageNameTouchBarAudioOutputVolumeOffTemplate, NSImageNameTouchBarBookmarksTemplate, NSImageNameTouchBarColorPickerFill, NSImageNameTouchBarColorPickerFont, NSImageNameTouchBarColorPickerStroke, NSImageNameTouchBarCommunicationAudioTemplate, NSImageNameTouchBarCommunicationVideoTemplate, NSImageNameTouchBarComposeTemplate, NSImageNameTouchBarDeleteTemplate, NSImageNameTouchBarDownloadTemplate, NSImageNameTouchBarEnterFullScreenTemplate, NSImageNameTouchBarExitFullScreenTemplate, NSImageNameTouchBarFastForwardTemplate, NSImageNameTouchBarFolderCopyToTemplate, NSImageNameTouchBarFolderMoveToTemplate, NSImageNameTouchBarFolderTemplate, NSImageNameTouchBarGetInfoTemplate, NSImageNameTouchBarGoBackTemplate, NSImageNameTouchBarGoDownTemplate, NSImageNameTouchBarGoForwardTemplate, NSImageNameTouchBarGoUpTemplate, NSImageNameTouchBarHistoryTemplate, NSImageNameTouchBarIconViewTemplate, NSImageNameTouchBarListViewTemplate, NSImageNameTouchBarMailTemplate, NSImageNameTouchBarNewFolderTemplate, NSImageNameTouchBarNewMessageTemplate, NSImageNameTouchBarOpenInBrowserTemplate, NSImageNameTouchBarPauseTemplate, NSImageNameTouchBarPlayheadTemplate, NSImageNameTouchBarPlayPauseTemplate, NSImageNameTouchBarPlayTemplate, NSImageNameTouchBarQuickLookTemplate, NSImageNameTouchBarRecordStartTemplate, NSImageNameTouchBarRecordStopTemplate, NSImageNameTouchBarRefreshTemplate, NSImageNameTouchBarRewindTemplate, NSImageNameTouchBarRotateLeftTemplate, NSImageNameTouchBarRotateRightTemplate, NSImageNameTouchBarSearchTemplate, NSImageNameTouchBarShareTemplate, NSImageNameTouchBarSidebarTemplate, NSImageNameTouchBarSkipAhead15SecondsTemplate, NSImageNameTouchBarSkipAhead30SecondsTemplate, NSImageNameTouchBarSkipAheadTemplate, NSImageNameTouchBarSkipBack15SecondsTemplate, NSImageNameTouchBarSkipBack30SecondsTemplate, NSImageNameTouchBarSkipBackTemplate, NSImageNameTouchBarSkipToEndTemplate, NSImageNameTouchBarSkipToStartTemplate, NSImageNameTouchBarSlideshowTemplate, NSImageNameTouchBarTagIconTemplate, NSImageNameTouchBarTextBoldTemplate, NSImageNameTouchBarTextBoxTemplate, NSImageNameTouchBarTextCenterAlignTemplate, NSImageNameTouchBarTextItalicTemplate, NSImageNameTouchBarTextJustifiedAlignTemplate, NSImageNameTouchBarTextLeftAlignTemplate, NSImageNameTouchBarTextListTemplate, NSImageNameTouchBarTextRightAlignTemplate, NSImageNameTouchBarTextStrikethroughTemplate, NSImageNameTouchBarTextUnderlineTemplate, NSImageNameTouchBarUserAddTemplate, NSImageNameTouchBarUserGroupTemplate, NSImageNameTouchBarUserTemplate

Example use in Obj-C:

NSImage *image = [NSImage imageNamed:NSImageNameTouchBarUserTemplate];

Example use in Swift:

let image = NSImage(named: NSImageNameTouchBarUserTemplate)
like image 22
Roman Roba Avatar answered Oct 17 '22 19:10

Roman Roba


If you're interested in customizing the touch bar icons Apple provides some templates to get started:

enter image description here

And while they're not specific to the touch bar – which has its own design guidelines – there's a bevy of additional design resources available on the HIG.

like image 1
vhs Avatar answered Oct 17 '22 19:10

vhs