From a4a567cd04f30bc864057d8c8ea59c5e8a193ceb Mon Sep 17 00:00:00 2001 From: David Fuhrmann Date: Thu, 30 Oct 2014 22:39:26 +0100 Subject: [PATCH] macosx: do not use the cone as sidebar icons The cone does not really fit and looks ugly. Instead, use the broadcast icon for all internet-related sd's and local icon for devices category. --- modules/gui/macosx/MainWindow.m | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m index 870eee9f7f..00ec109097 100644 --- a/modules/gui/macosx/MainWindow.m +++ b/modules/gui/macosx/MainWindow.m @@ -353,16 +353,13 @@ static VLCMainWindow *_o_sharedInstance = nil; switch (*p_category) { case SD_CAT_INTERNET: [internetItems addObject: [SideBarItem itemWithTitle: _NS(*ppsz_longname) identifier: o_identifier]]; - if (!strncmp(*ppsz_name, "podcast", 7)) - [[internetItems lastObject] setIcon: imageFromRes(@"sidebar-podcast")]; - else - [[internetItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]]; + [[internetItems lastObject] setIcon: imageFromRes(@"sidebar-podcast")]; [[internetItems lastObject] setSdtype: SD_CAT_INTERNET]; [[internetItems lastObject] setUntranslatedTitle: [NSString stringWithUTF8String:*ppsz_longname]]; break; case SD_CAT_DEVICES: [devicesItems addObject: [SideBarItem itemWithTitle: _NS(*ppsz_longname) identifier: o_identifier]]; - [[devicesItems lastObject] setIcon: [NSImage imageNamed:@"NSApplicationIcon"]]; + [[devicesItems lastObject] setIcon: imageFromRes(@"sidebar-local")]; [[devicesItems lastObject] setSdtype: SD_CAT_DEVICES]; [[devicesItems lastObject] setUntranslatedTitle: [NSString stringWithUTF8String:*ppsz_longname]]; break; -- 2.39.2