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

Add support for customizable defaults (eg. make view alpha configurable) #28

Closed
cjwirth opened this issue Mar 17, 2014 · 3 comments
Closed

Comments

@cjwirth
Copy link

cjwirth commented Mar 17, 2014

The way the code is currently written, if you show a toast, it will always be completely opaque -- the alpha is always 1.

Originally, I thought passing in the alpha value might be a good way to do it, but there are some other values that might be nice to configure (basically, many of the static const values). It might be nice to add support to customize these values.

I thought of a few ways this could be done. The easiest might be to read from UserDefaults to see if there is a value to use instead of the hardcoded value. If not, it uses the original value.

@1in9ui5t
Copy link

Specifying the text alignment of toast title would be another nice to have.

@scalessec
Copy link
Owner

I've thought about doing this, but I don't like the complexity it adds. There are more robust Toast-like libraries out there if people need more runtime customization. That being said, it should be easy enough to fork and add if someone really wants these features at runtime.

@scalessec scalessec reopened this Oct 27, 2015
@scalessec
Copy link
Owner

Custom styling is officially supported in Toast 3.0.

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

3 participants