Expose Icon.colorize property in ListItem.Standard #413
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Brief:
This is a very simple addition to help development of the papyros/files-app.
It allows a user to choose whether the icon on a
ListItem.Standard
is colorized or not. In a
ListItem.Standard
a user can now use theproperty
colorizeIcon:
which takes a bool and is an alias foricon.colorize
in theListItem.Standard
.This came to be an issue when attempting to list mimetype icons
in the papyros files app as they were all using a
ColorOverlay
insteadof an image.
Changes:
Data:
Here's what I get when I have no control over
icon.colorize
As you can see the icons (test icons) that I need to be shown as images are shown with an overlay
### The results of `colorizeIcon: false`
Now the test icons show up and I can begin implementing the mimetype logic
### Here's what the `colorizeIcon:` property looks like when used
###### Line 31: How `colorizeIcon:` would be used.
I know that the files-app is using an earlier version of qml-material than what's on develop but it would still be a useful property and would give incentive to migrate the files app to a newer version of qml-material when the time comes