actiondrawer: Fix color detection

PanelBackground supplies color through the `panelColor` property, not
`color`.
This commit is contained in:
Devin Lin 2025-06-27 22:24:32 -04:00
parent 47a886988f
commit 147e949ee7

View file

@ -76,7 +76,7 @@ MobileShell.BaseItem {
antialiasing: true
// Only show separator on dark background
visible: (Kirigami.ColorUtils.brightnessForColor(background.color)) === Kirigami.ColorUtils.Dark ? 1 : 0
visible: (Kirigami.ColorUtils.brightnessForColor(background.panelColor)) === Kirigami.ColorUtils.Dark ? 1 : 0
height: 1
color: Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.textColor, Kirigami.Theme.backgroundColor, 0.9)
}