sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Change colour - Blue theme to Red or colour of choice #81

Closed mcg95 closed 5 years ago

mcg95 commented 5 years ago

Hi,

Is it possible to change the colours of the popup without using only blue? The application I am using has a red theme, and I think it would look better if everything was red or a shade of red rather than blue.

Thanks.

ivanvorobei commented 5 years ago

Thanks for your feedback, this development is already in process. A new version is coming soon.

ivanvorobei commented 5 years ago

I'll close the issue when I upload the update

mcg95 commented 5 years ago

Thanks alot. Great Library btw.

ivanvorobei commented 5 years ago

I am added color scheme to new version 2.8. Please, update and see Readme for customise colors

mcg95 commented 5 years ago

extension VCInitial: SPPermissionDialogColorSource { var baseColor: UIColor{ return ConstantColor.themeColor } }

static let themeColor = UIColor.init(red:0.21, green:0.62, blue:0.73, alpha:1.0) - This is the color I am trying to apply.

I used this to change the Color of the UI, but its not working. The color stays the same as before.

ivanvorobei commented 5 years ago

@mcg95, you pass ColorSource in SPPermission.Dialog.request?

mcg95 commented 5 years ago

@mcg95, you pass ColorSource in SPPermission.Dialog.request?

Thanks. That was the issue. Once again, thanks for the update. :D