child order should should look disabled in the ladder

This commit is contained in:
Eric Harding committed 2017-10-13 14:00:13 -04:00
1 parent a983abbaf5
commit d52abfe51c
1 file changed
+1 -2
+1 -2
View File
@@ -82,7 +82,6 @@ namespace mbts.spark {
// == is_child
public bool has_parent => _order.parent_id() != null;
public bool is_child => has_parent;
public ICommand shatter_command => new DelegateCommand(_ => model.order_gateway.shatter(_order.order().Id), _ => !has_parent);
public ICommand cancel_command => new DelegateCommand(_ => model.order_gateway.cancel_order(new OrderID[] {_order.order().Id}), _ => !has_parent);
@@ -93,7 +92,7 @@ namespace mbts.spark {
public Brush hoverbackground { get; private set; }
public Brush header_brush => _order.order().Side == Side.Buy ? BTSColors.MarketData.bid : BTSColors.MarketData.ask;
public double opacity => is_child ? 0.8 : 1.0;
public double opacity => has_parent ? 0.5 : 1.0;
public Brush border { get; }