1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
// SPDX-FileCopyrightText: 2023 Mathis BrĂ¼chert <mbb@kaidan.im>
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
import QtQuick
import org.kde.kirigami as Kirigami
import QtQuick.Controls
import QtQuick.Layouts
import org.kde.marknote
Kirigami.Page {
id: root
Kirigami.Theme.inherit: false
Kirigami.Theme.colorSet: Kirigami.Theme.View
background: Rectangle {color: Kirigami.Theme.backgroundColor; opacity: 0.6}
Kirigami.PlaceholderMessage {
anchors.centerIn: parent
width: parent.width - (Kirigami.Units.largeSpacing * 4)
icon.name: "addressbook-details"
text: i18n("Start by creating your first notebook!")
helpfulAction: newNotebookAction
}
actions: Kirigami.Action {
visible: applicationWindow().visibility === Window.FullScreen
icon.name: "window-restore-symbolic"
tooltip: i18nc("@action:menu", "Exit Full Screen")
checkable: true
checked: true
onTriggered: applicationWindow().showNormal()
}
}
|