Pixate / pixate-freestyle-android

Pixate Freestyle for Android
Apache License 2.0
254 stars 55 forks source link

allow an optional CSS file name #27

Closed corbt closed 9 years ago

corbt commented 9 years ago

This pull request implements the functionality I described in #26.

Essentially, it adds a new, optional init function, of the form PixateFreestyle.init(context, 'my_theme.css'). If the selected CSS file has already been applied, nothing happens, just like now. If no CSS has been applied, or if the init function is called with a different CSS file than the current one, the init process is run with the new file.

I'm using this in my own app, and it seems to be working fine.

Shalom commented 9 years ago

Merged. Looks good! Thanks @corbt !