1
0
mirror of https://github.com/Burrit0z/kai synced 2025-07-01 08:26:47 +00:00
This commit is contained in:
Burrit0z
2020-05-26 20:46:59 -04:00
parent 90235fe2ca
commit b3297545bf
5 changed files with 106 additions and 27 deletions

4
Kai.h
View File

@ -40,6 +40,7 @@ BOOL showAll;
BOOL belowMusic;
BOOL hideDeviceLabel;
BOOL hideChargingAnimation;
BOOL showAllMinusInternal;
NSInteger bannerStyle;
NSInteger bannerAlign;
NSInteger textColor;
@ -49,6 +50,7 @@ double bannerHeight;
double cornerRadius;
double bannerWidthFactor;
double horizontalOffset;
double bannerAlpha;
//by importing here, I can use vars in the .mm files
#import "KAIBatteryCell.mm"
@ -116,6 +118,8 @@ static void preferencesChanged()
belowMusic = boolValueForKey(@"belowMusic", NO);
hideChargingAnimation = boolValueForKey(@"hideChargingAnimation", YES);
textColor = numberForValue(@"textColor", 0);
bannerAlpha = numberForValue(@"bannerAlpha", 1);
showAllMinusInternal = boolValueForKey(@"showAllMinusInternal", NO);
if(disableGlyphs) {
glyphSize = 0;