Compare commits

..

No commits in common. "324ed663c3784e507239a1c85bac2d0e30120799" and "54d9f20fdd7e50a055df6baef60ce03cff6a2611" have entirely different histories.

View file

@ -975,6 +975,7 @@ buildUI wenv model = widgetTree
, filler , filler
] ]
shieldOverlay = shieldOverlay =
alert CloseShield $
box box
(vstack (vstack
[ filler [ filler
@ -990,38 +991,31 @@ buildUI wenv model = widgetTree
, separatorLine `styleBasic` [fgColor btnColor] , separatorLine `styleBasic` [fgColor btnColor]
, spacer , spacer
, hstack , hstack
[ filler [ label "Amount:" `styleBasic`
, label ("Amount : " ) `styleBasic`
[width 50, textFont "Bold"] [width 50, textFont "Bold"]
, spacer , spacer
, label (displayAmount (model ^. network) 100 ) `styleBasic` , numericField_
[width 50, textFont "Bold"] sendAmount
, filler [ decimals 8
-- , spacer , minValue 0.0
-- , numericField_ , maxValue
-- sendAmount (fromIntegral (model ^. tBalance) / 100000000.0)
-- [ decimals 8 , validInput tBalanceValid
-- , minValue 0.0 , onChange CheckAmount
-- , maxValue ] `styleBasic`
-- (fromIntegral (model ^. tBalance) / 100000000.0) [ width 150
-- , validInput tBalanceValid , styleIf
-- , onChange CheckAmount (not $ model ^. tBalanceValid)
-- ] `styleBasic` (textColor red)
-- [ width 150 ]
-- , styleIf
-- (not $ model ^. tBalanceValid)
-- (textColor red)
-- ]
] ]
, spacer , spacer
, box_ , box_
[alignMiddle] [alignMiddle]
(hstack (hstack
[ filler [ filler
, mainButton "Proceed" NotImplemented `nodeEnabled` True , mainButton "Proceed" NotImplemented `nodeEnabled`
-- (model ^. amountValid && model ^. recipientValid) (model ^. amountValid && model ^. recipientValid)
, spacer
, mainButton "Cancel" CloseShield `nodeEnabled` True
, filler , filler
]) ])
]) `styleBasic` ]) `styleBasic`
@ -1032,6 +1026,7 @@ buildUI wenv model = widgetTree
]) `styleBasic` ]) `styleBasic`
[bgColor (white & L.a .~ 0.5)] [bgColor (white & L.a .~ 0.5)]
deShieldOverlay = deShieldOverlay =
alert CloseDeShield $
box box
(vstack (vstack
[ filler [ filler
@ -1080,10 +1075,8 @@ buildUI wenv model = widgetTree
[alignMiddle] [alignMiddle]
(hstack (hstack
[ filler [ filler
, mainButton "Proceed" NotImplemented `nodeEnabled` True , mainButton "Proceed" NotImplemented `nodeEnabled`
-- (model ^. amountValid && model ^. recipientValid) (model ^. amountValid && model ^. recipientValid)
, spacer
, mainButton "Cancel" CloseDeShield `nodeEnabled` True
, filler , filler
]) ])
]) `styleBasic` ]) `styleBasic`