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,15 +15,13 @@
|
|||||||
UIView *blur;
|
UIView *blur;
|
||||||
UIView *blurPlatter = [[UIView alloc] init];
|
UIView *blurPlatter = [[UIView alloc] init];
|
||||||
if (bannerStyle == 1) {
|
if (bannerStyle == 1) {
|
||||||
if (kCFCoreFoundationVersionNumber > 1600) {
|
if (kCFCoreFoundationVersionNumber > 1600 && kCFCoreFoundationVersionNumber < 1740) {
|
||||||
@try {
|
|
||||||
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
|
blur = [[[objc_getClass("MTMaterialView") class] alloc] _initWithRecipe:1 configuration:1 initialWeighting:1 scaleAdjustment:nil];
|
||||||
} @catch (NSException *exc) {
|
} else if (kCFCoreFoundationVersionNumber < 1600) { //ios 12
|
||||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleRegular]];
|
|
||||||
}
|
|
||||||
} else if (kCFCoreFoundationVersionNumber < 1600) {
|
|
||||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
|
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) {
|
} else if (bannerStyle == 2) {
|
||||||
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
|
blur = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
|
||||||
} else if (bannerStyle == 3) {
|
} else if (bannerStyle == 3) {
|
||||||
|
2
Kai.h
2
Kai.h
@ -113,7 +113,7 @@ static void preferencesChanged() {
|
|||||||
disableGlyphs = boolValueForKey(@"disableGlyphs", NO);
|
disableGlyphs = boolValueForKey(@"disableGlyphs", NO);
|
||||||
hidePercent = boolValueForKey(@"hidePercent", NO);
|
hidePercent = boolValueForKey(@"hidePercent", NO);
|
||||||
bannerStyle = numberForValue(@"bannerStyle", 1);
|
bannerStyle = numberForValue(@"bannerStyle", 1);
|
||||||
showAll = boolValueForKey(@"showAll", NO);
|
showAll = boolValueForKey(@"showAll", YES);
|
||||||
bannerWidthFactor = numberForValue(@"bannerWidthFactor", 0);
|
bannerWidthFactor = numberForValue(@"bannerWidthFactor", 0);
|
||||||
hideDeviceLabel = boolValueForKey(@"hideDeviceLabel", NO);
|
hideDeviceLabel = boolValueForKey(@"hideDeviceLabel", NO);
|
||||||
bannerAlign = numberForValue(@"bannerAlign", 2);
|
bannerAlign = numberForValue(@"bannerAlign", 2);
|
||||||
|
@ -104,7 +104,7 @@
|
|||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSSwitchCell</string>
|
<string>PSSwitchCell</string>
|
||||||
<key>default</key>
|
<key>default</key>
|
||||||
<false/>
|
<true/>
|
||||||
<key>defaults</key>
|
<key>defaults</key>
|
||||||
<string>com.burritoz.kaiprefs</string>
|
<string>com.burritoz.kaiprefs</string>
|
||||||
<key>key</key>
|
<key>key</key>
|
||||||
|
Reference in New Issue
Block a user