Layout.preferredHeight: width
Layout.rightMargin: headerGridLayout.textRightMargin
- imageSource: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
+ icon.source: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
bgColor: Style.lightHover
bgNormalOpacity: 0
toolTipText: qsTr("Dismiss")
bgColor: Style.lightHover
bgNormalOpacity: 0
- imageSource: "image://svgimage-custom-color/add.svg/" + Style.ncTextColor
+ icon.source: "image://svgimage-custom-color/add.svg/" + Style.ncTextColor
visible: (root.isPlaceholderLinkShare || root.isSecureFileDropPlaceholderLinkShare) && root.canCreateLinkShares
enabled: visible
bgColor: shareLinkCopied ? Style.positiveColor : Style.lightHover
bgNormalOpacity: shareLinkCopied ? 1 : 0
- imageSource: shareLinkCopied ? "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor :
+ icon.source: shareLinkCopied ? "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor :
"image://svgimage-custom-color/copy.svg/" + Style.ncTextColor
icon.width: 16
icon.height: 16
bgColor: Style.lightHover
bgNormalOpacity: 0
- imageSource: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
+ icon.source: "image://svgimage-custom-color/more.svg/" + Style.ncTextColor
visible: !root.isPlaceholderLinkShare && !root.isSecureFileDropPlaceholderLinkShare && !root.isInternalLinkShare
enabled: visible
Layout.preferredHeight: width
Layout.rightMargin: root.padding
- imageSource: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
+ icon.source: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
bgColor: Style.lightHover
bgNormalOpacity: 0
toolTipText: qsTr("Dismiss")
CustomButton {
height: Style.standardPrimaryButtonHeight
- imageSource: "image://svgimage-custom-color/close.svg/" + Style.errorBoxBackgroundColor
+ icon.source: "image://svgimage-custom-color/close.svg/" + Style.errorBoxBackgroundColor
imageSourceHover: "image://svgimage-custom-color/close.svg/" + Style.ncHeaderTextColor
text: qsTr("Unshare")
textColor: Style.errorBoxBackgroundColor
CustomButton {
height: Style.standardPrimaryButtonHeight
- imageSource: "image://svgimage-custom-color/add.svg/" + Style.ncBlue
+ icon.source: "image://svgimage-custom-color/add.svg/" + Style.ncBlue
imageSourceHover: "image://svgimage-custom-color/add.svg/" + Style.ncHeaderTextColor
text: qsTr("Add another link")
textColor: Style.ncBlue
height: Style.standardPrimaryButtonHeight
- imageSource: "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor
+ icon.source: "image://svgimage-custom-color/copy.svg/" + Style.ncHeaderTextColor
text: shareLinkCopied ? qsTr("Share link copied!") : qsTr("Copy share link")
textColor: Style.ncHeaderTextColor
contentsFont.bold: true
property bool primaryButton: false
- property string imageSource: ""
property string imageSourceHover: ""
property color adjustedHeaderColor: Style.adjustedCurrentUserHeaderColor
anchors.fill: parent
hovered: root.hovered
imageSourceHover: root.imageSourceHover
- imageSource: root.imageSource
+ imageSource: root.icon.source
text: root.text
textColor: root.textColor
textColorHovered: root.textColorHovered
adjustedHeaderColor: Style.adjustedCurrentUserHeaderColor
- imageSource: model.modelData.imageSource ? model.modelData.imageSource + Style.adjustedCurrentUserHeaderColor : ""
+ icon.source: model.modelData.imageSource ? model.modelData.imageSource + Style.adjustedCurrentUserHeaderColor : ""
imageSourceHover: model.modelData.imageSourceHovered ? model.modelData.imageSourceHovered + Style.currentUserHeaderTextColor : ""
onClicked: isTalkReplyButton ? root.showReplyField() : root.triggerAction(model.index)
visible: root.showDismissButton && !fileDetailsButton.visible
- imageSource: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
+ icon.source: "image://svgimage-custom-color/clear.svg" + "/" + Style.ncTextColor
imageSourceHover: "image://svgimage-custom-color/clear.svg" + "/" + UserModel.currentUser.headerTextColor
toolTipText: qsTr("Dismiss")
Layout.preferredWidth: Style.trayListItemIconSize
Layout.preferredHeight: Style.trayListItemIconSize
- imageSource: "image://svgimage-custom-color/more.svg" + "/" + Style.adjustedCurrentUserHeaderColor
+ icon.source: "image://svgimage-custom-color/more.svg" + "/" + Style.adjustedCurrentUserHeaderColor
imageSourceHover: "image://svgimage-custom-color/more.svg" + "/" + Style.currentUserHeaderTextColor
toolTipText: qsTr("Open file details")
bgColor: Style.currentUserHeaderColor
textColor: Style.ncHeaderTextColor
- imageSource: root.talkIcon + Style.ncHeaderTextColor
+ icon.source: root.talkIcon + Style.ncHeaderTextColor
imageSourceHover: root.talkIcon + Style.ncHeaderTextColor
Layout.fillWidth: true
textColor: Style.ncHeaderTextColor
- imageSource: root.deleteIcon + "white"
+ icon.source: root.deleteIcon + "white"
imageSourceHover: root.deleteIcon + "white"
Layout.fillWidth: true
Button {
id: root
- property string imageSource: ""
- property string imageSourceHover: imageSource
+ property string imageSourceHover: root.icon.source
property var iconItem: icon
property string toolTipText: ""
id: contents
hovered: root.hovered
imageSourceHover: root.imageSourceHover
- imageSource: root.imageSource
+ imageSource: root.icon.source
text: root.text
textColor: root.textColor
textColorHovered: root.textColorHovered