property StackView rootStackView: StackView {}
property bool showCloseButton: false
property bool backgroundsVisible: true
+ property color accentColor: Style.ncBlue
property FileDetails fileDetails: FileDetails {
id: fileDetails
NCTabButton {
svgCustomColorSource: "image://svgimage-custom-color/activity.svg"
text: qsTr("Activity")
+ accentColor: root.accentColor
checked: swipeView.currentIndex === fileActivityView.swipeIndex
onClicked: swipeView.currentIndex = fileActivityView.swipeIndex
}
height: visible ? implicitHeight : 0
svgCustomColorSource: "image://svgimage-custom-color/share.svg"
text: qsTr("Sharing")
+ accentColor: root.accentColor
checked: swipeView.currentIndex === shareViewLoader.swipeIndex
onClicked: swipeView.currentIndex = shareViewLoader.swipeIndex
visible: root.fileDetails.sharingAvailable
property alias accountState: fileDetailsPage.accountState
property alias localPath: fileDetailsPage.localPath
property alias showCloseButton: fileDetailsPage.showCloseButton
+ property alias accentColor: fileDetailsPage.accentColor
property bool backgroundsVisible: true
background: Rectangle {
id: tabButton
property string svgCustomColorSource: ""
+ property color accentColor: Style.ncBlue
padding: Style.smallSpacing
background: Rectangle {
implicitWidth: textWidth + Style.standardSpacing * 2
implicitHeight: 2
- color: tabButton.checked ? Style.ncBlue : tabButton.hovered ? palette.highlight : "transparent"
+ color: tabButton.checked ? tabButton.accentColor : tabButton.hovered ? palette.highlight : "transparent"
}
}
}
height: parent.height\r
\r
backgroundsVisible: false\r
+ accentColor: Style.currentUserHeaderColor\r
accountState: fileDetailsDrawer.folderAccountState\r
localPath: fileDetailsDrawer.fileLocalPath\r
showCloseButton: true\r