Warning, /office/marknote/src/contents/ui/WelcomePage.qml is written in an unsupported language. File is not indexed.

0001 // SPDX-FileCopyrightText: 2023 Mathis BrĂ¼chert <mbb@kaidan.im>
0002 // SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0003 
0004 import QtQuick 2.1
0005 import org.kde.kirigami 2.19 as Kirigami
0006 import QtQuick.Controls 2.0
0007 import QtQuick.Layouts 1.12
0008 import org.kde.marknote 1.0
0009 
0010 Kirigami.Page {
0011     id: root
0012     property NoteBooksModel model
0013     Kirigami.Theme.inherit: false
0014     Kirigami.Theme.colorSet: Kirigami.Theme.View
0015     background: Rectangle {color: Kirigami.Theme.backgroundColor; opacity: 0.6}
0016 
0017     AddNotebookDialog {
0018         id: addNotebookDialog
0019         model: root.model
0020     }
0021 
0022     Kirigami.PlaceholderMessage {
0023         anchors.centerIn: parent
0024         width: parent.width - (Kirigami.Units.largeSpacing * 4)
0025         icon.name: "addressbook-details"
0026         text: i18n("Start by creating your first notebook!")
0027         helpfulAction: Kirigami.Action {
0028             icon.name: "list-add"
0029             text: i18n("Add Notebook")
0030             onTriggered: addNotebookDialog.open()
0031         }
0032     }
0033 }