MMNavigatorFont icon indicating copy to clipboard operation
MMNavigatorFont copied to clipboard

highlight band dimension should go with font size

Open edoardoc opened this issue 9 years ago • 7 comments

as u can see from attached screenshot, increasing font size doesn't increase the blue selector band accordingly and bigger letters gets cut in the bottom.

screen shot 2016-03-24 at 23 02 10

edoardoc avatar Mar 24 '16 21:03 edoardoc

yep, it's a known problem. :)

no idea how to hook & modify it. Any idea?

adad184 avatar Mar 25 '16 03:03 adad184

if I am not mistaken everything happens thanks to

[objc_getClass("DVTTableCellViewOneLine") aspect_hookSelector:@selector(awakeFromNib) withOptions:AspectPositionAfter usingBlock:fontBlock error:nil];

if so I would try and play with AspectPositionAfter

edoardoc avatar Mar 26 '16 15:03 edoardoc

but I have no idea if this would be the right way to go :)

edoardoc avatar Mar 26 '16 15:03 edoardoc

the rowHeight of NSOutlineView can change the height of cell but it only effect when outlineView initialized. it's not work when i change the font.

and though i can change the height, still lot of problem should work out. the frame of the titleLabel and detailTitleLabel of the cell must be adjusted.

so i suggest not to choose a big size font. :)

adad184 avatar Mar 26 '16 15:03 adad184

are u talking about property

@property (nonatomic, weak) NSView *outlineView;

in XcodeCustomizeFont.m ?

edoardoc avatar Mar 27 '16 10:03 edoardoc

yes, it's a type of NSOutlineView, which is a subclass of NSTableView

adad184 avatar Mar 27 '16 12:03 adad184

check out this: http://stackoverflow.com/questions/7504546/view-based-nstableview-with-rows-that-have-dynamic-heights?answertab=active#tab-top it looks there is a way to do it, without setting the height in the init section of NSOutlineView. plus, if you set a bigger font, you will see that some of the tabs of the navigator already do that: you can see it clearly in the issue tab (see screen shot 2016-03-27 at 23 58 38 screenshot)

edoardoc avatar Mar 27 '16 20:03 edoardoc