Respect icon.height and width in custom button contents
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Fri, 19 May 2023 14:38:30 +0000 (22:38 +0800)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Tue, 30 May 2023 08:40:51 +0000 (08:40 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/tray/NCButtonContents.qml

index a2f0afb7976d9630d66c7a5f0a2ddbdff417f809..4ce83b5293a94538b867cd87916887e4006f4198 100644 (file)
@@ -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