From: Claudio Cambra Date: Wed, 23 Nov 2022 13:44:10 +0000 (+0100) Subject: Make 'Add another link' button less prominent X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~11^2~79^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e723b75919ea599a31197251eeeeb4c7d9f283cd;p=nextcloud-desktop.git Make 'Add another link' button less prominent Signed-off-by: Claudio Cambra --- diff --git a/src/gui/filedetails/ShareDetailsPage.qml b/src/gui/filedetails/ShareDetailsPage.qml index ade22ea19..8f66615fa 100644 --- a/src/gui/filedetails/ShareDetailsPage.qml +++ b/src/gui/filedetails/ShareDetailsPage.qml @@ -732,6 +732,26 @@ Page { onClicked: root.deleteShare() } + + CustomButton { + height: Style.standardPrimaryButtonHeight + + imageSource: "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 + textColorHovered: Style.ncHeaderTextColor + contentsFont.bold: true + bgNormalColor: Style.buttonBackgroundColor + bgHoverColor: Style.ncBlue + bgNormalOpacity: 1.0 + bgHoverOpacity: 1.0 + + visible: root.isLinkShare && root.canCreateLinkShares + enabled: visible + + onClicked: root.createNewLinkShare() + } } } @@ -740,24 +760,7 @@ Page { - CustomButton { - Layout.fillWidth: true - implicitWidth: parent.width / 2 - height: Style.standardPrimaryButtonHeight - - imageSource: "image://svgimage-custom-color/add.svg/" + Style.ncHeaderTextColor - text: qsTr("Add another link") - textColor: Style.ncHeaderTextColor - contentsFont.bold: true - bgColor: Style.ncBlue - bgNormalOpacity: 1.0 - bgHoverOpacity: Style.hoverOpacity - visible: root.isLinkShare && root.canCreateLinkShares - enabled: visible - - onClicked: root.createNewLinkShare() - } } } }