Make 'Add another link' button less prominent
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Wed, 23 Nov 2022 13:44:10 +0000 (14:44 +0100)
committerClaudio Cambra <claudio.cambra@gmail.com>
Fri, 9 Dec 2022 11:54:09 +0000 (12:54 +0100)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/ShareDetailsPage.qml

index ade22ea19f515328cafab115b24b101903f4220e..8f66615fa990bbd55b298ba54cf0d8718bb3fbed 100644 (file)
@@ -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()
-            }
         }
     }
 }