-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Question - Styling the player with javascript #8
Comments
There are no special methods for styling, but you can hack into the code to find the DOM elements and style them. |
What about on when the buttons change states? That ends up resetting the styles, would I have to programmatically also include style code in each onSpecialEvent? |
I've proposed this change, as I feel it would be much easier: #12 |
Scratch my original idea, I think I have a better way to solve it. (but keep the code in, since it's good prep work for dynamic button adding) |
This is what I was after: #14 |
Please document the use of styling. |
Aka. before instantiating anything, one would edit the theme by directly interacting with: JZZ.gui.Player.theme After they've made their modifications to it. Then they could create their midi player element and connect it to the player to be used. |
If that's a bit too vague, I'm running on no sleep atm. |
If you enable styling, wouldn't it be more logical to style individual instances of the player? |
I do too believe so, that's why my push said that this was "basic theming
support".
I don't expect it to stay that way, but I do figure you may have a better
away of going about it, since I'm not much coder for dynamic theming or
instances of objects.
|
Is it possible to style the gui player with built in functions?
(if not, I know how I would go about doing this on my own... but I'd rather not)
The text was updated successfully, but these errors were encountered: