Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

SweeterColor darker than actual color #7

Open
ghost opened this issue Feb 6, 2017 · 4 comments
Open

SweeterColor darker than actual color #7

ghost opened this issue Feb 6, 2017 · 4 comments

Comments

@ghost
Copy link

ghost commented Feb 6, 2017

The color from SweeterColor doesn't match the hex color. Here's a screenshot comparing the colors using #EB6E2F set with XCode's storyboard, Inkscape, and SweeterColor:

sweet

NB: The screenshot colors are more vibrant than they actually are due to GitHub's image compression

To reproduce:

  1. Create one UIView in Storyboard, set its color to #EB6E2F
  2. Create another UIView in code set the background color. eg sweeterColorView.backgroundColor = UIColor(hex: "#EB6E2F")
  3. Open Adobe PS or Inkscape, set the canvas color to #EB6E2F
  4. Use the macOS Digital Color Meter again, the color from XCode and Adobe PS is correct, but SweeterColor has the wrong color
@jathu
Copy link
Owner

jathu commented May 5, 2017

I'm not really sure what the problem is. However, when I tried initializing the colors in three different ways, I get the same results.

1

As you can see, this color is different from the one you will get in photoshop. The result here has an RGB of (232, 98, 42). Where as #EB6E2F is really (235, 110, 47). Even the native UIColor initializer fails.

@ghost
Copy link
Author

ghost commented May 18, 2017

The issue I was getting was a mismatch between the color I added in Storyboard, and the color I added programmatically with SweeterColor, not sure if these helps.

On an actual device, it can be quite noticeable.

@ghost
Copy link
Author

ghost commented Sep 2, 2017

@jathu I came across this issue about different color spaces.

https://stackoverflow.com/questions/27628473/uinavigationbar-background-color-setted-from-storyboard-differ-from-the-color-se

Do you think this could be related?

@cruisediary
Copy link

Yes I think is related to @ghost 's link Xcode storyboard support various RGB color options.

In my Mac actually Sketch color picker find Author's SweeterColorcolor is #EB632F correctly but Inkscape and Xcode related author's option is #FC6509

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants