Verified Commit 5638ab14 authored by ivan tkachenko's avatar ivan tkachenko
Browse files

[applets/kicker] Fix missing highlight on Dashboard grids & list

Part of the reason was incomplete PlasmaExtras.Highlight refactoring,
other part is anchors not working for highlight instance:

    /usr/share/plasma/plasmoids/org.kde.plasma.kicker/contents/ui/DashboardRepresentation.qml:970:36:
    QML Highlight: Cannot anchor to an item that isn't a parent or sibling.

BUG: 453980
parent 40f1f99c
Pipeline #194200 passed with stage
in 5 minutes and 8 seconds
......@@ -968,20 +968,16 @@ Kicker.DashboardWindow {
}
highlight: PlasmaExtras.Highlight {
anchors {
top: filterList.currentItem ? filterList.currentItem.top : undefined
left: filterList.currentItem ? filterList.currentItem.left : undefined
bottom: filterList.currentItem ? filterList.currentItem.bottom : undefined
}
opacity: filterListScrollArea.focus ? 1.0 : 0.7
x: filterList.currentItem ? filterList.currentItem.x : 0
y: filterList.currentItem ? filterList.currentItem.y : 0
height: filterList.currentItem ? filterList.currentItem.height : 0
width: (highlightItemSvg.margins.left
+ (filterList.currentItem ? filterList.currentItem.textWidth : 0)
+ highlightItemSvg.margins.right
+ PlasmaCore.Units.smallSpacing)
visible: filterList.currentItem
opacity: filterListScrollArea.focus ? 1.0 : 0.7
}
highlightFollowsCurrentItem: false
......
......@@ -237,6 +237,7 @@ FocusScope {
PlasmaExtras.Highlight {
visible: gridView.currentItem && !isDropPlaceHolder
hovered: true
anchors.fill: parent
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment