mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
fix #58, hack the Plasma iconitems applets
--applets such as folder view and icon where breaking the animation for icon size < 64px. This commit uses the heuristic algorithm from AppletItem in order to discover such plasmoids and afterwards it fakes a Latte.IconItem over the PlasmaCore.IconItem
This commit is contained in:
parent
291f579dc9
commit
dae061e64d
@ -710,6 +710,19 @@ Item {
|
||||
}
|
||||
]
|
||||
//END states
|
||||
|
||||
Loader{
|
||||
anchors.fill: parent
|
||||
active: appletIconItem && appletIconItem.source
|
||||
sourceComponent: Latte.IconItem{
|
||||
id: fakeAppletIconItem
|
||||
source: appletIconItem.source
|
||||
|
||||
Component.onCompleted: {
|
||||
appletIconItem.opacity = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//spacer background
|
||||
@ -779,7 +792,7 @@ Item {
|
||||
anchors.fill: parent
|
||||
color: "#ff080808"
|
||||
samples: 2 * radius
|
||||
source: container.applet
|
||||
source: appletIconItem && appletIconItem.source ? wrapperContainer :container.applet
|
||||
radius: shadowSize
|
||||
verticalOffset: 2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user