From e723b75919ea599a31197251eeeeb4c7d9f283cd Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 23 Nov 2022 14:44:10 +0100 Subject: [PATCH] Make 'Add another link' button less prominent Signed-off-by: Claudio Cambra --- src/gui/filedetails/ShareDetailsPage.qml | 37 +++++++++++++----------- 1 file changed, 20 insertions(+), 17 deletions(-) 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() - } } } } -- 2.30.2