sync with mobilecomponents f4d5d19fc

- Kills a warning in ContextDrawer.
- Improves sizing of menu icons.
- Fixes icon rendering in menues.

Signed-off-by: Sebastian Kügler <sebas@kde.org>
This commit is contained in:
Sebastian Kügler 2015-12-08 02:32:03 +01:00
parent 946cc5fec2
commit 44fd9bff67
4 changed files with 10 additions and 4 deletions

View file

@ -27,13 +27,16 @@ Item {
property alias smooth: image.smooth
property bool active: false
property bool valid: image.status == Image.Ready
implicitWidth: Math.min(image.sourceSize.width, Units.iconSizes.medium)
implicitHeight: Math.min(image.sourceSize.height, Units.iconSizes.medium)
implicitWidth: image.source != "" ? Units.iconSizes.smallMedium : 0
implicitHeight: image.source != "" ? Units.iconSizes.smallMedium : 0
Image {
id: image
anchors.fill: parent
source: root.source != "" ? (root.source.indexOf(".") === -1 ? "icons/" + root.source + ".svg" : root.source) : root.source
sourceSize.width: root.width
sourceSize.height: root.height
}
GammaAdjust {
anchors.fill: image