@@ -25,7 +25,7 @@ export class LoadingIndicator {
25
25
26
26
// options
27
27
if ( options . message ) {
28
- this . _hud . labelText = options . message ;
28
+ this . _hud . label . text = options . message ;
29
29
}
30
30
31
31
if ( options . progress ) {
@@ -38,29 +38,35 @@ export class LoadingIndicator {
38
38
( this . _hud as any ) . mode = Mode . Indeterminate ;
39
39
}
40
40
41
- if ( options . dimBackground ) this . _hud . dimBackground = options . dimBackground ;
41
+ if ( options . dimBackground ) {
42
+ this . _hud . backgroundView . style = MBProgressHUDBackgroundStyle . SolidColor ;
43
+ this . _hud . backgroundView . color = new Color ( '#000' ) . ios ;
44
+ this . _hud . backgroundView . alpha = 0.3 ;
45
+ }
42
46
43
47
if ( options . margin ) this . _hud . margin = options . margin ;
44
48
45
49
if ( options . userInteractionEnabled )
46
50
this . _hud . userInteractionEnabled = options . userInteractionEnabled ;
47
51
48
52
if ( options . backgroundColor ) {
49
- this . _hud . color = new Color ( options . backgroundColor ) . ios ;
53
+ this . _hud . bezelView . blurEffectStyle = UIBlurEffectStyle . Regular ;
54
+ this . _hud . bezelView . backgroundColor = new Color (
55
+ options . backgroundColor
56
+ ) . ios ;
50
57
}
51
58
52
59
if ( options . color ) {
53
60
// make activity and main label same color
54
- this . _hud . activityIndicatorColor = new Color ( options . color ) . ios ;
55
61
this . _hud . contentColor = new Color ( options . color ) . ios ; // setting this seems to enforce coloring the activity indicator correctly
56
- this . _hud . labelColor = new Color ( options . color ) . ios ;
62
+ this . _hud . label . textColor = new Color ( options . color ) . ios ;
57
63
}
58
64
59
65
if ( options . details ) {
60
- this . _hud . detailsLabelText = options . details ;
66
+ this . _hud . detailsLabel . text = options . details ;
61
67
// detail label same color with 80% opacity of that color
62
68
// TODO: allow specific control
63
- this . _hud . detailsLabelColor =
69
+ this . _hud . detailsLabel . textColor =
64
70
options && options . color
65
71
? new Color ( options . color ) . ios
66
72
: new Color ( '#333' ) . ios ;
0 commit comments