Filter out blue light in iOS - ios

Is there a way to change the display from an iOS app to filter out the blue light?
There is a f.lux app, but it is only available through cydia, so I figured iOS might not give regular apps the power to do this?

If you mean globally, then no. That's the reason F.lux is only available through Cydia as you mentioned.
If you mean only for your own app then you could simply tint all graphical elements in a more yellow tint though some clever tricks.

Related

iOS Accessibility – Detect if Colour Filters is on?

In iOS, you can set Colour Filters which is helpful for Colour Blind users. Is it possible or any way we can know if this is turned on / off?
The documentation does not mention such a thing and there is no UIAccessibility boolean that returns whether color filters are enabled (unlike for inverted colors), so it's safe to assume that there isn't a public API to detect this from an app.
However, this isn't necessarily a problem. Use color schemes in your app in a way that won't distract or confuse users with visual disabilities in the first place.

Does anyone know this stock iOS color?

Hi I am building a hybrid mobile app and wish to use this color for an alert. However, I cannot seem to get the color right along with the opacity. Does anyone know how to achieve this extremely subtle blur/transparency of this volume alert background? Thanks!

iPhone's Tone Color Change from an App

Recently, I have installed Twilight on my Android phone. Apparently is adds a color tone effect on the screen. Here are two screen shots taken from PlayStore.
Now my question is that is there a way to develop similar system display tone color set up application in iOS?
It is not possible as Apple restrict the developers to edit home screen. There are very limited features that we can access like Calendar, Gallery, etc. The above screenshot your are showing is related to Widget but there are no Widget concept in iOS.
Yes, it is certainly possible and I use an app that does this.
Have a look at https://github.com/anthonya1999/GoodNight, It's even open sourced.
However an app like this will most likely be denied from the App Store, but never the less it is possible.
Night Shift is supposed to bring something like this in iOS 9.3, though not to that extent.
I don't know of any public API that would allow an application to change that kind of parameter system-wise, though. Maybe in the Accessibility framework, but that would restrict it to app-wise, not system-wise.

How to access the system selected menu item blue color?

I'm working on an app that has a custom NSView on a NSStatusBar which performs all of the drawing when the user clicks it. But here's the problem, the color I'm currently drawing as the view's background color is not the same as the system blue color.
My app's color:
Twitter's menu item color (system):
As you clearly see, my blue color is way lighter than the system. This is the code I'm currently using (and worked perfectly on versions older than Yosemite):
[[NSColor selectedMenuItemColor] set];
NSRectFill(rect);
I've even tried color picking the menu item's color but it seems like the color is affected by the wallpaper below the menu bar.
Any ideas on how to achieve the system look?
As you said, in Yosemite, docks, status bars etc. are affected by whatever is behind them. Try enabling System Preferences > Accessibility > Display > Reduce Transparency and you'll see what your color looks like without this feature./
Here is an idea - Maybe you should use the Vibrancy effect and derive from NSVisualEffectView. I knew that I've seen a very similar thread somewhere here in the past, and it took me quite some time to find it. Here it is:
Trouble matching the vibrant background of a Yosemite NSMenuItem containing a custom view
I think Matthes' answer to that question would lead you to the resolution of your issue. Be sure to check it out. I hope it will help - Good luck and report back!

Can the iOS8 InvertColors function be called in an apps code?

iOS now has a setting in General, accessibility, "Invert Colors". It basically provides a negative image of an app's colors.
I have an app that is mostly dark background elements with light icons and buttons. It would be great to have a setting inside my app to call that invert colors function as needed for specific users.
Any ideas if that setting is exposed? Thanks much!
In general you have no access to the user's Settings, and this is no exception. Your app can't alter general settings on the user's device; that would be a terrible security hole!
However, nothing stops you from putting up an alert or other dialog suggesting that the user might like to do this.
Alternatively, though, what I would recommend is themes. Basically give the user a preference within the app, so that the user can choose or alter the colors of things. Then, in response to the user's setting, you use the appearance proxy to change all the colors thematically throughout the app. There was a good WWDC video either in 2013 or 2012, I think, on this very idea.

Resources