Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set apple color space automatically #157

Merged
merged 4 commits into from
Jan 5, 2019
Merged

Set apple color space automatically #157

merged 4 commits into from
Jan 5, 2019

Conversation

wyuenho
Copy link
Contributor

@wyuenho wyuenho commented Jun 8, 2018

Why introduce an option when it can be done automatically? :P

This color space problem only ever exists on the NS port, so I'm pretty sure this is safe.

References: #54 #141

https://developer.apple.com/documentation/appkit/nsdisplaygamut/nsdisplaygamutsrgb?language=objc

https://en.wikipedia.org/wiki/Darwin_(operating_system)#Release_history

@wyuenho
Copy link
Contributor Author

wyuenho commented Jun 8, 2018

Hold on, I'm going to fix this up, this is only true for macOS 10.12+

Only set powerline-image-apple-rgb to t on macOS 10.12+
@milkypostman
Copy link
Owner

i don't think it's true that it only exists on the ns port. i believe when i originally introduced this it was a problem on the macport too?

@wyuenho
Copy link
Contributor Author

wyuenho commented Jun 8, 2018

No Mitsuharu Yamamoto's Mac port is completely fine. I just switched over from the Mac port to the NS port so I noticed this issue.

@wyuenho
Copy link
Contributor Author

wyuenho commented Jun 8, 2018

Actually, judging from the ticket, it's possible it's gone as far back to 10.9, and only is a problem when ns-use-srgb-colorspace is set to t. I'm going to test it a bit more. Don't merge this yet.

@wyuenho
Copy link
Contributor Author

wyuenho commented Jun 8, 2018

ns-use-srgb-colorspace 's doc suggests this issue could affect systems as far back as 10.7. I've fixed the PR now.

simplify macOS major version matching
@wyuenho
Copy link
Contributor Author

wyuenho commented Jan 3, 2019

@milkypostman Happy New Year! How does this PR look?

@@ -29,7 +29,18 @@
(require 'cl-lib)
(require 'color)

(defvar powerline-image-apple-rgb)
(defvar powerline-image-apple-rgb
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not a defcustom here?

@wyuenho
Copy link
Contributor Author

wyuenho commented Jan 4, 2019 via email

@milkypostman milkypostman merged commit 9bea559 into milkypostman:master Jan 5, 2019
@wyuenho wyuenho deleted the auto-apple-color-space branch February 11, 2019 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants