Skip to content
Snippets Groups Projects
Commit 78776b56 authored by Claudio Cambra's avatar Claudio Cambra Committed by Felix Paul Kühne
Browse files

macosx: Add VLCLibraryShowsVideoSubSegment


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 108d0249
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ typedef NS_ENUM(NSInteger, VLCLibrarySegmentType) {
VLCLibraryLowSentinelSegment = -1,
VLCLibraryHomeSegment,
VLCLibraryVideoSegment,
VLCLibraryShowsVideoSubSegment,
VLCLibraryMusicSegment,
VLCLibraryArtistsMusicSubSegment,
VLCLibraryAlbumsMusicSubSegment,
......
......@@ -83,7 +83,9 @@ NSString * const VLCLibraryBookmarkedLocationsChanged = @"VLCLibraryBookmarkedLo
- (NSArray<NSTreeNode *> *)childNodes
{
if (self.segmentType == VLCLibraryMusicSegment) {
if (self.segmentType == VLCLibraryVideoSegment) {
return @[[VLCLibrarySegment segmentWithSegmentType:VLCLibraryShowsVideoSubSegment]];
} else if (self.segmentType == VLCLibraryMusicSegment) {
return @[
[VLCLibrarySegment segmentWithSegmentType:VLCLibraryArtistsMusicSubSegment],
[VLCLibrarySegment segmentWithSegmentType:VLCLibraryAlbumsMusicSubSegment],
......@@ -159,6 +161,8 @@ NSString * const VLCLibraryBookmarkedLocationsChanged = @"VLCLibraryBookmarkedLo
return _NS("Genres");
case VLCLibraryVideoSegment:
return _NS("Videos");
case VLCLibraryShowsVideoSubSegment:
return _NS("Shows");
case VLCLibraryBrowseSegment:
return _NS("Browse");
case VLCLibraryBrowseBookmarkedLocationSubSegment:
......@@ -185,6 +189,7 @@ NSString * const VLCLibraryBookmarkedLocationsChanged = @"VLCLibraryBookmarkedLo
case VLCLibraryGenresMusicSubSegment:
return [NSImage imageNamed:@"sidebar-music"];
case VLCLibraryVideoSegment:
case VLCLibraryShowsVideoSubSegment:
return [NSImage imageNamed:@"sidebar-movie"];
case VLCLibraryBrowseSegment:
case VLCLibraryBrowseBookmarkedLocationSubSegment:
......@@ -222,6 +227,9 @@ NSString * const VLCLibraryBookmarkedLocationsChanged = @"VLCLibraryBookmarkedLo
case VLCLibraryVideoSegment:
return [NSImage imageWithSystemSymbolName:@"film.stack"
accessibilityDescription:@"Video icon"];
case VLCLibraryShowsVideoSubSegment:
return [NSImage imageWithSystemSymbolName:@"tv"
accessibilityDescription:@"Shows icon"];
case VLCLibraryBrowseSegment:
return [NSImage imageWithSystemSymbolName:@"folder"
accessibilityDescription:@"Browse icon"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment