Changeset View
Changeset View
Standalone View
Standalone View
wallpapers/image/imagepackage/contents/ui/config.qml
Show First 20 Lines • Show All 425 Lines • ▼ Show 20 Line(s) | 425 | Loader { | |||
---|---|---|---|---|---|
426 | anchors.fill: parent | 426 | anchors.fill: parent | ||
427 | sourceComponent: (configDialog.currentWallpaper == "org.kde.image") ? thumbnailsComponent : | 427 | sourceComponent: (configDialog.currentWallpaper == "org.kde.image") ? thumbnailsComponent : | ||
428 | ((configDialog.currentWallpaper == "org.kde.slideshow") ? foldersComponent : undefined) | 428 | ((configDialog.currentWallpaper == "org.kde.slideshow") ? foldersComponent : undefined) | ||
429 | } | 429 | } | ||
430 | } | 430 | } | ||
431 | 431 | | |||
432 | RowLayout { | 432 | RowLayout { | ||
433 | id: buttonsRow | 433 | id: buttonsRow | ||
434 | Layout.alignment: Qt.AlignRight | Qt.AlignVCenter | | |||
435 | visible: configDialog.currentWallpaper == "org.kde.image" | 434 | visible: configDialog.currentWallpaper == "org.kde.image" | ||
435 | | ||||
436 | QtControls2.Button { | 436 | QtControls2.Button { | ||
437 | icon.name: "list-add" | 437 | icon.name: "list-add" | ||
438 | text: i18nd("plasma_wallpaper_org.kde.image","Add Image...") | 438 | text: i18nd("plasma_wallpaper_org.kde.image","Add Image...") | ||
439 | onClicked: imageWallpaper.showFileDialog(); | 439 | onClicked: imageWallpaper.showFileDialog(); | ||
440 | } | 440 | } | ||
441 | Item { | ||||
442 | Layout.fillWidth: true | ||||
443 | } | ||||
444 | QtControls2.Button { | ||||
445 | text: i18nd("plasma_wallpaper_org.kde.image", "Change Lock and Login Screen Backgrounds") | ||||
446 | visible: KCMShell.authorize("screenlocker.desktop").length > 0 && KCMShell.authorize("kcm_sddm.desktop").length > 0 | ||||
447 | icon.name: "preferences-desktop-wallpaper" | ||||
448 | onClicked: KCMShell.open(["screenlocker", "kcm_sddm"]) | ||||
449 | } | ||||
441 | NewStuff.Button { | 450 | NewStuff.Button { | ||
442 | Layout.alignment: Qt.AlignRight | 451 | Layout.alignment: Qt.AlignRight | ||
443 | configFile: "wallpaper.knsrc" | 452 | configFile: "wallpaper.knsrc" | ||
444 | text: i18nd("plasma_wallpaper_org.kde.image", "Get New Wallpapers...") | 453 | text: i18nd("plasma_wallpaper_org.kde.image", "Get New Wallpapers...") | ||
445 | viewMode: NewStuff.Page.ViewMode.Preview | 454 | viewMode: NewStuff.Page.ViewMode.Preview | ||
446 | onChangedEntriesChanged: imageWallpaper.newStuffFinished(); | 455 | onChangedEntriesChanged: imageWallpaper.newStuffFinished(); | ||
447 | } | 456 | } | ||
448 | } | 457 | } | ||
449 | } | 458 | } |