carloslbello / lithium

JavaScript-based status bar battery icon themes for iOS 7+
10 stars 1 forks source link

Low Power Mode argument for themes #15

Open carloslbello opened 9 years ago

carloslbello commented 9 years ago

Lithium works fine on iOS 9 (besides the preference bundle, which requires an update to PreferenceLoader to work), but does not change the theme if Low Power Mode is enabled. This is because themes do not have a parameter for LPM and Lithium does not check for it. I'm thinking about possibly adding an LPM parameter to themes so that they can look different when it is active. This would require checking the number of arguments a theme function accepts to determine whether it can accept an LPM parameter; existing themes would continue to work unchanged (meaning not having a unique style for LPM). A version of Lithium that does this would be versioned at 2.x and would have the same package ID as usual, so themes that use LPM would need to depend on Lithium >= 2.0.

carloslbello commented 9 years ago

cc @supermamon, this would have implications for the theme editor