Explorar o código

Respect icon.height and width in custom button contents

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra %!s(int64=2) %!d(string=hai) anos
pai
achega
fdb6d9c4cc
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/gui/tray/NCButtonContents.qml

+ 2 - 2
src/gui/tray/NCButtonContents.qml

@@ -24,8 +24,8 @@ RowLayout {
     property bool hovered: false
     property string imageSourceHover: ""
     property string imageSource: ""
-    property int imageSourceWidth: 64
-    property int imageSourceHeight: 64
+    property int imageSourceWidth: undefined
+    property int imageSourceHeight: undefined
     property string text: ""
     property var display