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