diff --git a/KAIBatteryPlatter.mm b/KAIBatteryPlatter.mm index 4b37947..d51443a 100755 --- a/KAIBatteryPlatter.mm +++ b/KAIBatteryPlatter.mm @@ -10,9 +10,9 @@ NSTimer *queueTimer = nil; instance = self; if (self) { self.stack = [[KAIStackView alloc] init]; - self.stack.axis = 1; + self.stack.axis = kaiAlign==0 ? 1 : 0; self.stack.distribution = 0; - self.stack.spacing = 0; + self.stack.spacing = kaiAlign==0 ? 0 : spacing; self.stack.alignment = 0; self.oldCountOfDevices = -100; self.queued = NO; diff --git a/Kai.h b/Kai.h index e0e38a9..1300657 100755 --- a/Kai.h +++ b/Kai.h @@ -57,6 +57,7 @@ double cornerRadius; double bannerWidthFactor; double horizontalOffset; double bannerAlpha; +double kaiAlign; //by importing here, I can use vars in the .mm files #import "KAIBatteryCell.mm" @@ -127,6 +128,7 @@ static void preferencesChanged() textColor = numberForValue(@"textColor", 0); bannerAlpha = numberForValue(@"bannerAlpha", 1); showAllMinusInternal = boolValueForKey(@"showAllMinusInternal", NO); + kaiAlign = numberForValue(@"kaiAlign", 0); if(disableGlyphs) { glyphSize = 0; diff --git a/Layout/DEBIAN/control b/Layout/DEBIAN/control index 4539cee..025cc6a 100644 --- a/Layout/DEBIAN/control +++ b/Layout/DEBIAN/control @@ -1,9 +1,9 @@ Package: com.burritoz.kai Name: Kai -Version: 0.9.9~3 +Version: 0.9.9~4 Architecture: iphoneos-arm Description: Show charging banners on your lock screen! Maintainer: burrit0z Author: burrit0z 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) diff --git a/kaiprefs/Resources/Root.plist b/kaiprefs/Resources/Root.plist index 0418109..a6a359d 100644 --- a/kaiprefs/Resources/Root.plist +++ b/kaiprefs/Resources/Root.plist @@ -102,6 +102,32 @@ label Hide Device Name Label + + cell + PSGroupCell + label + Alignemnt Axis (Respring Required) + + + cell + PSSegmentCell + defaults + com.burritoz.kaiprefs + default + 0 + key + kaiAlign + validValues + + 0 + 1 + + validTitles + + Vertical + Horizontal + + cell PSGroupCell