Remove sourceSize.width: width from all RecolorImages

It is now the default in Uranium.

Contributes to issue CURA-5876.
This commit is contained in:
Ghostkeeper 2018-12-04 15:04:51 +01:00
parent 2fdfdaa00b
commit 4d87c46423
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
27 changed files with 20 additions and 67 deletions

View file

@ -1,5 +1,5 @@
// Copyright (c) 2017 Ultimaker B.V.
// Uranium is released under the terms of the LGPLv3 or higher.
// Copyright (c) 2018 Ultimaker B.V.
// Cura is released under the terms of the LGPLv3 or higher.
import QtQuick 2.7
import QtQuick.Controls 1.1
@ -129,13 +129,14 @@ Item
}
style: ButtonStyle
{
background: Item {
UM.RecolorImage {
background: Item
{
UM.RecolorImage
{
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
width: UM.Theme.getSize("standard_arrow").width
height: UM.Theme.getSize("standard_arrow").height
sourceSize.width: width
sourceSize.height: width
color: control.enabled ? UM.Theme.getColor("setting_category_text") : UM.Theme.getColor("setting_category_disabled_text")
source: UM.Theme.getIcon("menu")