]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Also accent ncBlue buttons in ShareDetailsPage with user accent color
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Tue, 15 Aug 2023 07:29:32 +0000 (15:29 +0800)
committerMatthieu Gallien <matthieu_gallien@yahoo.fr>
Tue, 22 Aug 2023 16:08:58 +0000 (18:08 +0200)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
src/gui/filedetails/ShareDelegate.qml
src/gui/filedetails/ShareDetailsPage.qml

index 97821f4dd1e972303b5780378bfdf04b98ba83a3..e25a23f9b06021be26f3fcc979174abd1355db8c 100644 (file)
@@ -265,6 +265,7 @@ GridLayout {
                     width: parent.width
                     height: parent.height
                     backgroundsVisible: root.backgroundsVisible
+                    accentColor: root.accentColor
 
                     fileDetails: root.fileDetails
                     shareModelData: model
index bc37bb6fdbad6d30a6327759ea314b56d71f30f5..527f48de8402e3ff8ac2d8a66a38aa1372874709 100644 (file)
@@ -44,6 +44,7 @@ Page {
     signal setNote(string note)
 
     property bool backgroundsVisible: true
+    property color accentColor: Style.ncBlue
 
     property FileDetails fileDetails: FileDetails {}
     property var shareModelData: ({})
@@ -1005,14 +1006,14 @@ Page {
             CustomButton {
                 height: Style.standardPrimaryButtonHeight
 
-                icon.source: "image://svgimage-custom-color/add.svg/" + Style.ncBlue
+                icon.source: "image://svgimage-custom-color/add.svg/" + root.accentColor
                 imageSourceHover: "image://svgimage-custom-color/add.svg/" + palette.brightText
                 text: qsTr("Add another link")
-                textColor: Style.ncBlue
+                textColor: root.accentColor
                 textColorHovered: palette.brightText
                 contentsFont.bold: true
                 bgNormalColor: palette.button
-                bgHoverColor: Style.ncBlue
+                bgHoverColor: root.accentColor
                 bgNormalOpacity: 1.0
                 bgHoverOpacity: 1.0
 
@@ -1054,7 +1055,7 @@ Page {
             text: shareLinkCopied ? qsTr("Share link copied!") : qsTr("Copy share link")
             textColor: palette.brightText
             contentsFont.bold: true
-            bgColor: shareLinkCopied ? Style.positiveColor : Style.ncBlue
+            bgColor: shareLinkCopied ? Style.positiveColor : root.accentColor
             bgNormalOpacity: 1.0
             bgHoverOpacity: shareLinkCopied ? 1.0 : Style.hoverOpacity