Display filling level
This commit is contained in:
@@ -54,8 +54,11 @@ namespace PamhagenSysCtrl.Helpers.Pipeline {
|
||||
return Math.Abs(x - CenterX) <= WIDTH / 2 && Math.Abs(y - CenterY) <= HEIGHT / 2;
|
||||
}
|
||||
|
||||
public void Update(bool isHovering, bool isPresed) {
|
||||
_rect?.Fill = isHovering ? Brushes.LightGray : Brushes.WhiteSmoke;
|
||||
public void Update(bool isHovering, bool isPressed) {
|
||||
_rect?.Fill =
|
||||
isHovering && isPressed ? Brushes.DarkGray :
|
||||
isHovering ? Brushes.LightGray :
|
||||
Brushes.WhiteSmoke;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user