objective c - NSOutlineView in NSPopover not readable in OSX 10.10 Yosemite -
objective c - NSOutlineView in NSPopover not readable in OSX 10.10 Yosemite -
i have nspopover
containing nsoutlineview
(source list) displayed on dark background (but it's not dark). nsoutlineview
has transparent background blend nicely nspopover
view. looked great in os x 10.9 in 10.10 scheme changes text color in nsoutlineview
based on background. result text becomes grayness , unreadable in cases:
if alter popover hud style more readable:
however, in case, becomes problematic lighter backgrounds (the top).
is there way command text color in nsoutlineview
color stays same no matter background? have tried setting color of text cell black instead of scheme colors not help.
also, can control/remove transparency of nspopover
? have read nspopover
makes utilize of nsvisualeffectview
, has appearance controls, don't know how access nspopover.
for aesthetic reasons not want set nsoutlineview
under solid background view. in case there ugly mismatch in color between popover background , arrow.
edit:
i able remove transparency using next code:
nsview *popoverview = popover.contentviewcontroller.view.superview; popoverview.appearance = [nsappearance appearancenamed:nsappearancenameaqua];
it works feels ugly hack. welcome improve suggestions.
edit2:
this looks aqua style. no transparency , black text.
set mode different other source list , should pre-10.10 style, i.e. without translucency.
objective-c osx cocoa nsoutlineview nspopover
Comments
Post a Comment