v1.5.2: optically center trend arrow with euro sign (baseline-glyph compensation, measured in real renders)
This commit is contained in:
@@ -170,9 +170,12 @@ Row {
|
||||
height: 1
|
||||
}
|
||||
|
||||
// trend arrow: green up / red down; unchanged keeps the last arrow
|
||||
// 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.
|
||||
Text {
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
anchors.verticalCenterOffset: -root.height * 0.095
|
||||
text: root.lastDir > 0 ? "\u25B2" : "\u25BC"
|
||||
visible: root.digits.length > 0 && root.lastDir !== 0
|
||||
color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c"
|
||||
|
||||
Reference in New Issue
Block a user