mirror of
https://github.com/Burrit0z/kai
synced 2025-07-01 17:26:47 +00:00
changed default preferences
This commit is contained in:
@ -15,14 +15,12 @@
|
||||
UIView *blur;
|
||||
UIView *blurPlatter = [[UIView alloc] init];
|
||||
if (bannerStyle == 1) {
|
||||
if (kCFCoreFoundationVersionNumber > 1600) {
|
||||
@try {
|
||||
if (kCFCoreFoundationVersionNumber > 1600 && kCFCoreFoundationVersionNumber < 1740) {
|
||||
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
|
||||
} @catch (NSException *exc) {
|
||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleRegular]];
|
||||
}
|
||||
} else if (kCFCoreFoundationVersionNumber < 1600) {
|
||||
} else if (kCFCoreFoundationVersionNumber < 1600) { //ios 12
|
||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
|
||||
} else if(kCFCoreFoundationVersionNumber >= 1740) { //ios 14 :fr:
|
||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleRegular]];
|
||||
}
|
||||
} else if (bannerStyle == 2) {
|
||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
|
||||
|
2
Kai.h
2
Kai.h
@ -113,7 +113,7 @@ static void preferencesChanged() {
|
||||
disableGlyphs = boolValueForKey(@"disableGlyphs", NO);
|
||||
hidePercent = boolValueForKey(@"hidePercent", NO);
|
||||
bannerStyle = numberForValue(@"bannerStyle", 1);
|
||||
showAll = boolValueForKey(@"showAll", NO);
|
||||
showAll = boolValueForKey(@"showAll", YES);
|
||||
bannerWidthFactor = numberForValue(@"bannerWidthFactor", 0);
|
||||
hideDeviceLabel = boolValueForKey(@"hideDeviceLabel", NO);
|
||||
bannerAlign = numberForValue(@"bannerAlign", 2);
|
||||
|
@ -104,7 +104,7 @@
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
<key>default</key>
|
||||
<false/>
|
||||
<true/>
|
||||
<key>defaults</key>
|
||||
<string>com.burritoz.kaiprefs</string>
|
||||
<key>key</key>
|
||||
|
Reference in New Issue
Block a user