forked from aydenp/Ultrasound
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathABVolumeHUDThemeLight.m
56 lines (44 loc) · 1.27 KB
/
ABVolumeHUDThemeLight.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// ABVolumeHUDThemeLight.m
// Ultrasound
//
// Created by Ayden Panhuyzen on 10/8/18.
// Copyright © 2018 Ayden Panhuyzen. All rights reserved.
//
#import "ABVolumeHUDThemeLight.h"
@implementation ABVolumeHUDThemeLight
- (UIColor *)foregroundColour {
return [UIColor whiteColor];
}
- (UIBlurEffect *)backgroundEffect {
UIBlurEffect *blur = [[NSClassFromString(@"_UICustomBlurEffect") alloc] init];
[blur setValue:@40 forKey:@"blurRadius"];
[blur setValue:[UIColor whiteColor] forKey:@"colorTint"];
[blur setValue:@0.3 forKey:@"colorTintAlpha"];
[blur setValue:@1.9 forKey:@"saturationDeltaFactor"];
[blur setValue:@0.02 forKey:@"darkeningTintAlpha"];
[blur setValue:@([UIScreen mainScreen].scale) forKey:@"scale"];
return blur;
}
- (UIColor *)iconMaskColour {
return [self foregroundColour];
}
- (UIColor *)sliderKnobColour {
return [self foregroundColour];
}
- (UIColor *)sliderTrackColour {
return [[self foregroundColour] colorWithAlphaComponent:0.2];
}
- (UIColor *)sliderFilledTrackColour {
return [self foregroundColour];
}
- (UIColor *)textColour {
return [self foregroundColour];
}
- (BOOL)enableTextVibrancy {
return NO;
}
- (UIColor *)backgroundColourTint {
return [UIColor colorWithWhite:0 alpha:0.25];
}
@end