1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-03 13:26:48 +00:00
This commit is contained in:
Burrit0z
2020-05-20 12:43:34 -04:00
parent 168bd6d3dc
commit 4a9d95086d
7 changed files with 288 additions and 21 deletions

13
Kai.xm
View File

@ -7,7 +7,7 @@
-(void)_layoutStackView {
//NSLog(@"Kai: Laying out stack view");
[self KaiUpdate];
%orig;
@ -50,7 +50,7 @@
battery.heightConstraint.active = YES;
} else {
int height = (battery.number * 85);
int height = (battery.number * (80 + spacing));
battery.heightConstraint.active = NO;
NSLog(@"kai: setting to %d", height);
battery.heightConstraint.constant = height;
@ -66,6 +66,15 @@
%new
-(void)KaiInfo {
[UIView animateWithDuration:0.3 animations:^{
[KAIBattery sharedInstance].alpha = 0;
} completion:^(BOOL finished){
[[KAIBattery sharedInstance] updateBattery];
[self KaiUpdate];
[UIView animateWithDuration:0.35 animations:^{
[KAIBattery sharedInstance].alpha = 1;
}];
}];
[[KAIBattery sharedInstance] updateBattery];
[self KaiUpdate];
}