Commit c88e4bff authored by Eike Hein's avatar Eike Hein

Make the hover state optional.

This is desired by a downstream distro which doesn't want hover
effects in Folder View, but can't remove the graphics from the
theme without negatively impacting other UI.

It should go into the 5.9 branch to allow them to ship 5.9.
parent 390b95f5
......@@ -110,6 +110,10 @@
<label>The text color to use below Folder View icons. Only used when serving as containment.</label>
<default>white</default>
</entry>
<entry name="iconHoverEffect" type="Bool">
<label>Whether icons should change in appearance when the mouse pointer is above them.</label>
<default>true</default>
</entry>
<entry name="filterPattern" type="String">
<label>The pattern to filter files by. Supports wildcards.</label>
......
......@@ -362,7 +362,7 @@ Item {
},
State {
name: "hover"
when: hovered && !model.selected
when: hovered && !model.selected && plasmoid.configuration.iconHoverEffect
PropertyChanges {
target: frame
......@@ -371,7 +371,7 @@ Item {
},
State {
name: "selected+hover"
when: hovered && model.selected
when: hovered && model.selected && plasmoid.configuration.iconHoverEffect
PropertyChanges {
target: frame
......
Markdown is supported
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