Skip to content

Commit

Permalink
Merge branch 'development' of https://github.com/ProjectIxian/Spixi i…
Browse files Browse the repository at this point in the history
…nto development
  • Loading branch information
firestorm40 committed Aug 22, 2019
2 parents 1d34bbe + 1a0273d commit db714be
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
28 changes: 18 additions & 10 deletions SPIXI/SPIXI.Android/Assets/html/css/spixiui.css
Expand Up @@ -124,7 +124,7 @@ img.emoji {
/* Toolbar */
.spixi-toolbar {
width: 100%;
height: 54px;
height: 56px;
position: fixed;
z-index: 100;

Expand Down Expand Up @@ -160,7 +160,7 @@ img.emoji {

.spixi-toolbar-holder {
width: 100%;
height: 54px;
height: 56px;
}
.spixi-toolbar-holder.extended {
height: 128px;
Expand Down Expand Up @@ -226,11 +226,11 @@ img.emoji {
color: #fff;
background-color: #25193c;
box-shadow:0px 4px 10px #777;
padding: 10px 0px;
}
.spixi-balancebar-label {
font-size: 12pt;
padding-left: 20px;
padding-top: 16px;
}
.spixi-balancebar-balance {
font-size: 14pt;
Expand Down Expand Up @@ -259,23 +259,21 @@ img.emoji {
/* OptionBar */
.spixi-optionbar {
width: 100%;
height: 81px;
color: #fff;
background-color: #25193c;
box-shadow:0px 4px 10px #777;
}
.spixi-optionbar-frame {
width:90%;
width:100%;
margin: auto;
}
.spixi-optionbar-tab {
padding-top: 20px;
height: 81px;
background: #25193c;
text-align: center;
font-size: 10pt;
font-weight: bold;
color: #FFFFFF;
padding: 10px 0px;
}
.spixi-optionbar-tab:hover {
background: #543c83;
Expand Down Expand Up @@ -1157,58 +1155,68 @@ img.emoji {
color: white;
padding: 10px;
border-radius: 16px 16px 0px 0px;
font-size: 12pt;
}

.spixi-bubble .title i {
font-size: 16pt;
margin-right: 20px;
}

.spixi-bubble .status {
padding: 10px;
background-color: white;
color: #9c9c9c;
border-bottom: 1px solid #e0e0e0;
font-size: 10pt;
}

.spixi-bubble .status .content {
color: black;
font-size: 12pt;
}

.spixi-bubble .status .fa-exclamation-circle {
color: #c42425;
font-size: 16pt;
float: right;
margin-top: -10px;
}

.spixi-bubble .status .fa-check-circle {
color: #5cc31d;
font-size: 16pt;
float: right;
margin-top: -10px;
}

.spixi-bubble .status .fa-clock {
color: #df920c;
font-size: 16pt;
float: right;
margin-top: -10px;
}

.spixi-bubble .amount {
padding: 10px;
background-color: white;
color: #9c9c9c;
border-bottom: 1px solid #e0e0e0;
font-size: 10pt;
}

.spixi-bubble .amount .content
{
color: black;
font-size: 12pt;
}

.spixi-bubble .view {
padding: 10px;
background-color: white;
color: #1692d9;
border-radius: 0px 0px 16px 16px;
font-size: 12pt;
}

.spixi-bubble .view i {
font-size: 16pt;
}

Expand Down
9 changes: 9 additions & 0 deletions SPIXI/SPIXI/Pages/Wallet/WalletSend2Page.xaml.cs
Expand Up @@ -84,6 +84,15 @@ private void onLoad()

Transaction tmp_tx = new Transaction((int)Transaction.Type.Normal, fee, to_list, from, null, pubKey, IxianHandler.getLastBlockHeight());

IxiNumber total_amount = tmp_tx.amount + tmp_tx.fee;

if (Node.balance < total_amount)
{
displaySpixiAlert("Insufficient balance", "Your balance is insufficient for this transaction. Total cost of the transaction is " + total_amount.ToString() + ", while your balance is " + Node.balance.ToString() + ".", "OK");
Navigation.PopAsync(Config.defaultXamarinAnimations);
return;
}

Utils.sendUiCommand(webView, "setFees", tmp_tx.fee.ToString());
Utils.sendUiCommand(webView, "setBalance", Node.balance.ToString());
Utils.sendUiCommand(webView, "setTotalAmount", tmp_tx.amount.ToString());
Expand Down

0 comments on commit db714be

Please sign in to comment.