instance = self; | instance = self; | ||||
if (self) { | if (self) { | ||||
self.stack = [[KAIStackView alloc] init]; | self.stack = [[KAIStackView alloc] init]; | ||||
self.stack.axis = 1; | |||||
self.stack.axis = kaiAlign==0 ? 1 : 0; | |||||
self.stack.distribution = 0; | self.stack.distribution = 0; | ||||
self.stack.spacing = 0; | |||||
self.stack.spacing = kaiAlign==0 ? 0 : spacing; | |||||
self.stack.alignment = 0; | self.stack.alignment = 0; | ||||
self.oldCountOfDevices = -100; | self.oldCountOfDevices = -100; | ||||
self.queued = NO; | self.queued = NO; |
double bannerWidthFactor; | double bannerWidthFactor; | ||||
double horizontalOffset; | double horizontalOffset; | ||||
double bannerAlpha; | double bannerAlpha; | ||||
double kaiAlign; | |||||
//by importing here, I can use vars in the .mm files | //by importing here, I can use vars in the .mm files | ||||
#import "KAIBatteryCell.mm" | #import "KAIBatteryCell.mm" | ||||
textColor = numberForValue(@"textColor", 0); | textColor = numberForValue(@"textColor", 0); | ||||
bannerAlpha = numberForValue(@"bannerAlpha", 1); | bannerAlpha = numberForValue(@"bannerAlpha", 1); | ||||
showAllMinusInternal = boolValueForKey(@"showAllMinusInternal", NO); | showAllMinusInternal = boolValueForKey(@"showAllMinusInternal", NO); | ||||
kaiAlign = numberForValue(@"kaiAlign", 0); | |||||
if(disableGlyphs) { | if(disableGlyphs) { | ||||
glyphSize = 0; | glyphSize = 0; |
Package: com.burritoz.kai | Package: com.burritoz.kai | ||||
Name: Kai | Name: Kai | ||||
Version: 0.9.9~3 | |||||
Version: 0.9.9~4 | |||||
Architecture: iphoneos-arm | Architecture: iphoneos-arm | ||||
Description: Show charging banners on your lock screen! | Description: Show charging banners on your lock screen! | ||||
Maintainer: burrit0z | Maintainer: burrit0z | ||||
Author: burrit0z | Author: burrit0z | ||||
Section: Tweaks | Section: Tweaks | ||||
Depends: mobilesubstrate (>= 0.9.5000), preferenceloader, xyz.burritoz.thomz.multipla (>=1.2.0) | |||||
Depends: mobilesubstrate (>= 0.9.5000), preferenceloader, xyz.burritoz.thomz.multipla (>=1.2.1) |
<key>label</key> | <key>label</key> | ||||
<string>Hide Device Name Label</string> | <string>Hide Device Name Label</string> | ||||
</dict> | </dict> | ||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSGroupCell</string> | |||||
<key>label</key> | |||||
<string>Alignemnt Axis (Respring Required)</string> | |||||
</dict> | |||||
<dict> | |||||
<key>cell</key> | |||||
<string>PSSegmentCell</string> | |||||
<key>defaults</key> | |||||
<string>com.burritoz.kaiprefs</string> | |||||
<key>default</key> | |||||
<string>0</string> | |||||
<key>key</key> | |||||
<string>kaiAlign</string> | |||||
<key>validValues</key> | |||||
<array> | |||||
<string>0</string> | |||||
<string>1</string> | |||||
</array> | |||||
<key>validTitles</key> | |||||
<array> | |||||
<string>Vertical</string> | |||||
<string>Horizontal</string> | |||||
</array> | |||||
</dict> | |||||
<dict> | <dict> | ||||
<key>cell</key> | <key>cell</key> | ||||
<string>PSGroupCell</string> | <string>PSGroupCell</string> |