Playlist View: Fix centering and sizing of status icons
parent
8c63e8fde3
commit
7cc4ee22f7
|
@ -97,7 +97,7 @@
|
||||||
<imageView horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="ERj-i9-caa">
|
<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"/>
|
<rect key="frame" x="0.0" y="3" width="17" height="11"/>
|
||||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
<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>
|
</imageView>
|
||||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" fixedFrame="YES" allowsExpansionToolTips="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5cp-JI-ogI">
|
<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"/>
|
<rect key="frame" x="23" y="0.0" width="4" height="17"/>
|
||||||
|
|
|
@ -304,7 +304,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
if (view) {
|
if (view) {
|
||||||
NSTableCellView * cellView = (NSTableCellView *) view;
|
NSTableCellView * cellView = (NSTableCellView *) view;
|
||||||
NSRect frameRect = cellView.frame;
|
NSRect frameRect = cellView.frame;
|
||||||
frameRect.origin.y = cellView.imageView ? 0 : 1;
|
frameRect.origin.y = 1;
|
||||||
frameRect.size.height = tableView.rowHeight;
|
frameRect.size.height = tableView.rowHeight;
|
||||||
cellView.frame = frameRect;
|
cellView.frame = frameRect;
|
||||||
|
|
||||||
|
@ -343,8 +343,8 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
||||||
cellView.imageView.toolTip = [pe statusMessage];
|
cellView.imageView.toolTip = [pe statusMessage];
|
||||||
|
|
||||||
NSRect cellFrameRect = cellView.imageView.frame;
|
NSRect cellFrameRect = cellView.imageView.frame;
|
||||||
cellFrameRect.size.height = frameRect.size.height;
|
cellFrameRect.size.height = frameRect.size.height * 14.0 / 18.0;
|
||||||
cellFrameRect.origin.y = 0;
|
cellFrameRect.origin.y = (frameRect.size.height - cellFrameRect.size.height) * 0.5;
|
||||||
cellView.imageView.frame = cellFrameRect;
|
cellView.imageView.frame = cellFrameRect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue