v1.6.0: arrow at 90%, euro+arrow bottom-aligned with the price, bitcoin icon at 110%
This commit is contained in:
@@ -193,9 +193,11 @@ Row {
|
||||
height: 1
|
||||
}
|
||||
|
||||
// euro sign in the plain-text font, white
|
||||
// euro sign in the plain-text font, white; bottom-aligned with the
|
||||
// price digits (bottomMargin tuned so the glyph bottom matches)
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: root.height * 0.02
|
||||
text: "\u20AC"
|
||||
visible: root.digitsOnly.length > 0
|
||||
color: "#ffffff"
|
||||
@@ -210,15 +212,14 @@ Row {
|
||||
}
|
||||
|
||||
// trend arrow: green up / red down; unchanged keeps the last arrow.
|
||||
// The triangle glyph sits low on the baseline; shift it up so its
|
||||
// visual center matches the euro sign.
|
||||
// Bottom-aligned with the euro sign and the digits.
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.verticalCenterOffset: -root.height * 0.125
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.bottomMargin: root.height * 0.16
|
||||
text: root.lastDir > 0 ? "\u25B2" : "\u25BC"
|
||||
visible: root.digitsOnly.length > 0 && root.lastDir !== 0
|
||||
color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c"
|
||||
font.family: Qt.application.font.family
|
||||
font.pixelSize: root.height * 1.0
|
||||
font.pixelSize: root.height * 0.9
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user