Skip to content
Snippets Groups Projects
Commit 091811fa authored by Konstantin's avatar Konstantin
Browse files

remake combobox

parent 74fecec1
No related branches found
No related tags found
1 merge request!11Cellframe clone
......@@ -110,47 +110,17 @@ DapUiQmlScreen {
model: ListModel {
id: signatureType
ListElement {
signatureName: "Dilithium"
}
ListElement {
signatureName: "Bliss"
}
ListElement {
signatureName: "Picnic"
}
ListElement {
signatureName: "Tesla"
}
ListElement {signatureName: "Dilithium"}
ListElement {signatureName: "Bliss"}
ListElement {signatureName: "Picnic"}
ListElement {signatureName: "Tesla"}
}
normalColorText: "#070023"
hilightColorText: "#FFFFFF"
fontSizeComboBox: 16 * pt
hilightColor: "#330F54"
sidePaddingActive: 20*pt
indicator: Image {
source: parent.popup.visible ? "qrc:/res/icons/ic_arrow_drop_up_dark_blue.png"
: "qrc:/res/icons/ic_arrow_drop_down_dark_blue.png"
width: 20 * pt
height: 20 * pt
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 20 * pt
}
contentItem: Text {
anchors.fill: parent
anchors.leftMargin: 20 * pt
anchors.topMargin: 12 * pt
anchors.verticalCenter: parent.verticalCenter
text: parent.displayText
font.family: fontRobotoRegular.name
font.pixelSize: 16*pt
color: normalColorText
verticalAlignment: Text.AlignTop
elide: Text.ElideRight
}
sidePaddingNormal: 20*pt
indicatorWidth:20 * pt
}
}
......@@ -271,3 +241,9 @@ DapUiQmlScreen {
}
}
}
/*##^##
Designer {
D{i:0;autoSize:true;height:480;width:640}
}
##^##*/
......@@ -39,31 +39,13 @@ Rectangle {
property Label fieldBalance: Label {}
model: dapWalletModel.wallets
indicator: Image {
id: arrow
source: parent.popup.visible ? "qrc:/res/icons/ic_arrow_drop_up.png" : "qrc:/res/icons/ic_arrow_drop_down.png"
width: 24 * pt
height: 24 * pt
anchors.verticalCenter: parent.verticalCenter
anchors.right: parent.right
anchors.rightMargin: 16 * pt
}
contentItem: Text {
id: headerText
anchors.fill: parent
anchors.leftMargin: 12 * pt
anchors.rightMargin: 48 * pt
anchors.topMargin: 10 * pt
text: parent.displayText
font.family: fontRobotoRegular.name
font.pixelSize: 14 * pt
color: parent.popup.visible ? "#332F49" : "#FFFFFF"
verticalAlignment: Text.AlignTop
elide: Text.ElideRight
}
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*px
hilightColorText: "#FFFFFF"
}
Label {
......
Subproject commit 7b490c2c718ab341af1b1f74f49aec20fb45101e
Subproject commit 8dfd465e991656dca083c0fd3a0ff5825d61fe86
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