From 7cc4ee22f7912eed0b8bc432ea78ba679f7dcaf6 Mon Sep 17 00:00:00 2001 From: Christopher Snowhill Date: Thu, 20 Jan 2022 17:37:56 -0800 Subject: [PATCH] Playlist View: Fix centering and sizing of status icons --- Base.lproj/MainMenu.xib | 2 +- Playlist/PlaylistController.m | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Base.lproj/MainMenu.xib b/Base.lproj/MainMenu.xib index afd3bb849..f0f222589 100644 --- a/Base.lproj/MainMenu.xib +++ b/Base.lproj/MainMenu.xib @@ -97,7 +97,7 @@ - + diff --git a/Playlist/PlaylistController.m b/Playlist/PlaylistController.m index c723c46a8..f910835cc 100644 --- a/Playlist/PlaylistController.m +++ b/Playlist/PlaylistController.m @@ -304,7 +304,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc if (view) { NSTableCellView * cellView = (NSTableCellView *) view; NSRect frameRect = cellView.frame; - frameRect.origin.y = cellView.imageView ? 0 : 1; + frameRect.origin.y = 1; frameRect.size.height = tableView.rowHeight; cellView.frame = frameRect; @@ -343,8 +343,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc cellView.imageView.toolTip = [pe statusMessage]; NSRect cellFrameRect = cellView.imageView.frame; - cellFrameRect.size.height = frameRect.size.height; - cellFrameRect.origin.y = 0; + cellFrameRect.size.height = frameRect.size.height * 14.0 / 18.0; + cellFrameRect.origin.y = (frameRect.size.height - cellFrameRect.size.height) * 0.5; cellView.imageView.frame = cellFrameRect; }