2 Commits
5 changed files with 23 additions and 5 deletions
Binary file not shown.
Binary file not shown.
+11 -2
View File
@@ -203,13 +203,22 @@ Row {
font.pixelSize: root.height * 0.85 font.pixelSize: root.height * 0.85
} }
// trend arrow: green up / red down; unchanged keeps the last arrow // same breathing room between the euro sign and the arrow
Item {
width: root.height * 0.22
height: 1
}
// 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 { Text {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -root.height * 0.125
text: root.lastDir > 0 ? "\u25B2" : "\u25BC" text: root.lastDir > 0 ? "\u25B2" : "\u25BC"
visible: root.digitsOnly.length > 0 && root.lastDir !== 0 visible: root.digitsOnly.length > 0 && root.lastDir !== 0
color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c" color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c"
font.family: Qt.application.font.family font.family: Qt.application.font.family
font.pixelSize: root.height * 0.5 font.pixelSize: root.height * 1.0
} }
} }
+11 -2
View File
@@ -164,14 +164,23 @@ Row {
font.pixelSize: root.height * 0.85 font.pixelSize: root.height * 0.85
} }
// trend arrow: green up / red down; unchanged keeps the last arrow // same breathing room between the euro sign and the arrow
Item {
width: root.height * 0.22
height: 1
}
// 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 { Text {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.verticalCenterOffset: -root.height * 0.095
text: root.lastDir > 0 ? "\u25B2" : "\u25BC" text: root.lastDir > 0 ? "\u25B2" : "\u25BC"
visible: root.digits.length > 0 && root.lastDir !== 0 visible: root.digits.length > 0 && root.lastDir !== 0
color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c" color: root.lastDir > 0 ? "#2ecc71" : "#e74c3c"
font.family: Qt.application.font.family font.family: Qt.application.font.family
font.pixelSize: root.height * 0.45 font.pixelSize: root.height * 0.9
} }
// error / empty state // error / empty state
+1 -1
View File
@@ -10,7 +10,7 @@ X-KDE-ServiceTypes=Plasma/Applet
X-KDE-PluginInfo-Author=Arnold Cordewiner X-KDE-PluginInfo-Author=Arnold Cordewiner
X-KDE-PluginInfo-Email=hermes@a14r.be X-KDE-PluginInfo-Email=hermes@a14r.be
X-KDE-PluginInfo-Name=nl.a14r.bitcoinprice X-KDE-PluginInfo-Name=nl.a14r.bitcoinprice
X-KDE-PluginInfo-Version=1.5.0 X-KDE-PluginInfo-Version=1.5.2
X-KDE-PluginInfo-Website=https://gitea.a14r.be/hermes/plasma-bitcoin-price X-KDE-PluginInfo-Website=https://gitea.a14r.be/hermes/plasma-bitcoin-price
X-KDE-PluginInfo-Category=Utilities X-KDE-PluginInfo-Category=Utilities
X-KDE-PluginInfo-License=MIT X-KDE-PluginInfo-License=MIT