瀏覽代碼

Respect icon.height and width in custom button contents

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
Claudio Cambra 2 年之前
父節點
當前提交
fdb6d9c4cc
共有 1 個文件被更改,包括 2 次插入2 次删除
  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