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
[Refactoring] Exude color variables to resources #57
Comments
If you don't mind, I can do that |
What do you mean with |
ping @programmerr47 |
@GrenderG Hi. Sorry for such delay. I mean next: See jls for more information. For more easy search page 138, item Field Names :) |
You are right, go ahead with the PR. |
Hi, im working on that. |
Just tell me what do you want your library to do and I will implement it :) |
I'm just not sure about how to implement this. I don't want to remove support for What do you guys think? |
Have a look to the way I implement it, it is now by default getting default color from resources but it is also posible to override them throught the config at run time. Maybe we shouldn't give an option to override default colors at run time and instead the developers would use Toasty.custom (?) |
Okay! I agree with this. |
Done! Have a look at it and tell me what you think 😄 |
I think it will be better to move color variables into resource file.
It will reduce code duplication
it will increase readability, since I thought through code that warning and error colors are constants, also actualy they not
It will give the user more flexibility to config toast. They will able to rewrite your color resources in their own complex resources files. Suppose, we have aaplication, that for different regions use different color schemes. With code-config-aproach it will request for library user more effort to adjust colors by config changes, that if colors were in resource file
The text was updated successfully, but these errors were encountered: