mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
946cc5fec2
commit
44fd9bff67
4 changed files with 10 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue