From: Camila Ayres Date: Wed, 28 Aug 2024 20:25:51 +0000 (+0200) Subject: Fix warning: The current style does not support customization of this control (proper... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~6^2~34^2~21 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=88708d5abf7913f2c80ab7905a7f6b77b31d19f3;p=nextcloud-desktop.git Fix warning: The current style does not support customization of this control (property: "contextItem"). Signed-off-by: Camila Ayres --- diff --git a/src/gui/tray/ActivityItem.qml b/src/gui/tray/ActivityItem.qml index e37518d50..c84b44cce 100644 --- a/src/gui/tray/ActivityItem.qml +++ b/src/gui/tray/ActivityItem.qml @@ -29,6 +29,7 @@ ItemDelegate { text: qsTr("In %1").arg(model.displayLocation) } + // TODO: the current style does not support customization of this control contentItem: ColumnLayout { spacing: Style.smallSpacing diff --git a/src/gui/tray/CustomButton.qml b/src/gui/tray/CustomButton.qml index ba0d70ed4..81c59e348 100644 --- a/src/gui/tray/CustomButton.qml +++ b/src/gui/tray/CustomButton.qml @@ -36,6 +36,7 @@ Button { visible: root.toolTipText !== "" && root.hovered } + // TODO: the current style does not support customization of this control contentItem: NCButtonContents { id: contents display: root.display diff --git a/src/gui/tray/TrayFoldersMenuButton.qml b/src/gui/tray/TrayFoldersMenuButton.qml index bad8135e6..ba982fbe8 100644 --- a/src/gui/tray/TrayFoldersMenuButton.qml +++ b/src/gui/tray/TrayFoldersMenuButton.qml @@ -57,7 +57,8 @@ HeaderButton { text: root.userHasGroupFolders ? qsTr("Open local or group folders") : qsTr("Open local folder") } - contentItem: Item { + + Item { id: rootContent anchors.fill: parent diff --git a/src/gui/tray/UserLine.qml b/src/gui/tray/UserLine.qml index f1ecc779c..ead5ef7ac 100644 --- a/src/gui/tray/UserLine.qml +++ b/src/gui/tray/UserLine.qml @@ -147,7 +147,7 @@ AbstractButton { onClicked: userMoreButtonMenu.visible ? userMoreButtonMenu.close() : userMoreButtonMenu.popup() - contentItem: Image { + Image { anchors.fill: parent source: "image://svgimage-custom-color/more.svg" + "/" + palette.buttonText fillMode: Image.PreserveAspectFit