Copying with syntax highlighting producing slightly incorrect colors?

Answered

When I copy and paste syntax-highlighted code (for use in a presentation) in Android Studio 2.0, the copied code background color does not match the hexcode of the color I have set in my color scheme. When I paste the copied text into keynote, with the keynote background color set to match the background color in my scheme, the difference is obvious:

 

Am I doing something wrong, or is this a bug? Thanks in advance for any help!

3 comments
Comment actions Permalink

Do you have the correct scheme selected for rich text copy?

0
Comment actions Permalink

Yes, I have that set as shown.

 

Some further information:

 

When I inspect the background of the pasted text in Keynote, I see color values that do not match those of the Android Studio background:

 

These sliders indicate that they are presenting colors using an sRGB color space:

 

If I manually update the color space that those sliders use to Generic RGB:

 

then the numerical values of each slider now match those of the Android Studio background:

 

This discrepancy seems to occur no matter which color profile my screen is set to use (it was Color LCD by default, and I have since tried both Generic RGB and sRGB profiles inspired by https://discussions.apple.com/thread/4749587?start=0&tstart=0). So, I'm not sure if this is an issue with Keynote, or with Android Studio not participating properly in a 'color managed workflow'.

0

Please sign in to leave a comment.