Skip to content

Commit a99129b

Browse files
committed
Fix attention state and only color on hover
1 parent 3814dd3 commit a99129b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package/contents/ui/Task.qml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,10 @@ MouseArea {
377377
leftMargin: ((inPopup || tasks.vertical) && taskList.columns > 1) ? LayoutManager.iconMargin : 0
378378
rightMargin: ((inPopup || tasks.vertical) && taskList.columns > 1) ? LayoutManager.iconMargin : 0
379379
}
380-
380+
property int test: {
381+
console.log(task.state);
382+
return 0
383+
}
381384
imagePath: plasmoid.configuration.disableButtonSvg ? "" : "widgets/tasks"
382385
enabledBorders: plasmoid.configuration.useBorders ? 1 | 2 | 4 | 8 : 0
383386
property bool isHovered: task.highlighted && plasmoid.configuration.taskHoverEffect
@@ -863,10 +866,11 @@ MouseArea {
863866
PropertyChanges {
864867
target: frame
865868
basePrefix: "attention"
869+
visible: (plasmoid.configuration.buttonColorize && !frame.isHovered) || !plasmoid.configuration.buttonColorize
866870
}
867871
PropertyChanges {
868872
target: colorOverride
869-
visible: plasmoid.configuration.buttonColorize ? frame.isHovered ? true : false : false
873+
visible: (plasmoid.configuration.buttonColorize && frame.isHovered)
870874
}
871875
},
872876
State {

0 commit comments

Comments
 (0)