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

Feature: Invert Button Colors on Dark Background #13

Closed
merktassel opened this issue Aug 24, 2016 · 2 comments
Closed

Feature: Invert Button Colors on Dark Background #13

merktassel opened this issue Aug 24, 2016 · 2 comments

Comments

@merktassel
Copy link
Contributor

Our app's background is black, which makes the Buglife icon quite difficult to locate and use. Perhaps the icon colors could be inverted depending on how dark the background is?

@schukin
Copy link
Collaborator

schukin commented Aug 24, 2016

This sounds reasonable... We'll see what we can do :)

@schukin
Copy link
Collaborator

schukin commented Oct 14, 2016

Buglife 1.3.3 now includes an API for this, with one caveat - it is still a private experimental API. We want to be diligent with how we add new APIs to the Buglife SDK, and we're still thinking through customizability of the bug button.

For now, here's an example of how you can invert the bug button:

[[Buglife sharedBuglife] configureBugButtonWithForegroundColor:[UIColor blackColor] backgroundColor:[UIColor whiteColor]];

Also note that because it's a private API, you'll need to declare it so that the compiler can recognize it. (Typically you'll want to declare this in your AppDelegate.m, the same place where you initialize Buglife, and call the above method.)

@interface Buglife (PrivateStuff)
- (void)configureBugButtonWithForegroundColor:(nullable UIColor *)foregroundColor backgroundColor:(nullable UIColor *)backgroundColor;
@end

@schukin schukin closed this as completed Oct 14, 2016
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

No branches or pull requests

2 participants