diff --git a/qt6/src/qml/BoxPanel.qml b/qt6/src/qml/BoxPanel.qml index 8b7fe06b..28446375 100644 --- a/qt6/src/qml/BoxPanel.qml +++ b/qt6/src/qml/BoxPanel.qml @@ -22,10 +22,11 @@ Item { property int innerShadowOffsetY1: -1 // Background color changes with hover state if `backgroundFlowingHovered` is `true`. property bool backgroundFlowsHovered: true + property bool enableBoxShadow: control.D.ColorSelector.family === D.Palette.CommonColor Loader { anchors.fill: backgroundRect - active: control.D.ColorSelector.family === D.Palette.CommonColor + active: enableBoxShadow sourceComponent: BoxShadow { shadowBlur: control.boxShadowBlur shadowOffsetY: control.boxShadowOffsetY diff --git a/qt6/src/qml/ListView.qml b/qt6/src/qml/ListView.qml index 3abfd6fe..99d70a44 100644 --- a/qt6/src/qml/ListView.qml +++ b/qt6/src/qml/ListView.qml @@ -161,10 +161,13 @@ ListView { sourceComponent: P.ButtonPanel { button: hoveredItem enableAnimation: false // avoid hover animation + enableBoxShadow: false outsideBorderColor: null insideBorderColor: null innerShadowColor1: null innerShadowColor2: null + dropShadowColor: null + visible: hoveredItem && !hoveredItem.checked && hoveredItem.enabled color1: D.Palette { normal {