harbour-nextcloudnotes/qml/cover/CoverPage.qml
2018-12-07 00:30:18 +01:00

25 lines
588 B
QML

import QtQuick 2.0
import Sailfish.Silica 1.0
CoverBackground {
CoverPlaceholder {
icon.source: "../img/nextcloud-logo-transparent.png"
icon.width: parent.width
icon.fillMode: Image.PreserveAspectFit
text: qsTr("Notes")
}
CoverActionList {
id: coverAction
enabled: appSettings.currentAccount.length > 0
CoverAction {
iconSource: "image://theme/icon-cover-new"
onTriggered: {
api.createNote({'content': ""})
appWindow.activate()
}
}
}
}