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 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")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue