fix little square that clips over buttons when resizing ladder

This commit is contained in:
Jake Norbut committed 2018-12-11 10:58:42 -06:00
1 parent b1fb6ed06a
commit 37b4657023
1 file changed
+4 -2
@@ -20,6 +20,8 @@ using System.Windows.Media;
namespace mbts.spark {
class LadderVM : DisposableViewModelBase, IWillLetYouKnowWhenIDispose, IKeyListener {
static readonly Brush _transparent_status_brush = BTSColors.UI.transparent;
readonly IBus _bus;
readonly LadderModel _model;
readonly Property<double> _high, _low, _change, _open, _settlement, _position;
@@ -52,7 +54,7 @@ namespace mbts.spark {
_volume = backing(nameof(volume), 0ul);
_auto_clear = backing(nameof(auto_clear), false);
_status = backing(nameof(status_message), "");
_status_brush = backing(nameof(status_background), (Brush)BTSColors.UI.spark_menu_background);
_status_brush = backing(nameof(status_background), _transparent_status_brush);
// brush props
_bid_background = brush_prop(nameof(bid_background), s => s.bid_column.background.rgb_brush());
_bid_foreground = brush_prop(nameof(bid_foreground), s => s.bid_column.foreground.rgb_brush());
@@ -224,7 +226,7 @@ namespace mbts.spark {
await Task.Delay(TimeSpan.FromSeconds(5));
if (_status.Value == a.message) {
_status.set("");
_status_brush.set(BTSColors.UI.spark_menu_background);
_status_brush.set(_transparent_status_brush);
}
}
}