private void Apply() { var statusBar = StatusBar; statusBar.ForegroundColor = this.ForegroundColor; statusBar.BackgroundColor = this.BackgroundColor; statusBar.BackgroundOpacity = this.BackgroundOpacity; _owner = this; }
private void Unapply() { if (_owner != this) { return; } _owner = null; var statusBar = StatusBar; statusBar.ForegroundColor = null; statusBar.BackgroundColor = null; statusBar.BackgroundOpacity = 1.0; }