aboutsummaryrefslogtreecommitdiff
path: root/src/MapWaypoint.qml
diff options
context:
space:
mode:
authorArseniy Movshev <dodoradio@outlook.com>2023-01-07 02:49:45 +0000
committerArseniy Movshev <dodoradio@outlook.com>2023-01-07 15:46:48 +0000
commitddff93dee672a3e78259a96f086017ff7b4fea75 (patch)
treecc78011eba141ab90fb60961ee6b466ad11bbdb7 /src/MapWaypoint.qml
parent452a1a4d5784cfc191485f4e77133ef3090ee693 (diff)
add borders to waypoints and make them clickable
Diffstat (limited to '')
-rw-r--r--src/MapWaypoint.qml13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/MapWaypoint.qml b/src/MapWaypoint.qml
index 1300cb0..3a56dcc 100644
--- a/src/MapWaypoint.qml
+++ b/src/MapWaypoint.qml
@@ -11,10 +11,17 @@ MapQuickItem {
autoFadeIn: false
property string iconName
property color iconColor
- sourceItem: Asteroid.Icon {
+ sourceItem: Asteroid.IconButton {
width: Asteroid.Dims.w(12)
+ iconName: "waypoint"
height: width
- name: root.iconName
- color: root.iconColor
+ iconColor: root.iconColor.hsvValue < 0.5 ? "white" : "black"
+ Asteroid.Icon {
+ anchors.centerIn: parent
+ width: parent.width*0.9
+ height: width
+ name: root.iconName
+ color: root.iconColor
+ }
}
}