Playlist View: Fix centering and sizing of status icons

CQTexperiment
Christopher Snowhill 2022-01-20 17:37:56 -08:00
parent 8c63e8fde3
commit 7cc4ee22f7
2 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ERj-i9-caa">
<rect key="frame" x="0.0" y="3" width="17" height="11"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageAlignment="top" imageScaling="proportionallyDown" id="8rO-fU-Njw"/>
<imageCell key="cell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" id="8rO-fU-Njw"/>
</imageView>
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5cp-JI-ogI">
<rect key="frame" x="23" y="0.0" width="4" height="17"/>

View File

@ -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;
}