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

Fixed 9-Slice setColor function #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fixed 9-Slice setColor function #4

wants to merge 2 commits into from

Conversation

CetoBasilius
Copy link

Function setColorwould not change color on 9-Slice buttons, since it iterated over the buttons children, which would only be _view. Instead, we iterate on self._views children, which contain all the slices.

@CetoBasilius
Copy link
Author

There is a problem though, it also colors the label. Fixing...

@ghost
Copy link

ghost commented Apr 4, 2014

you could always check the child object to see if it contains a .text property. If so don’t color it.


Thank you,
Danny.

Web: http://www.gremlininteractive.com
Twitter: http://bit.ly/1i5hYMp
Google Plus: http://bit.ly/1eQdSVa
LinkedIn: http://linkd.in/1mfScVP

On Saturday 5 April 2014 at 12:54 a.m., CetoBasilius wrote:

There is a problem though, it also colors the label.


Reply to this email directly or view it on GitHub (#4 (comment)).

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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

Successfully merging this pull request may close these issues.

2 participants