mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-21 13:49:29 +03:00
use PlasmaCore.IconItems everywhere in tasks
This commit is contained in:
@ -79,7 +79,9 @@ Item {
|
||||
anchors.fill: parent
|
||||
roundToIconSize: false
|
||||
source: decoration
|
||||
smooth: false
|
||||
//! trying to avoid pixelated icons because of hovering animation triggered from PlasmaCore.IconItem
|
||||
smooth: taskItem.parabolicItem.zoom > 1 && taskItem.parabolicItem.zoom < taskItem.abilities.parabolic.zoom
|
||||
active: (taskItem.containsMouse && !taskItem.abilities.indicators.info.providesHoveredAnimation)
|
||||
|
||||
visible: !badgesLoader.active
|
||||
|
||||
@ -157,10 +159,13 @@ Item {
|
||||
enabled: false
|
||||
anchors.fill: parent
|
||||
property var source: ShaderEffectSource {
|
||||
sourceItem: LatteCore.IconItem{
|
||||
sourceItem: PlasmaCore.IconItem{
|
||||
width: taskIconContainer.width
|
||||
height: taskIconContainer.height
|
||||
smooth: taskIconItem.smooth
|
||||
source: taskIconItem.source
|
||||
roundToIconSize: taskIconItem.roundToIconSize
|
||||
active: taskIconItem.roundToIconSize
|
||||
|
||||
Loader{
|
||||
anchors.fill: parent
|
||||
@ -392,6 +397,7 @@ Item {
|
||||
lightness:0
|
||||
}
|
||||
|
||||
/* Rely on PlasmaCore.IconItem hovering animation for now
|
||||
BrightnessContrast{
|
||||
id:hoveredImage
|
||||
anchors.fill: parent
|
||||
@ -412,7 +418,7 @@ Item {
|
||||
Behavior on opacity {
|
||||
NumberAnimation { duration: taskItem.abilities.animations.speedFactor.current * taskItem.abilities.animations.duration.large }
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
BrightnessContrast {
|
||||
id: brightnessTaskEffect
|
||||
|
@ -46,7 +46,7 @@ SequentialAnimation{
|
||||
|
||||
onPressedChanged: {
|
||||
if(!running && pressed && !taskItem.abilities.indicators.info.providesClickedAnimation &&
|
||||
((taskItem.lastButtonClicked == Qt.LeftButton)||(taskItem.lastButtonClicked === Qt.MidButton)) ){
|
||||
((taskItem.lastButtonClicked === Qt.LeftButton)||(taskItem.lastButtonClicked === Qt.MidButton)) ){
|
||||
start();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user