Commit a1eacf91 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: adapt to the new sidebar icons

parent 9de7b85e
...@@ -287,13 +287,12 @@ EXTRA_DIST += \ ...@@ -287,13 +287,12 @@ EXTRA_DIST += \
extras/package/macosx/Resources/prefs/spref_cone_Subtitles_64.png \ extras/package/macosx/Resources/prefs/spref_cone_Subtitles_64.png \
extras/package/macosx/Resources/prefs/spref_cone_Video_64.png \ extras/package/macosx/Resources/prefs/spref_cone_Video_64.png \
extras/package/macosx/Resources/README \ extras/package/macosx/Resources/README \
extras/package/macosx/Resources/sidebar-icons/document-music-playlist.png \ extras/package/macosx/Resources/sidebar-icons/local.png \
extras/package/macosx/Resources/sidebar-icons/film-cast.png \ extras/package/macosx/Resources/sidebar-icons/movie.png \
extras/package/macosx/Resources/sidebar-icons/film.png \ extras/package/macosx/Resources/sidebar-icons/music.png \
extras/package/macosx/Resources/sidebar-icons/music-beam.png \ extras/package/macosx/Resources/sidebar-icons/pictures.png \
extras/package/macosx/Resources/sidebar-icons/network-cloud.png \ extras/package/macosx/Resources/sidebar-icons/playlist.png \
extras/package/macosx/Resources/sidebar-icons/picture.png \ extras/package/macosx/Resources/sidebar-icons/podcast.png \
extras/package/macosx/Resources/sidebar-icons/README \
extras/package/macosx/Resources/vlc.scriptSuite \ extras/package/macosx/Resources/vlc.scriptSuite \
extras/package/macosx/Resources/vlc.scriptTerminology \ extras/package/macosx/Resources/vlc.scriptTerminology \
extras/package/macosx/fullscreen_panel.svg \ extras/package/macosx/fullscreen_panel.svg \
......
...@@ -285,7 +285,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -285,7 +285,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
o_sidebaritems = [[NSMutableArray alloc] init]; o_sidebaritems = [[NSMutableArray alloc] init];
SideBarItem *libraryItem = [SideBarItem itemWithTitle:_NS("LIBRARY") identifier:@"library"]; SideBarItem *libraryItem = [SideBarItem itemWithTitle:_NS("LIBRARY") identifier:@"library"];
SideBarItem *playlistItem = [SideBarItem itemWithTitle:_NS("Playlist") identifier:@"playlist"]; SideBarItem *playlistItem = [SideBarItem itemWithTitle:_NS("Playlist") identifier:@"playlist"];
[playlistItem setIcon: [NSImage imageNamed:@"document-music-playlist"]]; [playlistItem setIcon: [NSImage imageNamed:@"playlist"]];
SideBarItem *mycompItem = [SideBarItem itemWithTitle:_NS("MY COMPUTER") identifier:@"mycomputer"]; SideBarItem *mycompItem = [SideBarItem itemWithTitle:_NS("MY COMPUTER") identifier:@"mycomputer"];
SideBarItem *devicesItem = [SideBarItem itemWithTitle:_NS("DEVICES") identifier:@"devices"]; SideBarItem *devicesItem = [SideBarItem itemWithTitle:_NS("DEVICES") identifier:@"devices"];
SideBarItem *lanItem = [SideBarItem itemWithTitle:_NS("LOCAL NETWORK") identifier:@"localnetwork"]; SideBarItem *lanItem = [SideBarItem itemWithTitle:_NS("LOCAL NETWORK") identifier:@"localnetwork"];
...@@ -313,7 +313,7 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -313,7 +313,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
{ {
[internetItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]]; [internetItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]];
if (!strncmp( *ppsz_name, "podcast", 7 )) if (!strncmp( *ppsz_name, "podcast", 7 ))
[[internetItems lastObject] setIcon: [NSImage imageNamed:@"film-cast"]]; [[internetItems lastObject] setIcon: [NSImage imageNamed:@"podcast"]];
else else
[[internetItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]]; [[internetItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]];
} }
...@@ -327,18 +327,18 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -327,18 +327,18 @@ static VLCMainWindow *_o_sharedInstance = nil;
case SD_CAT_LAN: case SD_CAT_LAN:
{ {
[lanItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]]; [lanItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]];
[[lanItems lastObject] setIcon: [NSImage imageNamed:@"network-cloud"]]; [[lanItems lastObject] setIcon: [NSImage imageNamed:@"local"]];
} }
break; break;
case SD_CAT_MYCOMPUTER: case SD_CAT_MYCOMPUTER:
{ {
[mycompItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]]; [mycompItems addObject: [SideBarItem itemWithTitle: [NSString stringWithCString: *ppsz_longname encoding: NSUTF8StringEncoding] identifier: o_identifier]];
if (!strncmp( *ppsz_name, "video_dir", 9 )) if (!strncmp( *ppsz_name, "video_dir", 9 ))
[[mycompItems lastObject] setIcon: [NSImage imageNamed:@"film"]]; [[mycompItems lastObject] setIcon: [NSImage imageNamed:@"movie"]];
else if (!strncmp( *ppsz_name, "audio_dir", 9 )) else if (!strncmp( *ppsz_name, "audio_dir", 9 ))
[[mycompItems lastObject] setIcon: [NSImage imageNamed:@"music-beam"]]; [[mycompItems lastObject] setIcon: [NSImage imageNamed:@"music"]];
else if (!strncmp( *ppsz_name, "picture_dir", 11 )) else if (!strncmp( *ppsz_name, "picture_dir", 11 ))
[[mycompItems lastObject] setIcon: [NSImage imageNamed:@"picture"]]; [[mycompItems lastObject] setIcon: [NSImage imageNamed:@"pictures"]];
else else
[[mycompItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]]; [[mycompItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]];
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment