QmlDesigner: Show remove button on hover/selection

Change-Id: Ibb58d2f60bea0bf780bd51d209a5ddd953e3cf64
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Henning Gruendl
2023-09-20 12:53:56 +02:00
committed by Henning Gründl
parent e4c96428c7
commit 4ff83dd4cc
2 changed files with 8 additions and 3 deletions

View File

@@ -104,9 +104,11 @@ ListView {
property alias delegateMouseArea: mouseArea
property bool hovered: mouseArea.containsMouse || toolTipArea.containsMouse
width: ListView.view.width
height: root.style.squareControlSize.height
color: mouseArea.containsMouse ?
color: itemDelegate.hovered ?
itemDelegate.ListView.isCurrentItem ? root.style.interactionHover
: root.style.background.hover
: "transparent"
@@ -170,10 +172,12 @@ ListView {
height: root.style.squareControlSize.height
color: toolTipArea.containsMouse ?
itemDelegate.ListView.isCurrentItem ? root.style.interactionHover
: root.style.background.hover
itemDelegate.ListView.isCurrentItem ? root.style.interactionGlobalHover
: root.style.background.globalHover
: "transparent"
visible: itemDelegate.hovered || itemDelegate.ListView.isCurrentItem
Text {
anchors.fill: parent

View File

@@ -76,6 +76,7 @@ QtObject {
// Special colors
property color interaction: Values.themeInteraction
property color interactionHover: Values.themeInteractionHover
property color interactionGlobalHover: "#ffB0E1FC"
// TODO needs to removed in the future
property color thumbnailLabelBackground: Values.themeThumbnailLabelBackground