Skip to content

Commit

Permalink
macosx: Set media item supplementary view detail text view string
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra authored and robUx4 committed Jan 2, 2023
1 parent 694adda commit 81c7e3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ extern NSCollectionViewSupplementaryElementKind const VLCLibraryCollectionViewMe

@property (readwrite, retain, nonatomic) VLCMediaLibraryMediaItem *representedMediaItem;
@property (readwrite, weak) IBOutlet NSTextField *mediaItemTitleTextField;
@property (readwrite, weak) IBOutlet NSTextField *mediaItemDetailTextField;
@property (readwrite, weak) IBOutlet NSTextField *mediaItemYearAndDurationTextField;
@property (readwrite, weak) IBOutlet NSTextField *mediaItemFileNameTextField;
@property (readwrite, weak) IBOutlet NSTextField *mediaItemPathTextField;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ @implementation VLCLibraryCollectionViewMediaItemSupplementaryDetailView
- (void)awakeFromNib
{
_mediaItemTitleTextField.font = [NSFont VLCLibrarySupplementaryDetailViewTitleFont];
_mediaItemDetailTextField.font = [NSFont VLCLibrarySupplementaryDetailViewSubtitleFont];
_mediaItemDetailTextField.textColor = [NSColor VLCAccentColor];

if(@available(macOS 10.12.2, *)) {
_playMediaItemButton.bezelColor = [NSColor VLCAccentColor];
Expand Down Expand Up @@ -87,6 +89,7 @@ - (void)updateRepresentation
}

_mediaItemTitleTextField.stringValue = _representedMediaItem.displayString;
_mediaItemDetailTextField.stringValue = _representedMediaItem.detailString;
_mediaItemYearAndDurationTextField.stringValue = [self formattedYearAndDurationString];
_mediaItemFileNameTextField.stringValue = _representedMediaItem.inputItem.name;
_mediaItemPathTextField.stringValue = _representedMediaItem.inputItem.decodedMRL;
Expand Down

0 comments on commit 81c7e3c

Please sign in to comment.