Skip to content
Snippets Groups Projects
Commit 1fcce308 authored by andrey.daragan's avatar andrey.daragan
Browse files

Merge branch 'feature-2624' into 'master'

Feature 2624

See merge request !64
parents 2c7f7f7a f42395b4
No related branches found
No related tags found
1 merge request!64Feature 2624
Pipeline #1462 passed with stage
in 21 minutes and 31 seconds
......@@ -96,6 +96,7 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("dapWalletModel", &DapChainWalletModel::instance());
engine.rootContext()->setContextProperty("clipboard", &DapClipboard::instance());
engine.rootContext()->setContextProperty("pt", 1.0);
engine.load(QUrl("qrc:/screen/main.qml"));
if (engine.rootObjects().isEmpty())
......
......@@ -12,7 +12,7 @@ Page {
anchors.leftMargin: 24*pt
anchors.topMargin: 12*pt
anchors.rightMargin: 24*pt
height:42 * pt
height:30 * pt
///Token ComboBox
Rectangle{
......@@ -36,6 +36,13 @@ Page {
sidePaddingActive: 16*pt
sidePaddingNormal: 0
x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal
topIndentActive:12 * pt
bottomIndentActive:14 * pt
heightComboBoxNormal:24 * pt
heightComboBoxActive:44 * pt
bottomIntervalListElement:6 * pt
}
}
......@@ -65,6 +72,11 @@ Page {
sidePaddingActive: 16*pt
sidePaddingNormal: 0
x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal
topIndentActive:12 * pt
bottomIndentActive:14 * pt
heightComboBoxNormal:24 * pt
heightComboBoxActive:44 * pt
bottomIntervalListElement:6 * pt
}
}
......
......@@ -6,71 +6,106 @@ import QtQuick.Layouts 1.3
import "../../"
Rectangle {
Rectangle {
anchors.fill: parent
anchors.bottomMargin: 1
color: "transparent"
height:60 * pt
anchors{
top: parent.top
left: parent.left
right: parent.right
}
color: "transparent"
Row {
anchors.fill: parent
anchors.leftMargin: 30 * pt
anchors.topMargin: 10 * pt
anchors.bottomMargin: 10 * pt
spacing: 10 * pt
Label {
id:labelWaletStatusBar
text: qsTr("Wallet")
anchors.left: parent.left
anchors.leftMargin: 48 * pt
anchors.top: parent.top
anchors.bottom: parent.bottom
verticalAlignment: Qt.AlignVCenter
horizontalAlignment: Qt.AlignLeft
font.family: fontRobotoRegular.name
font.pixelSize: 12 * pt
color: "#A7A7A7"
color: "#ACAAB5"
}
DapComboBox {
id: comboboxWallet
width: 190*pt
Rectangle{
id:combBoxStatusBar
anchors.left:labelWaletStatusBar.right
anchors.leftMargin:30 * pt
anchors.top: parent.top
anchors.bottom: parent.bottom
width:148 * pt
color: "transparent"
DapComboBox {
id: comboboxWallet
// property Label fieldBalance: Label {}
// model: dapWalletModel.wallets
///Demo model
model: ListModel{
id:сonversionList
ListElement{text:"all wallets"}
ListElement{text:"Money for children"}
ListElement{text:"Money for education"}
ListElement{text:"Money for medicine"}
}
property Label fieldBalance: Label {}
model: dapWalletModel.wallets
indicatorImageNormal:"qrc:/res/icons/ic_arrow_drop_down.png"
indicatorImageActive: "qrc:/res/icons/ic_arrow_drop_up.png"
sidePaddingNormal:12 * pt
normalColorText:"#FFFFFF"
hilightColorTopText:"#332F49"
hilightColor: "#332F49"
fontSizeComboBox: 14*pt
indicatorImageNormal: "qrc:/res/icons/ic_arrow_drop_down.png"
indicatorImageActive: "qrc:/res/icons/ic_arrow_drop_up.png"
sidePaddingNormal:0 * pt
sidePaddingActive:16 * pt
topIndentActive:10 * pt
normalColorText:"#070023"
hilightColorText:"#FFFFFF"
normalColorTopText:"#FFFFFF"
hilightColorTopText:"#070023"
hilightColor: "#330F54"
normalTopColor: "#070023"
fontSizeComboBox: 14*px
widthPopupComboBoxNormal:148 * pt
widthPopupComboBoxActive:180 * pt
heightComboBoxNormal:24 * pt
heightComboBoxActive:44 * pt
bottomIntervalListElement:8 * pt
topEffect:false
x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal
}
}
Label {
id: titleWalletBalance
anchors.left: combBoxStatusBar.right
anchors.leftMargin: 70 * pt
anchors.top: parent.top
anchors.bottom: parent.bottom
verticalAlignment: Qt.AlignVCenter
text: qsTr("Wallet balance:")
font.family: fontRobotoRegular.name
font.pixelSize: 12 * pt
color: "#A7A7A7"
color: "#ACAAB5"
}
Label {
id: fieldWalletBalance
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: titleWalletBalance.right
anchors.leftMargin: 18 * pt
verticalAlignment: Qt.AlignVCenter
font.family: fontRobotoRegular.name
font.pixelSize: 16 * pt
color: "#FFFFFF"
text: dapChainConvertor.toConvertCurrency(
dapWalletModel.walletBalance(comboboxWallet.currentText))
///DemoDate
text: "$ 3 050 745.3453289 USD"
// text: dapChainConvertor.toConvertCurrency(
// dapWalletModel.walletBalance(comboboxWallet.currentText))
}
}
DapUiQmlWidgetStatusBarButtonForm {
id: statusBarAddWalletButton
width: 120 * pt
visible: rightPanel.visible ? true : false
width: rightPanel.visible ? 120 * pt : 0
height: 36 * pt
name: qsTr("New wallet")
fontHeight: 14 * pt
......@@ -92,7 +127,9 @@ Rectangle {
target: rightPanel.header.currentItem
onPressedCloseAddWalletChanged: statusBarAddWalletButton.backgroundColor = "#070023"
}
}
}
}
Subproject commit 8dfd465e991656dca083c0fd3a0ff5825d61fe86
Subproject commit af9704c2619c8d8395625a72f16489f106fc487b
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment