From ee72b82f88b414b98cd34f9733db102b540b17a1 Mon Sep 17 00:00:00 2001 From: JesusPoderoso Date: Mon, 9 Sep 2024 16:22:16 +0200 Subject: [PATCH] Refs #21611: Increase FASTDDS_VISUALIZER icon size Signed-off-by: JesusPoderoso --- qml/DomainGraphLayout.qml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qml/DomainGraphLayout.qml b/qml/DomainGraphLayout.qml index 3a60cdac..3f5a0705 100644 --- a/qml/DomainGraphLayout.qml +++ b/qml/DomainGraphLayout.qml @@ -1049,13 +1049,14 @@ Item visible: parent.visible anchors.horizontalCenter: parent.horizontalCenter source: modelData["app_id"] == "UNKNOWN_APP" ? "" : - "/resources/images/app_icons/" + modelData["app_id"] + ".svg" + "/resources/images/app_icons/" + modelData["app_id"] + ".svg" readonly property int amlip_offset_: 5 // AML_IP is wider than it is tall, so its size is increased a little // bit to make it look like the same aspect ratio as the other icons - sourceSize.width: modelData["app_id"] == "AML_IP" + // It also happens with FASTDDS_VISUALIZER + sourceSize.width: modelData["app_id"] == "AML_IP" || modelData["app_id"] == "FASTDDS_VISUALIZER" ? parent.height + amlip_offset_ : parent.height - sourceSize.height: modelData["app_id"] == "AML_IP" + sourceSize.height: modelData["app_id"] == "AML_IP" || modelData["app_id"] == "FASTDDS_VISUALIZER" ? parent.height + amlip_offset_ : parent.height } }