Implement basic layout for file provider configuration UI

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-08-29 14:03:15 +08:00
parent 174d3ec9e0
commit 8070dbd9f6
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -18,8 +18,15 @@ import QtQuick.Layouts 1.15
import Style 1.0
import "../../filedetails"
import "../../tray"
Page {
id: root
property bool showBorder: true
title: qsTr("Virtual files settings")
// TODO: Rather than setting all these palette colours manually,
// create a custom style and do it for all components globally.
palette {
@ -42,21 +49,21 @@ Page {
background: Rectangle {
color: palette.window
border.width: root.showBorder ? Style.normalBorderWidth : 0
border.color: root.palette.dark
}
header: TabBar {
id: accountsBar
padding: Style.standardSpacing
width: parent.width
padding: Style.standardSpacing
ColumnLayout {
EnforcedPlainTextLabel {
text: qsTr("General settings")
font.bold: true
font.pointSize: root.font.pointSize + 2
}
Repeater {
model: 10
delegate: NCTabButton {
svgCustomColorSource: "image://svgimage-custom-color/activity.svg"
text: qsTr("Activity")
}
CheckBox {
text: qsTr("Enable virtual files")
}
}
}