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[]) ...@@ -96,6 +96,7 @@ int main(int argc, char *argv[])
engine.rootContext()->setContextProperty("dapWalletModel", &DapChainWalletModel::instance()); engine.rootContext()->setContextProperty("dapWalletModel", &DapChainWalletModel::instance());
engine.rootContext()->setContextProperty("clipboard", &DapClipboard::instance()); engine.rootContext()->setContextProperty("clipboard", &DapClipboard::instance());
engine.rootContext()->setContextProperty("pt", 1.0); engine.rootContext()->setContextProperty("pt", 1.0);
engine.load(QUrl("qrc:/screen/main.qml")); engine.load(QUrl("qrc:/screen/main.qml"));
if (engine.rootObjects().isEmpty()) if (engine.rootObjects().isEmpty())
......
...@@ -12,7 +12,7 @@ Page { ...@@ -12,7 +12,7 @@ Page {
anchors.leftMargin: 24*pt anchors.leftMargin: 24*pt
anchors.topMargin: 12*pt anchors.topMargin: 12*pt
anchors.rightMargin: 24*pt anchors.rightMargin: 24*pt
height:42 * pt height:30 * pt
///Token ComboBox ///Token ComboBox
Rectangle{ Rectangle{
...@@ -36,6 +36,13 @@ Page { ...@@ -36,6 +36,13 @@ Page {
sidePaddingActive: 16*pt sidePaddingActive: 16*pt
sidePaddingNormal: 0 sidePaddingNormal: 0
x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal 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 { ...@@ -65,6 +72,11 @@ Page {
sidePaddingActive: 16*pt sidePaddingActive: 16*pt
sidePaddingNormal: 0 sidePaddingNormal: 0
x:popup.visible ? sidePaddingActive * (-1) : sidePaddingNormal 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 ...@@ -6,71 +6,106 @@ import QtQuick.Layouts 1.3
import "../../" import "../../"
Rectangle { Rectangle {
Rectangle { height:60 * pt
anchors.fill: parent anchors{
anchors.bottomMargin: 1 top: parent.top
color: "transparent" left: parent.left
right: parent.right
}
color: "transparent"
Row { Row {
anchors.fill: parent anchors.fill: parent
anchors.leftMargin: 30 * pt
anchors.topMargin: 10 * pt
anchors.bottomMargin: 10 * pt
spacing: 10 * pt
Label { Label {
id:labelWaletStatusBar
text: qsTr("Wallet") text: qsTr("Wallet")
anchors.left: parent.left
anchors.leftMargin: 48 * pt
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
horizontalAlignment: Qt.AlignLeft
font.family: fontRobotoRegular.name font.family: fontRobotoRegular.name
font.pixelSize: 12 * pt 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.top: parent.top
anchors.bottom: parent.bottom 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 {} indicatorImageNormal: "qrc:/res/icons/ic_arrow_drop_down.png"
model: dapWalletModel.wallets indicatorImageActive: "qrc:/res/icons/ic_arrow_drop_up.png"
sidePaddingNormal:0 * pt
indicatorImageNormal:"qrc:/res/icons/ic_arrow_drop_down.png" sidePaddingActive:16 * pt
indicatorImageActive: "qrc:/res/icons/ic_arrow_drop_up.png" topIndentActive:10 * pt
sidePaddingNormal:12 * pt normalColorText:"#070023"
normalColorText:"#FFFFFF" hilightColorText:"#FFFFFF"
hilightColorTopText:"#332F49" normalColorTopText:"#FFFFFF"
hilightColor: "#332F49" hilightColorTopText:"#070023"
fontSizeComboBox: 14*pt 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 { Label {
id: titleWalletBalance id: titleWalletBalance
anchors.left: combBoxStatusBar.right
anchors.leftMargin: 70 * pt
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
text: qsTr("Wallet balance:") text: qsTr("Wallet balance:")
font.family: fontRobotoRegular.name font.family: fontRobotoRegular.name
font.pixelSize: 12 * pt font.pixelSize: 12 * pt
color: "#A7A7A7" color: "#ACAAB5"
} }
Label { Label {
id: fieldWalletBalance id: fieldWalletBalance
anchors.top: parent.top anchors.top: parent.top
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.left: titleWalletBalance.right
anchors.leftMargin: 18 * pt
verticalAlignment: Qt.AlignVCenter verticalAlignment: Qt.AlignVCenter
font.family: fontRobotoRegular.name font.family: fontRobotoRegular.name
font.pixelSize: 16 * pt font.pixelSize: 16 * pt
color: "#FFFFFF" color: "#FFFFFF"
text: dapChainConvertor.toConvertCurrency( ///DemoDate
dapWalletModel.walletBalance(comboboxWallet.currentText)) text: "$ 3 050 745.3453289 USD"
// text: dapChainConvertor.toConvertCurrency(
// dapWalletModel.walletBalance(comboboxWallet.currentText))
} }
} }
DapUiQmlWidgetStatusBarButtonForm { DapUiQmlWidgetStatusBarButtonForm {
id: statusBarAddWalletButton id: statusBarAddWalletButton
width: 120 * pt visible: rightPanel.visible ? true : false
width: rightPanel.visible ? 120 * pt : 0
height: 36 * pt height: 36 * pt
name: qsTr("New wallet") name: qsTr("New wallet")
fontHeight: 14 * pt fontHeight: 14 * pt
...@@ -92,7 +127,9 @@ Rectangle { ...@@ -92,7 +127,9 @@ Rectangle {
target: rightPanel.header.currentItem target: rightPanel.header.currentItem
onPressedCloseAddWalletChanged: statusBarAddWalletButton.backgroundColor = "#070023" 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