Skip to content

Commit

Permalink
chore: listview hover background color tweak
Browse files Browse the repository at this point in the history
- enableBoxShadow: false
- dropShadowColor: null
  • Loading branch information
kegechen committed Aug 22, 2024
1 parent 24eff5d commit f643f74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qt6/src/qml/BoxPanel.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions qt6/src/qml/ListView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f643f74

Please sign in to comment.