harbour-nextcloudnotes/qml/cover/CoverPage.qml

26 lines
659 B
QML
Raw Permalink Normal View History

2018-10-16 18:50:58 +03:00
import QtQuick 2.0
import Sailfish.Silica 1.0
CoverBackground {
2018-10-27 20:19:35 +03:00
CoverPlaceholder {
2021-08-24 14:18:19 +03:00
icon.source: Theme.colorScheme === Theme.DarkOnLight ? "../img/nextcloud-logo-dark.png" : "../img/nextcloud-logo-light.png"
icon.width: parent.width
icon.fillMode: Image.PreserveAspectFit
2018-10-27 20:19:35 +03:00
text: qsTr("Notes")
2018-10-16 18:50:58 +03:00
}
CoverActionList {
id: coverAction
2018-12-07 02:30:18 +03:00
enabled: appSettings.currentAccount.length > 0
2018-10-16 18:50:58 +03:00
CoverAction {
2018-10-27 20:19:35 +03:00
iconSource: "image://theme/icon-cover-new"
onTriggered: {
2018-12-07 02:30:18 +03:00
api.createNote({'content': ""})
2018-10-27 20:19:35 +03:00
appWindow.activate()
}
2018-10-16 18:50:58 +03:00
}
}
}