mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-29 12:19:03 +03:00
Implement basic layout for file provider configuration UI
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
174d3ec9e0
commit
8070dbd9f6
1 changed files with 18 additions and 11 deletions
|
@ -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
|
||||
|
||||
width: parent.width
|
||||
padding: Style.standardSpacing
|
||||
|
||||
Repeater {
|
||||
model: 10
|
||||
|
||||
delegate: NCTabButton {
|
||||
svgCustomColorSource: "image://svgimage-custom-color/activity.svg"
|
||||
text: qsTr("Activity")
|
||||
ColumnLayout {
|
||||
EnforcedPlainTextLabel {
|
||||
text: qsTr("General settings")
|
||||
font.bold: true
|
||||
font.pointSize: root.font.pointSize + 2
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
text: qsTr("Enable virtual files")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue