Skip to content

Commit

Permalink
Refs #21611: Increase FASTDDS_VISUALIZER icon size
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso authored and Carlosespicur committed Sep 11, 2024
1 parent ed48820 commit ee72b82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qml/DomainGraphLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit ee72b82

Please sign in to comment.