Commit 335d75d8 authored by Marco Martin's avatar Marco Martin
Browse files

add a GHNS button

put it in a loader so it's not a mandatory dep, but can fail silently
parent b2284341
......@@ -91,13 +91,18 @@ AppletConfiguration {
rightPadding: units.gridUnit
bottomPadding: units.gridUnit
contentItem: Controls.Button {
icon.name: "configure"
text: i18nd("plasma_shell_org.kde.plasma.desktop", "More Wallpapers...")
onClicked: {
print(wallpapersView.currentIndex)
internalDialog.visible = true;
imageWallpaperDrawer.close()
contentItem: ColumnLayout {
Controls.Button {
icon.name: "configure"
text: i18nd("plasma_shell_org.kde.plasma.desktop", "Customize...")
onClicked: {
print(wallpapersView.currentIndex)
internalDialog.visible = true;
imageWallpaperDrawer.close()
}
}
Loader {
source: Qt.resolvedUrl("GHNSButton.qml")
}
}
background: Rectangle {
......
import QtQuick 2.14
import org.kde.newstuff 1.62 as NewStuff
NewStuff.Button {
configFile: "wallpaper.knsrc"
text: i18nd("plasma_wallpaper_org.kde.image", "Download...")
viewMode: NewStuff.Page.ViewMode.Preview
onChangedEntriesChanged: imageWallpaper.newStuffFinished();
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment