From 8070dbd9f6add171c8a4ac0b0a36715ec799dbb1 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 29 Aug 2023 14:03:15 +0800 Subject: [PATCH] Implement basic layout for file provider configuration UI Signed-off-by: Claudio Cambra --- src/gui/macOS/ui/FileProviderSettings.qml | 29 ++++++++++++++--------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/gui/macOS/ui/FileProviderSettings.qml b/src/gui/macOS/ui/FileProviderSettings.qml index 7134623185..8c0361f027 100644 --- a/src/gui/macOS/ui/FileProviderSettings.qml +++ b/src/gui/macOS/ui/FileProviderSettings.qml @@ -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") } } }