File: WelcomePage.qml

package info (click to toggle)
marknote 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,724 kB
  • sloc: cpp: 3,006; xml: 295; makefile: 5; sh: 1
file content (34 lines) | stat: -rw-r--r-- 1,066 bytes parent folder | download | duplicates (2)
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()
    }
}