iphone - Determine correct RGBA value for bar tint color given a client's design image? -
i given mockup images define how iphone app supposed look. these can come many different methods there projects, balsamiq or hand-drawn, photoshop. 1 thing common bar tint color specified match corporate branding or overall app design.
if open 1 of these design images in app , use paint dropper tool rgb value color there many places it, darkest regions @ lower edge of included buttons lightest regions @ top of bar. can't find place sample color programmed result matches mockups, wrong in regard leading me squinting @ 2 images trying tweak 1 or more color values match enough.
given sample of how client imagines navigation bar should appear*, how determine right uicolor apply bar's tintcolor attribute?
*ignoring mockups containing rainbow effects, misapplied gradients , other flights of fancy. matching color , brightness along centre line enough. that's @ least defensible position - "what ask isn't how ios works!"
set app uinavigationbar/uitoolbar , 3 sliders set tintcolor. move sliders around until looks right.
if bring image app somehow (uipasteboard or stick in resource), using -[calayer renderincontext:] , coregraphics magic (kcgblendmodedifference , multiply differences; forget used) can compare 2 images.
simulator note: first need cmd-c "paste" mac pasteboard simulator pasteboard.
what found can't reproduce default gradient on both iphone , ipad except tintcolor = nil (the ipad default has no "shine"). can reasonably close, done button colour wrong.
usually sample in middle of mock-up nav bar.
Comments
Post a Comment