QmlDesigner: Highlight active split in 3D view

Active split gets hightlight border. Same color used as for
selection boxes.

Fixes: QDS-11039
Change-Id: Ic63807d58649c441f0d44173e4cd9d981582b3e5
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Miikka Heikkinen
2023-10-26 16:13:06 +03:00
parent 2473265541
commit fbaaa6ddb7

View File

@@ -768,6 +768,18 @@ Item {
border.color: "#aaaaaa"
}
Rectangle {
// Active split highlight
visible: splitView
x: viewRects[activeSplit].x
y: viewRects[activeSplit].y
height: viewRects[activeSplit].height + (activeSplit === 0 || activeSplit === 1 ? 1 : 0)
width: viewRects[activeSplit].width + (activeSplit === 0 || activeSplit === 2 ? 1 : 0)
border.width: 1
border.color: "#fff600"
color: "transparent"
}
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.LeftButton | Qt.RightButton